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"