tests: fix deprecation warning
This commit is contained in:
parent
3ad3bb14d3
commit
10dd95879c
|
@ -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'
|
||||
|
|
Loading…
Reference in New Issue