Updating tests : stocks/options (#1253)

Co-authored-by: didierlopes.eth <dro.lopes@campus.fct.unl.pt>
This commit is contained in:
Chavithra
2022-01-24 03:15:27 +01:00
committed by GitHub
parent bdfb61a411
commit abbc44be50
2 changed files with 508 additions and 502 deletions

View File

@@ -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)