Python tests are enabled by default when building the Python bindings
if pytest is available at configuration time:
./configure --with-python-binding
or
./configure --with-python-binding --enable-pytest=check
To fail the configure step if the tests can't be enabled:
./configure --with-python-binding --enable-pytest
or
./configure --with-python-binding --enable-pytest=yes
To disable the tests:
./configure --with-python-binding --enable-pytest=no
To run the tests:
make -C bindings/ check