Projet

Général

Profil

0057-misc-fix-f-string-without-interpolation-pylint-error.patch

Valentin Deniaud, 21 septembre 2021 17:09

Télécharger (955 octets)

Voir les différences:

Subject: [PATCH 57/59] misc: fix f-string-without-interpolation pylint error
 (#56982)

 tests/test_role_manager.py | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
tests/test_role_manager.py
372 372
        assert el.text == f'Role {i}'
373 373
    assert '(view all roles)' not in resp.text
374 374

  
375
    role = Role.objects.create(name=f'Role a', ou=get_default_ou())
375
    role = Role.objects.create(name='Role a', ou=get_default_ou())
376 376
    getattr(simple_role, 'add_%s' % relation)(role)
377 377
    resp = app.get(url)
378 378
    assert 'Role a' not in resp.text
379
-