mirror of
https://github.com/feder-cr/invisible_playwright.git
synced 2026-06-07 08:35:12 +02:00
tests: add/update tests/test_cli.py
This commit is contained in:
parent
280d6838e1
commit
93da245b8a
1 changed files with 3 additions and 3 deletions
|
|
@ -4,16 +4,16 @@ import sys
|
|||
|
||||
def test_version_subcommand():
|
||||
r = subprocess.run(
|
||||
[sys.executable, "-m", "invisible-playwright", "version"],
|
||||
[sys.executable, "-m", "invisible_playwright", "version"],
|
||||
capture_output=True, text=True, check=True,
|
||||
)
|
||||
assert "firefox-" in r.stdout
|
||||
assert "invisible-playwright" in r.stdout.lower()
|
||||
assert "invisible_playwright" in r.stdout.lower()
|
||||
|
||||
|
||||
def test_help_subcommand():
|
||||
r = subprocess.run(
|
||||
[sys.executable, "-m", "invisible-playwright", "--help"],
|
||||
[sys.executable, "-m", "invisible_playwright", "--help"],
|
||||
capture_output=True, text=True,
|
||||
)
|
||||
assert r.returncode == 0
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue