Skip to content

Commit

Permalink
test: no need to load another config obj
Browse files Browse the repository at this point in the history
  • Loading branch information
wzyboy committed Jul 9, 2023
1 parent 784e460 commit 58e71f3
Showing 1 changed file with 1 addition and 6 deletions.
7 changes: 1 addition & 6 deletions tests/conftest.py
Expand Up @@ -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,
})
Expand Down

0 comments on commit 58e71f3

Please sign in to comment.