Skip to content

Commit

Permalink
fix: tests
Browse files Browse the repository at this point in the history
  • Loading branch information
ahlinc committed Nov 26, 2024
1 parent fc9cf82 commit 63a4d7d
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 5 deletions.
2 changes: 1 addition & 1 deletion tests/test_package_toml.py
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@ def test_build_manager_failing_command():
bpm = BuildPlanManager(args=Mock())
with raises(Exception):
bpm.execute(
build_plan=[["sh", "/tmp", "NOTACOMMAND"]],
build_plan=[[["sh", "/tmp", "NOTACOMMAND"]]],
zip_stream=None,
query=None,
)
Expand Down
12 changes: 8 additions & 4 deletions tests/test_zip_source.py
Original file line number Diff line number Diff line change
Expand Up @@ -12,8 +12,10 @@ def test_zip_source_path_sh_work_dir():

bpm.execute(
build_plan=[
["sh", ".", "cd $(mktemp -d)\n echo pip install"],
["zip:embedded", ".", "./python"],
[
["sh", "cd $(mktemp -d)\n echo pip install"],
["zip:embedded", ".", "./python"],
]
],
zip_stream=zs,
query=None,
Expand All @@ -33,8 +35,10 @@ def test_zip_source_path():

bpm.execute(
build_plan=[
["sh", ".", "echo pip install"],
["zip:embedded", ".", "./python"],
[
["sh", "echo pip install"],
["zip:embedded", ".", "./python"],
]
],
zip_stream=zs,
query=None,
Expand Down

0 comments on commit 63a4d7d

Please sign in to comment.