mirror of
https://github.com/netbox-community/netbox.git
synced 2025-07-25 18:08:38 -06:00
Fix failed test
This commit is contained in:
parent
5be9af8135
commit
c574b5a613
@ -6,6 +6,7 @@ from dcim.exceptions import UnsupportedCablePath
|
|||||||
from dcim.models import *
|
from dcim.models import *
|
||||||
from dcim.svg import CableTraceSVG
|
from dcim.svg import CableTraceSVG
|
||||||
from dcim.utils import object_to_path_node
|
from dcim.utils import object_to_path_node
|
||||||
|
from utilities.exceptions import AbortRequest
|
||||||
|
|
||||||
|
|
||||||
class CablePathTestCase(TestCase):
|
class CablePathTestCase(TestCase):
|
||||||
@ -2324,7 +2325,7 @@ class CablePathTestCase(TestCase):
|
|||||||
label='C3'
|
label='C3'
|
||||||
)
|
)
|
||||||
|
|
||||||
with self.assertRaises(UnsupportedCablePath):
|
with self.assertRaises(AbortRequest):
|
||||||
cable3.save()
|
cable3.save()
|
||||||
|
|
||||||
self.assertPathDoesNotExist(
|
self.assertPathDoesNotExist(
|
||||||
|
Loading…
Reference in New Issue
Block a user