mirror of
https://github.com/netbox-community/netbox.git
synced 2024-05-10 07:54:54 +00:00
Add SVG rendering to cable path tests
This commit is contained in:
@@ -106,6 +106,9 @@ class CablePathTestCase(TestCase):
|
||||
self.assertPathIsSet(interface1, path1)
|
||||
self.assertPathIsSet(interface2, path2)
|
||||
|
||||
# Test SVG generation
|
||||
interface1.get_trace_svg()
|
||||
|
||||
# Delete cable 1
|
||||
cable1.delete()
|
||||
|
||||
@@ -142,6 +145,9 @@ class CablePathTestCase(TestCase):
|
||||
self.assertPathIsSet(consoleport1, path1)
|
||||
self.assertPathIsSet(consoleserverport1, path2)
|
||||
|
||||
# Test SVG generation
|
||||
consoleport1.get_trace_svg()
|
||||
|
||||
# Delete cable 1
|
||||
cable1.delete()
|
||||
|
||||
@@ -178,6 +184,9 @@ class CablePathTestCase(TestCase):
|
||||
self.assertPathIsSet(powerport1, path1)
|
||||
self.assertPathIsSet(poweroutlet1, path2)
|
||||
|
||||
# Test SVG generation
|
||||
powerport1.get_trace_svg()
|
||||
|
||||
# Delete cable 1
|
||||
cable1.delete()
|
||||
|
||||
@@ -214,6 +223,9 @@ class CablePathTestCase(TestCase):
|
||||
self.assertPathIsSet(powerport1, path1)
|
||||
self.assertPathIsSet(powerfeed1, path2)
|
||||
|
||||
# Test SVG generation
|
||||
powerport1.get_trace_svg()
|
||||
|
||||
# Delete cable 1
|
||||
cable1.delete()
|
||||
|
||||
@@ -254,6 +266,9 @@ class CablePathTestCase(TestCase):
|
||||
self.assertPathIsSet(interface2, path2)
|
||||
self.assertPathIsSet(interface3, path2)
|
||||
|
||||
# Test SVG generation
|
||||
interface1.get_trace_svg()
|
||||
|
||||
# Delete cable 1
|
||||
cable1.delete()
|
||||
|
||||
@@ -303,6 +318,9 @@ class CablePathTestCase(TestCase):
|
||||
self.assertPathIsSet(interface3, path2)
|
||||
self.assertPathIsSet(interface4, path2)
|
||||
|
||||
# Test SVG generation
|
||||
interface1.get_trace_svg()
|
||||
|
||||
# Delete cable 1
|
||||
cable1.delete()
|
||||
|
||||
|
Reference in New Issue
Block a user