Tests - nokia/minifold GitHub Wiki

Sanity check

You should check whether you can import minifold modules. In your python3 interpreter, run for instance:

import minifold
from minifold.where import where

Test suite

Requirements

Install pytest for Python 3:

  • Debian:
apt update
apt install python3-pytest

Run tests

To run a single test, say test_select.py:

cd tests
pytest-3 test_select.py # Or directly ./test_select.py

To run all tests:

cd tests
pytest-3