Switch branches/tags
Nothing to show
Find file History
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Permalink
Type Name Latest commit message Commit time
..
Failed to load latest commit information.
test_data
README.md
__init__.py
conftest.py
test_DAG.py
test_HigherOrderNetwork.py
test_MultiOrderModel.py
test_Network.py
test_OriginDestinationPaths.py
test_Path.py
test_TemporalNetwork.py
test_centralities.py
test_estimation.py
test_random_graphs.py
test_spectral.py

README.md

Unit tests for pypath

This directory contains the unit tests for methods and functions in pathpy. The testing framework pytest is required to run the tests.

To run the test suite (without slow tests) run

$ pytest tests

Slow functions

Slow functions can be decorated with slow to mark them as skippable if you require only a quick check. To run all tests add the flag --runslow:

$ pytest --runslow

Coverage report

To compute a coverage report of the tests you need to install coverage.py as well as its pytest integration pytest-cov

$ pytest tests/ --runslow --cov=pathpy --cov-report html

which will create an html coverage report in the same directory.