Skip to content
Snippets Groups Projects
Commit 40259189 authored by Tanner Prestegard's avatar Tanner Prestegard Committed by GraceDB
Browse files

Rename test settings

Rename config/settings/test.py -> config/settings/dev.py to prevent
the file from being picked up by the test runner during unit testing.
parent 8e95cb07
No related branches found
No related tags found
No related merge requests found
...@@ -9,11 +9,11 @@ Description of settings files: ...@@ -9,11 +9,11 @@ Description of settings files:
secret.py - generated by Puppet, contains secret settings like the secret.py - generated by Puppet, contains secret settings like the
database password, API keys, etc. database password, API keys, etc.
base.py - contains the basic settings for running a GraceDB server. base.py - contains the basic settings for running a GraceDB server.
These can be overridden in production.py or test.py. Uses These can be overridden in production.py or dev.py. Uses
settings in local.py and secret.py. settings in local.py and secret.py.
production.py - defines settings for a production GraceDB instance. Imports production.py - defines settings for a production GraceDB instance. Imports
base.py settings and overrides/adds settings. base.py settings and overrides/adds settings.
test.py - defines settings for a test/development GraceDB instance. dev.py - defines settings for a development or testing server.
Imports base.py settings and overrides/adds settings. Imports base.py settings and overrides/adds settings.
""" """
...@@ -25,10 +25,10 @@ try: ...@@ -25,10 +25,10 @@ try:
settings_file = 'production' settings_file = 'production'
else: else:
# If ./local.py is not found or IS_PRODUCTION_SERVER # If ./local.py is not found or IS_PRODUCTION_SERVER
# is not defined, use test settings # is not defined, use development/test settings
settings_file = 'test' settings_file = 'dev'
except NameError: except NameError:
settings_file = 'test' settings_file = 'dev'
settings_module = __import__(settings_file, globals(), locals()) settings_module = __import__(settings_file, globals(), locals())
# Put these settings into the local scope # Put these settings into the local scope
......
File moved
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment