Projet

Général

Profil

0023-misc-fix-unidiomatic-typecheck-pylint-error-55505.patch

Lauréline Guérin, 12 juillet 2021 11:24

Télécharger (1,19 ko)

Voir les différences:

Subject: [PATCH 23/23] misc: fix unidiomatic-typecheck pylint error (#55505)

 tests/api/test_all.py | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)
tests/api/test_all.py
430 430
def test_agenda_detail_routing(app, meetings_agenda):
431 431
    api_url = '/api/agenda/%s/' % meetings_agenda.slug
432 432
    resp = app.get(api_url)
433
    assert type(resp.json['data']) is dict
433
    assert isinstance(resp.json['data'], dict)
434 434

  
435 435
    # check it doesn't get confused with an agenda with "agenda" in its slug
436 436
    agenda = Agenda(
......
439 439
    agenda.save()
440 440
    api_url = '/api/agenda/%s/' % agenda.slug
441 441
    resp = app.get(api_url)
442
    assert type(resp.json['data']) is dict
442
    assert isinstance(resp.json['data'], dict)
443 443

  
444 444

  
445 445
def test_virtual_agenda_detail(app, virtual_meetings_agenda):
446
-