Add missing pyscard and cleanup

This commit is contained in:
Nicolas Stalder
2019-08-08 02:49:05 +02:00
parent d00afdcc27
commit 1da43af14e
4 changed files with 31 additions and 13 deletions
+2
View File
@@ -0,0 +1,2 @@
# to use this, install [direnv](https://direnv.net/)
source venv/bin/activate
+18
View File
@@ -0,0 +1,18 @@
.PHONY: standard-tests vendor-tests
standard-tests: venv
venv/bin/pytest tests/standard
vendor-tests: venv
venv/bin/pytest tests/vendor
# setup development environment
venv:
python3 -m venv venv
venv/bin/pip install -U pip
venv/bin/pip install -U -r requirements.txt
# re-run if dependencies change
update:
venv/bin/pip install -U pip
venv/bin/pip install -U -r requirements.txt
+8 -10
View File
@@ -2,27 +2,26 @@
Test suite for FIDO2, U2F, and other security key functions
# Installation
# Setup
Need python 3.6+.
`make venv` and `source venv/bin/activate`
```
pip3 install -r requirements.txt
```
Or simply `pip3 install --user -r requirements.txt`
# Running the tests
Run all FIDO2, U2F, and HID tests.
Run all FIDO2, U2F, and HID tests:
```
python -m pytest tests/standard
pytest tests/standard
```
Run vendor/model specific tests.
Run vendor/model specific tests:
```
python -m pytest tests/vendor
pytest tests/vendor
```
# Running against simulation
@@ -30,7 +29,6 @@ python -m pytest tests/vendor
To run tests against a "simulation" build of the Solo authenticator, supply the `--sim` option.
```
python -m pytest tests/standard --sim
pytest --sim tests/standard
```
+3 -3
View File
@@ -1,5 +1,5 @@
fido2
solo-python
fido2 >=0.7.0
pyscard
pytest
pytest-ordering
solo-python
solo-python >=0.0.12