Browse Source

python: base for GL tests.

pull/1/head
Vladimír Vondruš 7 years ago
parent
commit
6c10265efd
  1. 14
      src/python/magnum/test/__init__.py

14
src/python/magnum/test/__init__.py

@ -29,4 +29,18 @@ import unittest
# TODO: do this differently / more robustly
sys.path = [os.path.join(os.path.dirname(__file__), '../../../../build/src/python')] + sys.path
from magnum import *
from magnum import platform
def setUpModule():
if not hasattr(platform, 'WindowlessApplication'): # pragma: no cover
raise unittest.SkipTest('no WindowlessApplication found')
class GLTestCase(unittest.TestCase):
app = None
@classmethod
def setUpClass(cls):
if not GLTestCase.app:
GLTestCase.app = platform.WindowlessApplication()

Loading…
Cancel
Save