Disable upgrade checks during regression testing.

This commit is contained in:
Navnath Gadakh 2017-01-31 10:29:07 +00:00 committed by Dave Page
parent 2e5771e164
commit fd53e0c527

View File

@ -46,6 +46,11 @@ if os.path.isfile(config.TEST_SQLITE_PATH):
os.remove(config.TEST_SQLITE_PATH) os.remove(config.TEST_SQLITE_PATH)
config.TESTING_MODE = True config.TESTING_MODE = True
# Disable upgrade checks - no need during testing, and it'll cause an error if there's
# no network connection when it runs.
config.UPGRADE_CHECK_ENABLED = False
pgadmin_credentials = test_setup.config_data pgadmin_credentials = test_setup.config_data
# Set environment variables for email and password # Set environment variables for email and password