Skip to content

Commit

Permalink
new test
Browse files Browse the repository at this point in the history
  • Loading branch information
pomponchik committed Aug 13, 2024
1 parent 4b2177f commit 061651c
Showing 1 changed file with 16 additions and 0 deletions.
16 changes: 16 additions & 0 deletions tests/test_proxy_module.py
Original file line number Diff line number Diff line change
Expand Up @@ -499,3 +499,19 @@ def test_full_import_form():
from suby import suby as local_suby

assert suby is local_suby


@pytest.mark.parametrize(
['command'],
[
((Path(sys.executable), '-c', 'print(\'kek\')'),),
((sys.executable, '-c', 'print(\'kek\')'),),
(('python', '-c', 'print(\'kek\')'),),
]
)
def test_multiple_args_without_split(command):
result = suby(*command, split=False)

assert result.stdout == 'kek\n'
assert result.stderr == ''
assert result.returncode == 0

0 comments on commit 061651c

Please sign in to comment.