Skip to content

Commit

Permalink
Always run plugin within the poetry venv
Browse files Browse the repository at this point in the history
  • Loading branch information
kdeldycke committed Feb 28, 2024
1 parent 2daaed5 commit 2f476f5
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion meta_package_manager/tests/test_bar_plugin.py
Original file line number Diff line number Diff line change
Expand Up @@ -170,7 +170,9 @@ class TestBarPlugin:
def plugin_output_checks(self, checklist, extra_env=None):
"""Run the plugin script and check its output against the checklist."""
process = subprocess.run(
bar_plugin.__file__,
# Force the plugin to be called within Poetry venv to not have it seeking
# for macOS's default Python.
("poetry", "run", "python", bar_plugin.__file__),
capture_output=True,
encoding="utf-8",
env=env_copy(extra_env),
Expand Down

0 comments on commit 2f476f5

Please sign in to comment.