Fix failed test

This commit is contained in:
Daniel Sheppard 2024-12-20 08:22:14 -06:00
parent 5be9af8135
commit c574b5a613

View File

@ -6,6 +6,7 @@ from dcim.exceptions import UnsupportedCablePath
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 @@ class CablePathTestCase(TestCase):
label='C3'
)
with self.assertRaises(UnsupportedCablePath):
with self.assertRaises(AbortRequest):
cable3.save()
self.assertPathDoesNotExist(