diff --git a/tests/app/test_credentialing.py b/tests/app/test_credentialing.py index d2d26328..94f3ed9f 100644 --- a/tests/app/test_credentialing.py +++ b/tests/app/test_credentialing.py @@ -292,6 +292,11 @@ def test_issue_credential(helpers, seeder): assert result.status_code == 404 assert result.json == {'description': "name is not a valid reference to an identifier", 'title': '404 Not Found'} + + result = client.simulate_post(path="/identifiers/issuer/credentials", body=json.dumps({}).encode("utf-8")) + assert result.status_code == 400 + assert result.json == {'description': "required field 'acdc' missing from request", + 'title': '400 Bad Request'} result = client.simulate_post(path="/identifiers/issuer/credentials", body=json.dumps(body).encode("utf-8")) op = result.json