From 65ed16fbca95ce9ae3a11c4ae464d95ebf41a102 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 (cherry picked from commit af0d99b2d3128fccf0c296601296de9030cf9e38) --- 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 8d914dc8d..e333c4b1d 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")