Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[chores] Fixed test suite #199

Merged
merged 1 commit into from
Jun 7, 2023
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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
Loading