From a54a326eaf65fcb39017126374b9b1186e777aa6 Mon Sep 17 00:00:00 2001 From: David Lougheed Date: Mon, 28 Oct 2024 14:04:10 -0400 Subject: [PATCH] test: optional fields in DRS object response --- tests/test_routes.py | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/tests/test_routes.py b/tests/test_routes.py index a9f71b0..ef8db86 100644 --- a/tests/test_routes.py +++ b/tests/test_routes.py @@ -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