tests: fix deprecation warning

This commit is contained in:
Benjamin Dauvergne 2017-10-18 16:33:47 +02:00
parent 3ad3bb14d3
commit 10dd95879c
1 changed files with 1 additions and 1 deletions

View File

@ -321,7 +321,7 @@ def test_api_logging(caplog, app, cut_kevin_uuid, acl):
url = '/api/southpark/%s/profile-friends/' % cut_kevin_uuid
resp = app.put_json(url, params=payload, status=201, headers={'If-None-Match': '*'})
records = [record for record in caplog.records() if record.name == 'petale']
records = [record for record in caplog.records if record.name == 'petale']
assert len(records) == 5
for record in records:
assert record.name == 'petale'