Skip to content

Commit

Permalink
test: optional fields in DRS object response
Browse files Browse the repository at this point in the history
  • Loading branch information
davidlougheed committed Oct 28, 2024
1 parent 8509d0d commit a54a326
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion tests/test_routes.py
Original file line number Diff line number Diff line change
Expand Up @@ -436,7 +436,10 @@ def _ingest_one(client, existing_id=None, params=None):
@responses.activate
def test_object_ingest(client):
authz_everything_true()
_ingest_one(client)
data = _ingest_one(client)
# check we don't have fields we didn't specify
assert "description" not in data
assert "mime_type" not in data


@responses.activate
Expand Down

0 comments on commit a54a326

Please sign in to comment.