mirror of
https://github.com/feder-cr/invisible_playwright.git
synced 2026-06-10 08:45:13 +02:00
23 lines
592 B
Python
23 lines
592 B
Python
|
|
import subprocess
|
||
|
|
import sys
|
||
|
|
|
||
|
|
|
||
|
|
def test_version_subcommand():
|
||
|
|
r = subprocess.run(
|
||
|
|
[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()
|
||
|
|
|
||
|
|
|
||
|
|
def test_help_subcommand():
|
||
|
|
r = subprocess.run(
|
||
|
|
[sys.executable, "-m", "invisible-playwright", "--help"],
|
||
|
|
capture_output=True, text=True,
|
||
|
|
)
|
||
|
|
assert r.returncode == 0
|
||
|
|
assert "fetch" in r.stdout
|
||
|
|
assert "path" in r.stdout
|
||
|
|
assert "clear-cache" in r.stdout
|