Add `ci_env` detector fixture

agg_feedz
Tyler Goodlet 2023-01-09 15:30:26 -05:00
parent b7e1443618
commit f232d6d4ee
1 changed files with 10 additions and 0 deletions

View File

@ -83,6 +83,15 @@ def travis(confdir):
trio.run(ensure_config) trio.run(ensure_config)
_ci_env: bool = os.environ.get('CI', False)
@pytest.fixture(scope='session')
def ci_env() -> bool:
"""Detect CI envoirment.
"""
return _ci_env
@pytest.fixture @pytest.fixture
def us_symbols(): def us_symbols():
return ['TSLA', 'AAPL', 'CGC', 'CRON'] return ['TSLA', 'AAPL', 'CGC', 'CRON']
@ -96,3 +105,4 @@ def tmx_symbols():
@pytest.fixture @pytest.fixture
def cse_symbols(): def cse_symbols():
return ['TRUL.CN', 'CWEB.CN', 'SNN.CN'] return ['TRUL.CN', 'CWEB.CN', 'SNN.CN']