diff --git a/tests/test_documents.py b/tests/test_documents.py index 0b40bf23..e5ae5b9d 100644 --- a/tests/test_documents.py +++ b/tests/test_documents.py @@ -13,19 +13,19 @@ from tests.conftest import file @pytest.mark.mvp -def test_erasure_certificate_public_one(user: UserClient, client: Client): +def test_erasure_certificate_public_one(user: UserClient): """Public user can get certificate from one device as HTML or PDF.""" s = file('erase-sectors.snapshot') snapshot, _ = user.post(s, res=Snapshot) - doc, response = client.get(res=documents.DocumentDef.t, + doc, response = user.get(res=documents.DocumentDef.t, item='erasures/{}'.format(snapshot['device']['id']), accept=ANY) assert 'html' in response.content_type assert '