From d456f9f277f7d45411b4e69253bfb38de3831afa Mon Sep 17 00:00:00 2001 From: Jochen Klar Date: Thu, 26 Sep 2024 12:18:24 +0200 Subject: [PATCH] Fix tests --- rdmo/projects/tests/test_viewset_project.py | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/rdmo/projects/tests/test_viewset_project.py b/rdmo/projects/tests/test_viewset_project.py index 0069d25777..874da1f397 100644 --- a/rdmo/projects/tests/test_viewset_project.py +++ b/rdmo/projects/tests/test_viewset_project.py @@ -378,7 +378,10 @@ def test_upload_accept(db, client, username, password): if password: assert response.status_code == 200 - assert response.json() == '.xml' + assert response.json() == { + 'application/xml': ['.xml'], + 'text/xml': ['.xml'] + } else: assert response.status_code == 401