Skip to content

Commit f6ee602

Browse files
committed
[tests] Fixed failing tests
1 parent 1a67d96 commit f6ee602

4 files changed

Lines changed: 4 additions & 3 deletions

File tree

openwisp_controller/connection/utils.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,5 +2,5 @@
22

33

44
def get_connection_working_notification_target_url(obj, field, absolute_url=True):
5-
url = _get_object_link(obj, field, absolute_url)
5+
url = _get_object_link(obj._related_object(field), absolute_url)
66
return f'{url}#deviceconnection_set-group'

openwisp_controller/geo/tests/test_admin_inline.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -78,3 +78,4 @@ def test_add_mobile(self):
7878

7979

8080
del TestConfigAdmin
81+
del BaseTestAdminInline

openwisp_controller/geo/tests/test_api.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -577,7 +577,7 @@ def test_change_location_type_to_outdoor_api(self):
577577
self._create_floorplan(location=l1)
578578
path = reverse('geo_api:detail_location', args=[l1.pk])
579579
data = {'type': 'outdoor'}
580-
with self.assertNumQueries(8):
580+
with self.assertNumQueries(9):
581581
response = self.client.patch(path, data, content_type='application/json')
582582
self.assertEqual(response.status_code, 200)
583583
self.assertEqual(response.data['floorplan'], [])

requirements.txt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@ django-reversion~=5.1.0
33
django-taggit~=4.0.0
44
netjsonconfig @ https://github.com/openwisp/netjsonconfig/tarball/1.2
55
django-x509 @ https://github.com/openwisp/django-x509/tarball/1.3
6-
django-loci @ https://github.com/openwisp/django-loci/tarball/1.2
6+
django-loci @ https://github.com/openwisp/django-loci/tarball/fix-outdoor-with-floorplan
77
django-flat-json-widget~=0.3.1
88
openwisp-users @ https://github.com/openwisp/openwisp-users/tarball/1.2
99
openwisp-utils[celery,channels] @ https://github.com/openwisp/openwisp-utils/tarball/1.2

0 commit comments

Comments
 (0)