Projet

Général

Profil

0033-misc-fix-disallowed-name-pylint-error-62099.patch

Lauréline Guérin, 22 mars 2022 10:30

Télécharger (1,34 ko)

Voir les différences:

Subject: [PATCH 33/65] misc: fix disallowed-name pylint error (#62099)

 tests/test_generic_endpoint.py | 3 +++
 1 file changed, 3 insertions(+)
tests/test_generic_endpoint.py
383 383
        foo_objects = copy.deepcopy(post_data.get('foo', []))
384 384
        foo_objects.reverse()
385 385
        foo_len = len(foo_objects)
386
        # pylint: disable=disallowed-name
386 387
        for i, foo in enumerate(foo_objects):
387 388
            if not foo.get('id'):
388 389
                # id is empty, remove foo object
......
392 393
    BAR_SCHEMA['pre_process'] = pre_process
393 394

  
394 395
    @endpoint(post={'request_body': {'schema': {'application/json': FOO_SCHEMA}}})
396
    # pylint: disable=disallowed-name
395 397
    def foo(self, request, post_data):
396 398
        return {'data': post_data}
397 399

  
398 400
    @endpoint(post={'request_body': {'schema': {'application/json': BAR_SCHEMA}}})
401
    # pylint: disable=disallowed-name
399 402
    def bar(self, request, post_data):
400 403
        return {'data': post_data}
401 404

  
402
-