1
0
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:
jeremystretch
2022-06-27 15:53:34 -04:00
parent 9d35a9d912
commit 8bbc592261
5 changed files with 27 additions and 8 deletions

View File

@@ -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()