add github test action and add pytest

This commit is contained in:
scito 2022-09-03 15:38:47 +02:00 committed by Roland Kurmann
parent c0d1cf6c51
commit 7f8250c0a6
4 changed files with 130 additions and 1 deletions

View file

@ -63,7 +63,9 @@ Install [devbox](https://github.com/jetpack-io/devbox), which is a wrapper for n
devbox shell
```
## Unit Tests
## Tests
### unittest
There are basic unit tests, see `unittest_extract_otp_secret_keys.py`.
@ -72,3 +74,18 @@ Run unit tests:
```
python -m unittest
```
### PyTest
There are basic pytests, see `test_extract_otp_secret_keys.py`.
Run pytests:
```
pytest unittest
```
or
```
python -m pytest
```