Reduced backend resposibility to emmit game events, whole addon logic implemented in python side

This commit is contained in:
Wiktor Mazur
2020-02-18 16:55:33 +01:00
parent d73f34a33b
commit 133975cd77
78 changed files with 3203 additions and 1331 deletions
+18
View File
@@ -0,0 +1,18 @@
import os
TEST_ENV_ENABLED = bool(os.getenv('TESTING'))
class TestType:
Simple = 1
_test_types = {
'simple': TestType.Simple
}
if TEST_ENV_ENABLED:
test_type = os.getenv('TESTING')
if test_type not in _test_types:
raise Exception('Unavailable GUI test type, avaliable values: {}'.format(','.join(_test_types.keys())))
TEST_TYPE = _test_types[os.getenv('TESTING').lower()]