mirror of
https://github.com/mandiant/speakeasy.git
synced 2026-10-12 02:18:47 +00:00
pyproject.toml already requires unicorn>=2.1.4, so the v1 code path in unicorn_eng.py was dead code. Remove the version check and keep only the v2 imports/definitions.
21 lines
519 B
Python
21 lines
519 B
Python
import subprocess
|
|
import sys
|
|
|
|
|
|
def test_cli_rejects_removed_runtime_flags():
|
|
legacy_arg_sets = [
|
|
["--capture-memory-dumps"],
|
|
["-p", "foo"],
|
|
]
|
|
|
|
for legacy_args in legacy_arg_sets:
|
|
result = subprocess.run(
|
|
[sys.executable, "-m", "speakeasy.cli", "--dump-default-config", *legacy_args],
|
|
check=False,
|
|
capture_output=True,
|
|
text=True,
|
|
)
|
|
|
|
assert result.returncode != 0
|
|
assert "unrecognized arguments" in result.stderr
|