config refactor (#1854)

* split out config

* add tests for base and app config, refactor client config out of app config

* refactor default config retrieval

* create config test class and helper functions

* move default_config into server to fix import issue
This commit is contained in:
Madison Dunitz
2020-09-29 16:42:46 -05:00
committed by GitHub
parent 1145f61c78
commit af3c6e1d8e
57 changed files with 2667 additions and 1599 deletions
+2 -4
View File
@@ -3,7 +3,7 @@ import tempfile
import requests
import subprocess
from server.test import PROJECT_ROOT, FIXTURES_ROOT
from server.common.app_config import AppConfig
from server.common.config.app_config import AppConfig
from contextlib import contextmanager
import time
@@ -36,9 +36,7 @@ class Elastic_Beanstalk_Test(unittest.TestCase):
c = AppConfig()
# test that eb works
c.update_server_config(
multi_dataset__dataroot=f"{FIXTURES_ROOT}", app__flask_secret_key="open sesame"
)
c.update_server_config(multi_dataset__dataroot=f"{FIXTURES_ROOT}", app__flask_secret_key="open sesame")
c.complete_config()
c.write_config(f"{tempdirname}/config.yaml")