diff options
-rw-r--r-- | catalog/settings.py | 7 |
1 files changed, 6 insertions, 1 deletions
diff --git a/catalog/settings.py b/catalog/settings.py index 8f4f36ba..1920f1b2 100644 --- a/catalog/settings.py +++ b/catalog/settings.py @@ -165,18 +165,23 @@ pub_config.SDC_BASE_URL = "http://%s:%s/api" % (pub_config.MSB_SERVICE_IP, pub_c LOGGING_CONFIG = None # yaml configuration of logging LOGGING_FILE = os.path.join(BASE_DIR, 'catalog/log.yml') +if 'test' in sys.argv: + os.system('sed -i "s|/var/log/onap/vfc/catalog|/tmp|" %s' % LOGGING_FILE) log_config.yamlConfig(filepath=LOGGING_FILE, watchDog=True) if 'test' in sys.argv: + os.system('sed -i "s|/tmp|/var/log/onap/vfc/catalog|" %s' % LOGGING_FILE) + pub_config.REG_TO_MSB_WHEN_START = False + DATABASES = {} DATABASES['default'] = { 'ENGINE': 'django.db.backends.sqlite3', 'NAME': ':memory:', } REST_FRAMEWORK = {} - import platform + import platform if platform.system() == 'Linux': TEST_RUNNER = 'xmlrunner.extra.djangotestrunner.XMLTestRunner' TEST_OUTPUT_VERBOSE = True |