Fixed the monkeypatching of time.time()

This commit is contained in:
Veronica K. B. Olsen
2020-09-30 23:43:50 +02:00
parent 1a70a4ec1c
commit 238b3c254e
2 changed files with 12 additions and 12 deletions
+1 -2
View File
@@ -3,7 +3,6 @@
"""
import pytest
import time
import os
import json
@@ -29,7 +28,7 @@ def testIndexBuildCheck(monkeypatch, nwLipsum, nwDummy, nwTempProj, nwRef):
assert theProject.openProject(nwLipsum)
theProject.mainConf.debugInfo = True
monkeypatch.setattr(time, "time", lambda: 123.4)
monkeypatch.setattr("nw.core.index.time", lambda: 123.4)
theIndex = NWIndex(theProject, nwDummy)
notIndexable = {