Skip to content

Commit

Permalink
fix behave test (#20)
Browse files Browse the repository at this point in the history
  • Loading branch information
petrjasek authored Feb 15, 2024
1 parent 057c1f6 commit a1ed86f
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion server/features/environment.py
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
from superdesk.tests.environment import setup_before_all, setup_before_scenario

from newsroom.news_api.app import get_app as _get_app
from newsroom.news_api.factory import get_app as _get_app
from settings_newsapi import CORE_APPS


Expand All @@ -18,6 +18,7 @@ def before_all(context):
'NEWS_API_ENABLED': True,
'NEWS_API_TIME_LIMIT_DAYS': 100,
'NEWS_API_BEHAVE_TESTS': True,
'CACHE_TYPE': 'null',
}
setup_before_all(context, config, app_factory=get_app)

Expand All @@ -31,6 +32,7 @@ def before_scenario(context, scenario):
'NEWS_API_ENABLED': True,
'NEWS_API_TIME_LIMIT_DAYS': 100,
'NEWS_API_BEHAVE_TESTS': True,
'CACHE_TYPE': 'null',
}

if 'rate_limit' in scenario.tags:
Expand Down

0 comments on commit a1ed86f

Please sign in to comment.