mirror of
https://github.com/inventree/InvenTree.git
synced 2025-08-07 04:12:11 +00:00
Debug integration tests
This commit is contained in:
@@ -25,6 +25,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