panda3d/tests/main.py
Mitchell Stokes 33fd302a8e deploy-ng: Add files to build application out of the unit tests
This will be a good way to make sure everything in the tests work under
a frozen environment.

NOTE: The application builds and runs, but no tests are collected. We
still need to figure out how we want to handle tests. Freeze them all
and modify test collection? Add py/test files to the build directory and
try to run them?
2017-11-25 17:36:02 -08:00

14 lines
246 B
Python

import _pytest
if not hasattr(_pytest, '__file__'):
import os
import _pytest._pluggy
import py
_pytest.__file__ = os.getcwd()
_pytest._pluggy.__file__ = os.getcwd()
py.__file__ = os.getcwd()
import pytest
pytest.main()