tnmf.tests.test_demos

Test if all demos can be run without error, i.e. python demo_selector.py <demo_name> yields a zero return code.

Module Contents

Functions

test_demo(demo_name: str)

Attributes

DEMOS

DEMO_FRAME

tnmf.tests.test_demos.DEMOS
tnmf.tests.test_demos.DEMO_FRAME = Multiline-String
Show Value
1
2
3
4
5
6
# Work around a ModuleNotFoundError when running the demo inside coverage.py
import sys
sys.path[0] = '{}'
# Finally run the selected demo
from demos.demo_selector import main
main('{}')
tnmf.tests.test_demos.test_demo(demo_name: str)