Skip to content

Commit

Permalink
[tests] Fixed openwisp_controller.geo integration test
Browse files Browse the repository at this point in the history
  • Loading branch information
pandafy committed Jun 7, 2023
1 parent e7229ea commit 39bc4c2
Show file tree
Hide file tree
Showing 2 changed files with 12 additions and 1 deletion.
7 changes: 7 additions & 0 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -35,6 +35,13 @@ jobs:
with:
python-version: ${{ matrix.python-version }}

- name: Install system packages
run: |
sudo apt update
sudo apt-get -qq -y install sqlite3 gdal-bin libproj-dev \
libgeos-dev libspatialite-dev spatialite-bin \
libsqlite3-mod-spatialite
- name: Install python system packages
run: pip install -U pip wheel setuptools

Expand Down
6 changes: 5 additions & 1 deletion openwisp_network_topology/integrations/device/tests.py
Original file line number Diff line number Diff line change
Expand Up @@ -384,6 +384,9 @@ def test_shared_topology_org_devices(self):


class TestMonitoringIntegration(Base, TransactionTestCase):
@mock.patch(
'openwisp_monitoring.device.apps.DeviceMonitoringConfig.connect_device_signals'
)
@mock.patch('openwisp_monitoring.db.timeseries_db.create_database')
@mock.patch('openwisp_monitoring.device.utils.manage_short_retention_policy')
@mock.patch('openwisp_monitoring.device.utils.manage_default_retention_policy')
Expand Down Expand Up @@ -416,10 +419,11 @@ def test_monitoring_integration(self, *args):
with self.modify_settings(
INSTALLED_APPS={
'append': [
'openwisp_controller.connection',
'openwisp_controller.geo',
'openwisp_monitoring.monitoring',
'openwisp_monitoring.device',
'openwisp_monitoring.check',
'openwisp_controller.connection',
'openwisp_notifications',
]
}
Expand Down

0 comments on commit 39bc4c2

Please sign in to comment.