To install the code in development ("editable") mode inside a virtual environment:
(myenv) $ cd quaternions
(myenv) $ pip install --editable .[dev]
This will install quaternions, its requirements and the testing dependencies.
To run the tests:
(myenv) $ python -m unittest discover tests/
Or, alternatively, use $ pytest
.