Test suite for FIDO2, U2F, and other security key functions
Need python 3.6+.
make venv and
pip3 install --user -r requirements.txt
Running the tests
Run all FIDO2, U2F, and HID tests:
pytest tests/standard -s
Run vendor/model specific tests:
pytest tests/vendor -s
Run subset of tests with
-k flag, example:
pytest -k "getinfo or hmac_secret" -s
Note that in most cases when testing a hardware authenticator,
-s must be supplied to disable stdin/stdout capturing. This is so the prompts to power cycle the authenticator can be seen and continued.
Running against simulation
To run tests against a "simulation" build of the Solo authenticator, supply the
pytest --sim tests/standard
All tests should pass with having to use
-s or provide any interaction.
isort to prevent code formatting discussions.
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