Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Switched test_cli to use to sys.executable #10

Merged
merged 4 commits into from
Jun 8, 2024
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3 changes: 2 additions & 1 deletion tests/test_cli.py
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,7 @@

import platform
import subprocess
import sys
from getpass import getuser

import pytest
Expand Down Expand Up @@ -112,6 +113,6 @@ def test_cli_version(capsys):
def test_main_access_cli(flag, return_code, image_with_metadata):
"""Confirm that CLI can be accessed via python -m."""
result = subprocess.run(
['python', '-m', 'exif_stripper.cli', flag or str(image_with_metadata)]
[sys.executable, '-m', 'exif_stripper.cli', flag or str(image_with_metadata)]
)
assert result.returncode == return_code
Loading