diff --git a/netbox/dcim/tests/test_cablepaths.py b/netbox/dcim/tests/test_cablepaths.py index 6025e244dbe..b4d3ab2d423 100644 --- a/netbox/dcim/tests/test_cablepaths.py +++ b/netbox/dcim/tests/test_cablepaths.py @@ -6,6 +6,7 @@ from dcim.models import * from dcim.svg import CableTraceSVG from dcim.utils import object_to_path_node +from utilities.exceptions import AbortRequest class CablePathTestCase(TestCase): @@ -2324,7 +2325,7 @@ def test_401_exclude_midspan_devices(self): label='C3' ) - with self.assertRaises(UnsupportedCablePath): + with self.assertRaises(AbortRequest): cable3.save() self.assertPathDoesNotExist(