exploration.tests.__main__

  • Authors: Peter Mawhorter
  • Consulted:
  • Date: 2022-5-28
  • Purpose: Runs tests via pytest.

Invoke using python -m exploration.tests.

 1"""
 2- Authors: Peter Mawhorter
 3- Consulted:
 4- Date: 2022-5-28
 5- Purpose: Runs tests via pytest.
 6
 7Invoke using `python -m exploration.tests`.
 8"""
 9
10import sys
11
12import pytest
13
14# Don't try to test if we're being imported (e.g. by pdoc).
15if __name__ == "__main__":
16    sys.exit(
17        pytest.main(
18            [
19                "--pyargs",
20                "exploration.tests",
21                "exploration.core",
22                "exploration.graphs",
23                #"exploration.journal",
24                "exploration.main",
25                "--doctest-modules"
26            ]
27          + sys.argv[1:]
28        )
29    )