Also detect pytest in the environ (for local debug)

pull/43/head
dgtlmoon 4 years ago
parent 24a38f26f8
commit a10efa951b

@ -113,7 +113,8 @@ class ChangeDetectionStore:
if not 'app_guid' in self.__data:
import sys
if "pytest" in sys.modules:
import os
if "pytest" in sys.modules or "PYTEST_CURRENT_TEST" in os.environ:
self.__data['app_guid'] = "test-" + str(uuid_builder.uuid4())
else:
self.__data['app_guid'] = str(uuid_builder.uuid4())

Loading…
Cancel
Save