diff --git a/tests/test_check.py b/tests/test_check.py index c7a0627..17eca3d 100644 --- a/tests/test_check.py +++ b/tests/test_check.py @@ -82,7 +82,7 @@ def test_timestamp(self): solution = Solution( content={"prog.py": b"a, b = eval(input())\n" b"print(max(a, b))"}, - timestamp=date.fromtimestamp(time.time()), + timestamp=datetime.now().timestamp(), checks=[ validator.ID, ], @@ -96,7 +96,7 @@ def test_timestamp(self): ID=validator.ID + solution.ID, USER_ID=solution.USER_ID, TASK_ID=solution.TASK_ID, - timestamp=date.fromtimestamp(time.time()), + timestamp=result.timestamp, rating=1.0, category=validator.category, stderr=b"", @@ -118,7 +118,7 @@ def test_regexp(self): solution = Solution( content={"prog.py": b"import itertools\n" b"a, b = eval(input())\n" b"print(max(a, b))"}, - timestamp=date.fromtimestamp(time.time()), + timestamp=datetime.now().timestamp(), checks=[ validator.ID, ], @@ -132,7 +132,7 @@ def test_regexp(self): ID=validator.ID + solution.ID, USER_ID=solution.USER_ID, TASK_ID=solution.TASK_ID, - timestamp=date.fromtimestamp(time.time()), + timestamp=result.timestamp, rating=1.0, category=validator.category, stderr=b"",