mirror of
https://github.com/feder-cr/invisible_playwright.git
synced 2026-06-07 08:35:12 +02:00
Two bugs reported in #24: 1. `python -m invisible_playwright version` printed the literal "0.1.0" regardless of the installed version. Root cause: __version__ in __init__.py was hardcoded and never bumped when the package version moved past 0.1.0. Fix: read from importlib.metadata so __version__ stays in lockstep with pyproject.toml's `version` field by construction. 2. `python -m invisible_playwright --version` errored with "the following arguments are required: cmd". Root cause: the parser had `required=True` on its subparsers and no top-level --version flag. Fix: add a top-level `--version`/`-V` flag using argparse's standard version action, drop `required=True`, and reroute the "no subcommand" case through parser.error() so the existing test_no_subcommand_errors contract is preserved. 7 new unit tests pin both behaviours so they can't regress silently. Co-Authored-By: Claude Opus 4.7 (1M context) <noreply@anthropic.com> |
||
|---|---|---|
| .. | ||
| conftest.py | ||
| test_async_api.py | ||
| test_build.py | ||
| test_cli.py | ||
| test_constants.py | ||
| test_cross_origin_iframe.py | ||
| test_download.py | ||
| test_e2e.py | ||
| test_fingerprint_consistency.py | ||
| test_fingerprint_surface.py | ||
| test_fpforge.py | ||
| test_headless.py | ||
| test_imports.py | ||
| test_integration.py | ||
| test_launcher_config.py | ||
| test_launcher_helpers.py | ||
| test_mouse.py | ||
| test_network.py | ||
| test_pin.py | ||
| test_prefs.py | ||
| test_profile.py | ||
| test_proxy.py | ||
| test_recaptcha_seed.py | ||
| test_release_e2e.py | ||
| test_sampler.py | ||
| test_service_worker.py | ||
| test_version.py | ||