Skip to content

Commit da08d2c

Browse files
asmodehnAlexandre Vincent
andauthored
[change] Load DeviceConnection via load_model instead of direct import
Co-authored-by: Alexandre Vincent <alexandre.vincent@stellar.tc>
1 parent fe1da65 commit da08d2c

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

openwisp_monitoring/check/tests/test_iperf3.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,6 @@
77
from swapper import load_model
88

99
from openwisp_controller.connection.connectors.ssh import Ssh
10-
from openwisp_controller.connection.models import DeviceConnection
1110
from openwisp_controller.connection.settings import CONNECTORS, UPDATE_STRATEGIES
1211
from openwisp_controller.connection.tests.utils import CreateConnectionsMixin, SshServer
1312
from openwisp_monitoring.check.classes.iperf3 import get_iperf3_schema
@@ -26,6 +25,7 @@
2625
TEST_RSA_KEY,
2726
)
2827

28+
DeviceConnection = load_model("connection", "DeviceConnection")
2929
Check = load_model("check", "Check")
3030
Chart = load_model("monitoring", "Chart")
3131
Metric = load_model("monitoring", "Metric")

0 commit comments

Comments
 (0)