Skip to content

Commit

Permalink
Fix
Browse files Browse the repository at this point in the history
  • Loading branch information
MasloMaslane committed Apr 4, 2024
1 parent 829c8dd commit 2268f5c
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 5 deletions.
4 changes: 2 additions & 2 deletions tests/commands/gen/test_integration.py
Original file line number Diff line number Diff line change
Expand Up @@ -60,7 +60,7 @@ def test_correct_inputs(capsys, create_package):
"""
task_id = package_util.get_task_id()
correct_solution = package_util.get_correct_solution(task_id)
cache.save_compiled(correct_solution, "exe")
cache.save_compiled(correct_solution, "exe", "default", False)
simple_run()
md5_sums = get_md5_sums(create_package)

Expand All @@ -79,7 +79,7 @@ def test_changed_inputs(capsys, create_package):
"""
task_id = package_util.get_task_id()
correct_solution = package_util.get_correct_solution(task_id)
cache.save_compiled(correct_solution, "exe")
cache.save_compiled(correct_solution, "exe", "default", False)
simple_run()
md5_sums = get_md5_sums(create_package)
correct_md5 = md5_sums.copy()
Expand Down
7 changes: 4 additions & 3 deletions tests/helpers/test_compile.py
Original file line number Diff line number Diff line change
Expand Up @@ -16,10 +16,11 @@ def test_compilation_caching():
with open(os.path.join(os.getcwd(), "test.e"), "w") as f:
f.write("")

assert check_compiled(os.path.join(os.getcwd(), "test.txt")) is None
assert check_compiled(os.path.join(os.getcwd(), "test.txt"), "default", False) is None
save_compiled(os.path.join(os.getcwd(), "test.txt"),
os.path.join(os.getcwd(), "test.e"))
assert check_compiled(os.path.join(os.getcwd(), "test.txt")) == os.path.join(os.getcwd(), "test.e")
os.path.join(os.getcwd(), "test.e"), "default", False)
assert check_compiled(os.path.join(os.getcwd(), "test.txt"), "default", False) == \
os.path.join(os.getcwd(), "test.e")


@pytest.mark.parametrize("create_package", [util.get_shell_ingen_pack_path()], indirect=True)
Expand Down

0 comments on commit 2268f5c

Please sign in to comment.