Disable version check when pytest is running (#1084)

This commit is contained in:
dgtlmoon
2022-11-01 18:26:29 +01:00
committed by GitHub
parent 77b59809ca
commit c197c062e1
3 changed files with 5 additions and 4 deletions

View File

@@ -1307,8 +1307,8 @@ def changedetection_app(config=None, datastore_o=None):
threading.Thread(target=notification_runner).start()
# Check for new release version, but not when running in test/build
if not os.getenv("GITHUB_REF", False):
# Check for new release version, but not when running in test/build or pytest
if not os.getenv("GITHUB_REF", False) and not config.get('disable_checkver') == True:
threading.Thread(target=check_for_new_version).start()
return app