Skip to content

Commit

Permalink
Check tests timestamp fixes
Browse files Browse the repository at this point in the history
Rate limit · GitHub

Whoa there!

You have triggered an abuse detection mechanism.

Please wait a few minutes before you try again;
in some cases this may take up to an hour.

Nikita-Barabanov committed Aug 18, 2023
1 parent fd85291 commit f6ff78f
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions tests/test_check.py
Original file line number Diff line number Diff line change
@@ -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"",

0 comments on commit f6ff78f

Please sign in to comment.