Skip to content

Commit

Permalink
test: test that flag is passed to executor
Browse files Browse the repository at this point in the history
  • Loading branch information
KineticCookie authored and radoering committed Jul 23, 2024
1 parent bd56c30 commit 47f71fa
Showing 1 changed file with 7 additions and 0 deletions.
7 changes: 7 additions & 0 deletions tests/bundlers/test_venv_bundler.py
Original file line number Diff line number Diff line change
Expand Up @@ -286,8 +286,15 @@ def test_bundler_passes_compile_flag(
bundler.set_remove(True)
bundler.set_compile(compile)

# bundle passes the flag from set_compile to enable_bytecode_compilation method
mocker = mocker.patch(
"poetry.installation.executor.Executor.enable_bytecode_compilation"
)

assert bundler.bundle(poetry, io)

mocker.assert_called_once_with(compile)

path = str(tmp_venv.path)
python_version = ".".join(str(v) for v in sys.version_info[:3])
expected = f"""\
Expand Down

0 comments on commit 47f71fa

Please sign in to comment.