From cf5f679c07d343a09a6ad5bc22ba20a9f1c5dd7b Mon Sep 17 00:00:00 2001 From: kshitijrajsharma Date: Sat, 19 Oct 2024 13:08:41 +0200 Subject: [PATCH] add 404 for the file not found --- backend/tests/test_endpoints.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/backend/tests/test_endpoints.py b/backend/tests/test_endpoints.py index 2a5c7c60..c083b9b6 100644 --- a/backend/tests/test_endpoints.py +++ b/backend/tests/test_endpoints.py @@ -307,8 +307,8 @@ def test_get_GpxView(self): def test_get_workspace(self): # get training workspace - res = self.client.get(f"{API_BASE}/workspace/dataset_1/") - self.assertEqual(res.status_code, 409) + res = self.client.get(f"{API_BASE}/workspace/dataset_1/", headers=headersList) + self.assertEqual(res.status_code, 404) def test_download_workspace(self): try: