mirror of
https://github.com/OpenBB-finance/OpenBB.git
synced 2026-10-27 12:40:35 +00:00
Updating tests : stocks/options (#1253)
Co-authored-by: didierlopes.eth <dro.lopes@campus.fct.unl.pt>
This commit is contained in:
File diff suppressed because it is too large
Load Diff
@@ -78,6 +78,12 @@ def test_call_func(func, mocker, recorder):
|
||||
|
||||
mocker.patch("yfinance.download", side_effect=mock_yf_download)
|
||||
|
||||
# MOCK OPTION
|
||||
mocker.patch(
|
||||
target="gamestonk_terminal.stocks.options.yfinance_model.get_dte",
|
||||
return_value=1,
|
||||
)
|
||||
|
||||
result = getattr(yfinance_model, func)(ticker="PM")
|
||||
|
||||
recorder.capture(result)
|
||||
|
||||
Reference in New Issue
Block a user