Commit 54b4ee68 authored by Romain Courteaud's avatar Romain Courteaud

slapos_crm: test: fixup

parent 7d603bd0
...@@ -299,7 +299,7 @@ class TestSlapOSHasError(SlapOSTestCaseMixin): ...@@ -299,7 +299,7 @@ class TestSlapOSHasError(SlapOSTestCaseMixin):
) )
_, partition = self._makeComputeNode(self.addProject()) _, partition = self._makeComputeNode(self.addProject())
error_date = DateTime() error_date = DateTime() - 0.1
with PinnedDateTime(self, error_date): with PinnedDateTime(self, error_date):
instance.setErrorStatus("") instance.setErrorStatus("")
...@@ -313,8 +313,9 @@ class TestSlapOSHasError(SlapOSTestCaseMixin): ...@@ -313,8 +313,9 @@ class TestSlapOSHasError(SlapOSTestCaseMixin):
self.assertEqual(instance.SoftwareInstance_hasReportedError(), None) self.assertEqual(instance.SoftwareInstance_hasReportedError(), None)
def test_SoftwareInstallation_hasReportedError(self): def test_SoftwareInstallation_hasReportedError(self):
installation = self.portal.software_installation_module.newContent() installation = self.portal.software_installation_module.newContent(
reference=self.generateNewId()
)
self.assertEqual(installation.SoftwareInstallation_hasReportedError(), None) self.assertEqual(installation.SoftwareInstallation_hasReportedError(), None)
error_date = DateTime() - 0.1 error_date = DateTime() - 0.1
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment