Skip to content
This repository was archived by the owner on Mar 4, 2026. It is now read-only.

Commit 5f64f74

Browse files
author
Nurfet Becirevic
committed
Fix python 2 incompatibility
1 parent a99a34c commit 5f64f74

6 files changed

Lines changed: 6 additions & 6 deletions

File tree

test/test_batch.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@ def setUpClass(self):
1414
org_id = self.manager.list_organizations()[0].id
1515
self.project = self.manager.create_organization_project(
1616
org_id=org_id,
17-
name="Int-Tests-Batch_{}".format(datetime.utcnow().timestamp())
17+
name="Int-Tests-Batch_{}".format(datetime.utcnow().strftime("%Y%m%dT%H%M%S.%f")[:-3])
1818
)
1919
self.batches = list()
2020

test/test_device.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@ def setUpClass(self):
1414
org_id = self.manager.list_organizations()[0].id
1515
self.project = self.manager.create_organization_project(
1616
org_id=org_id,
17-
name="Int-Tests-Device_{}".format(datetime.utcnow().timestamp())
17+
name="Int-Tests-Device_{}".format(datetime.utcnow().strftime("%Y%m%dT%H%M%S.%f")[:-3])
1818
)
1919

2020
self.manager.enable_project_bgp_config(

test/test_event.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@ def setUpClass(cls):
1616
org_id = cls.manager.list_organizations()[0].id
1717
cls.project = cls.manager.create_organization_project(
1818
org_id=org_id,
19-
name="Int-Tests-Events_{}".format(datetime.utcnow().timestamp())
19+
name="Int-Tests-Events_{}".format(datetime.utcnow().strftime("%Y%m%dT%H%M%S.%f")[:-3])
2020
)
2121

2222
def test_list_events(self):

test/test_ports.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@ def setUpClass(self):
1515
org_id = self.manager.list_organizations()[0].id
1616
self.project = self.manager.create_organization_project(
1717
org_id=org_id,
18-
name="Int-Tests-Ports_{}".format(datetime.utcnow().timestamp())
18+
name="Int-Tests-Ports_{}".format(datetime.utcnow().strftime("%Y%m%dT%H%M%S.%f")[:-3])
1919
)
2020

2121
self.device = self.manager.create_device(

test/test_vlan.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@ def setUpClass(self):
1515
org_id = self.manager.list_organizations()[0].id
1616
self.project = self.manager.create_organization_project(
1717
org_id=org_id,
18-
name="Int-Tests-VLAN_{}".format(datetime.utcnow().timestamp())
18+
name="Int-Tests-VLAN_{}".format(datetime.utcnow().strftime("%Y%m%dT%H%M%S.%f")[:-3])
1919
)
2020

2121
self.device = self.manager.create_device(

test/test_volume.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@ def setUpClass(self):
1717
org_id = self.manager.list_organizations()[0].id
1818
self.project = self.manager.create_organization_project(
1919
org_id=org_id,
20-
name="Int-Tests-Volume_{}".format(datetime.utcnow().timestamp())
20+
name="Int-Tests-Volume_{}".format(datetime.utcnow().strftime("%Y%m%dT%H%M%S.%f")[:-3])
2121
)
2222

2323
self.volume = self.manager.create_volume(self.project.id,

0 commit comments

Comments
 (0)