File tree Expand file tree Collapse file tree 2 files changed +10
-3
lines changed
openwisp_controller/geo/tests Expand file tree Collapse file tree 2 files changed +10
-3
lines changed Original file line number Diff line number Diff line change 1+ from channels .testing import ChannelsLiveServerTestCase
12from django .contrib .auth import get_user_model
23from django .contrib .auth .models import Permission
3- from django .contrib .staticfiles .testing import StaticLiveServerTestCase
44from django .test import tag
55from django .urls .base import reverse
66from django_loci .tests import TestAdminMixin
2222# these tests are for geo elements on device admin
2323@tag ("selenium_tests" )
2424class TestDeviceAdminGeoSelenium (
25- BaseTestDeviceAdminSelenium , TestOrganizationMixin , StaticLiveServerTestCase
25+ TestGeoMixin ,
26+ BaseTestDeviceAdminSelenium ,
27+ TestOrganizationMixin ,
28+ ChannelsLiveServerTestCase ,
2629):
2730 app_label = "geo"
2831 object_model = Device
@@ -66,7 +69,7 @@ class TestDeviceAdminReadonly(
6669 TestGeoMixin ,
6770 TestAdminMixin ,
6871 SeleniumTestMixin ,
69- StaticLiveServerTestCase ,
72+ ChannelsLiveServerTestCase ,
7073):
7174 browser = "chrome"
7275 app_label = "geo"
Original file line number Diff line number Diff line change 1616 "NAME" : os .path .join (BASE_DIR , "openwisp-controller.db" ),
1717 }
1818}
19+ if TESTING and "--exclude-tag=selenium_tests" not in sys .argv :
20+ DATABASES ["default" ]["TEST" ] = {
21+ "NAME" : os .path .join (BASE_DIR , "openwisp-controller-test.db" ),
22+ }
1923
2024SPATIALITE_LIBRARY_PATH = "mod_spatialite.so"
2125
You can’t perform that action at this time.
0 commit comments