mirror of
https://github.com/ansible/awx.git
synced 2026-03-23 20:05:03 -02:30
more flake8
This commit is contained in:
@@ -72,12 +72,12 @@ class FactTest(BaseFactTest):
|
|||||||
t1 = now()
|
t1 = now()
|
||||||
(f_obj, v_obj) = Fact.add_fact(host=host, timestamp=timestamp, module='packages', fact=data)
|
(f_obj, v_obj) = Fact.add_fact(host=host, timestamp=timestamp, module='packages', fact=data)
|
||||||
t2 = now()
|
t2 = now()
|
||||||
diff = (t2-t1).total_seconds()
|
diff = (t2 - t1).total_seconds()
|
||||||
print("add_fact save time: %s (s)" % diff)
|
print("add_fact save time: %s (s)" % diff)
|
||||||
self.assertLessEqual(diff, 4)
|
self.assertLessEqual(diff, 4)
|
||||||
|
|
||||||
f = Fact.objects.get(id=f_obj.id)
|
Fact.objects.get(id=f_obj.id)
|
||||||
v = FactVersion.objects.get(id=v_obj.id)
|
FactVersion.objects.get(id=v_obj.id)
|
||||||
|
|
||||||
class FactGetHostVersionTest(BaseFactTest):
|
class FactGetHostVersionTest(BaseFactTest):
|
||||||
def setUp(self):
|
def setUp(self):
|
||||||
|
|||||||
Reference in New Issue
Block a user