Skip to content

Commit

Permalink
test coverage
Browse files Browse the repository at this point in the history
  • Loading branch information
rodolfomiranda committed Apr 30, 2024
1 parent 3ef8210 commit 90c5432
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions tests/app/test_credentialing.py
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit 90c5432

Please sign in to comment.