mirror of
https://github.com/panda3d/panda3d.git
synced 2025-10-01 01:07:51 -04:00

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?
14 lines
246 B
Python
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()
|