From c60250848135c1f3cfd13ef60e698ce40218aa4f Mon Sep 17 00:00:00 2001 From: kshitijrajsharma Date: Tue, 26 Nov 2024 08:36:02 +0100 Subject: [PATCH] fix(tests): associate AOI with user in TaskApiTest setup --- backend/tests/test_endpoints.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/backend/tests/test_endpoints.py b/backend/tests/test_endpoints.py index c083b9b6..5b8e80b5 100644 --- a/backend/tests/test_endpoints.py +++ b/backend/tests/test_endpoints.py @@ -32,7 +32,7 @@ def setUp(self): self.client = RequestsClient() self.user = OsmUserFactory(osm_id=123) self.dataset = DatasetFactory(user=self.user) - self.aoi = AoiFactory(dataset=self.dataset) + self.aoi = AoiFactory(dataset=self.dataset, user=self.user) self.model = ModelFactory(dataset=self.dataset, user=self.user) self.json_type_header = headersList.copy() self.json_type_header["content-type"] = "application/json"