Test suite for FIDO2, U2F, and other security key functions
Need python 3.6+.
make venv
and source venv/bin/activate
Or simply pip3 install --user -r requirements.txt
Run all FIDO2, U2F, and HID tests:
pytest tests/standard
Run vendor/model specific tests:
pytest tests/vendor
Run subset of tests with -k
flag, example:
pytest -k "getinfo or hmac_secret"
To run tests against a "simulation" build of the Solo authenticator, supply the --sim
option.
pytest --sim tests/standard
We use black
and isort
to prevent code formatting discussions.
The make venv
setup method installs git pre-commit hooks that check conformance automatically.
You can also make check
and make fix
manually, or use an editor plugins.
Apache-2.0 OR MIT