From 58e71f336d69e99940374f76ed53ad9842991627 Mon Sep 17 00:00:00 2001 From: Zhuoyun Wei Date: Sun, 9 Jul 2023 02:12:53 -0700 Subject: [PATCH] test: no need to load another config obj --- tests/conftest.py | 7 +------ 1 file changed, 1 insertion(+), 6 deletions(-) diff --git a/tests/conftest.py b/tests/conftest.py index 3736bc6..2d32741 100644 --- a/tests/conftest.py +++ b/tests/conftest.py @@ -10,15 +10,10 @@ from ash import app -class Config: - TESTING = True - T_MEDIA_FROM = 'direct' - - @pytest.fixture def client(es_host, es_index): - app.config.from_object(Config) app.config.update({ + 'TESTING': True, 'T_ES_HOST': es_host, 'T_ES_INDEX': es_index, })