Unit tests

Run microspec tests

Enter the microspec directory and run pytest:

cd microspec
pytest

Limit tests to one module:

pytest --pyargs microspec.tests.test_constants

Output shows the tests pass:

...
microspec/tests/test_constants.py ....          [100%]

Use flag --testdox to read the list of tests as if the test names are the documentation:

pytest --testdox --pyargs microspec.tests.test_constants

Example --testdox output:

Values_of_status
 ✓ OK is 0
 ✓ ERROR is 10 maps to str OK
 ✓ 1 maps to str ERROR
 ...