From 87cd042c6309fd91a6eae3e15bf74f4fdb0eae1a Mon Sep 17 00:00:00 2001 From: Gagan Deep Date: Fri, 27 Mar 2026 10:15:01 +0530 Subject: [PATCH] [chores] Fixed tests to include organization in location add params --- openwisp_controller/geo/tests/test_admin.py | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/openwisp_controller/geo/tests/test_admin.py b/openwisp_controller/geo/tests/test_admin.py index 06a498cfe..224cc07d5 100644 --- a/openwisp_controller/geo/tests/test_admin.py +++ b/openwisp_controller/geo/tests/test_admin.py @@ -29,6 +29,12 @@ def setUp(self): """override TestAdminMixin.setUp""" pass + def _get_location_add_params(self, **kwargs): + params = super()._get_location_add_params(**kwargs) + if "organization" not in kwargs: + params["organization"] = self._get_org().id + return params + def _create_multitenancy_test_env(self, vpn=False): org1 = self._create_organization(name="test1org") org2 = self._create_organization(name="test2org")