mirror of
https://github.com/inventree/InvenTree.git
synced 2025-08-05 19:41:41 +00:00
Debug integration tests
This commit is contained in:
@@ -24,6 +24,9 @@ def isInMainThread():
|
||||
"""
|
||||
if '--noreload' in sys.argv or "gunicorn" in os.environ.get("SERVER_SOFTWARE", ""):
|
||||
return True
|
||||
|
||||
print("IS_IN_MAIN_THREAD", os.environ.get('RUN_MAIN', None) == 'true')
|
||||
return True
|
||||
|
||||
return os.environ.get('RUN_MAIN', None) == 'true'
|
||||
|
||||
|
Reference in New Issue
Block a user