def test_context_load_statistic_error() -> None: settings = Setting() settings.STATISTIC = MagicMock # type:ignore context = Context(settings) with pytest.raises(SettingError): context.load_statistic()
def test_context_load_trade_counter_error() -> None: settings = Setting() settings.TRADE_COUNTER = MagicMock() # type:ignore context = Context(settings) context.load_statistic() with pytest.raises(SettingError): context.load_trade_counter()