mirror of
https://github.com/OpenBB-finance/OpenBB.git
synced 2026-11-03 16:02:04 +00:00
* comment call_news * remove news * remove keys controller * remove settings controller * remove ta forex * remove qa economy * remove ta stocks * remove qa stocks * remove fa stocks * remove ins stocks * remove gov stocks * remove dps stocks * remove ba stocks * remove bt stocks * remove stocks * remove stocks base controller class * ruff * remove qa forex * remove oanda * remove forex * remove forex * remove forex * remove mention to fx_tickers * remove ta crypto * remove qa crypto * remove dd crypto * remove crypto controller * remove crypto references * remove economy controller * remove economy folder * remoe etf controller * remove reports controller * remove dashboards controller * remove alt controller * rmeove etf files * remove alt files * remove custom reports * remove dashboard files * remove econometrics controller * remove forecast controller * remove reports files * remove forecast files * remove econometrics files * remove portfolio * remove futures * remove fixedincome * remove funds * remove sdk and common * remove all from init * remove reference to ipykernel * remove reference to ta_helpers * remove reference to ta_helpers * cleanup * adjustments to choices * remove old sdk generator * remove mention to dashboards * ruff * cleanup * remove logging infra * remove decorators * remove sdk audit * remove tought of the day * remove tought of the day * fix commands andmenus choices * fixing lints * ruffs * remove old tests
23 lines
438 B
Python
23 lines
438 B
Python
import logging
|
|
|
|
import pytest
|
|
|
|
from openbb_terminal.core.session.current_system import set_system_variable
|
|
|
|
logger = logging.getLogger(__name__)
|
|
|
|
|
|
def function_that_fails():
|
|
raise ValueError("Failure")
|
|
|
|
|
|
def test_debug_false():
|
|
set_system_variable("DEBUG_MODE", False)
|
|
function_that_fails()
|
|
|
|
|
|
def test_debug_true():
|
|
set_system_variable("DEBUG_MODE", True)
|
|
with pytest.raises(ValueError):
|
|
function_that_fails()
|