mirror of
https://github.com/OpenBB-finance/OpenBB.git
synced 2026-11-09 02:42:36 +00:00
* Updating tests : stocks/ta * Updating tests : conftest * Updating tests : stocks/screener/finviz * Updating tests : stocks/options
32 lines
657 B
Python
32 lines
657 B
Python
# IMPORTATION STANDARD
|
|
|
|
# IMPORTATION THIRDPARTY
|
|
import pytest
|
|
|
|
# IMPORTATION INTERNAL
|
|
from gamestonk_terminal.stocks.technical_analysis import tradingview_model
|
|
|
|
|
|
@pytest.fixture(scope="module")
|
|
def vcr_config():
|
|
return {
|
|
"filter_query_parameters": [
|
|
("apikey", "MOCK_API_KEY"),
|
|
]
|
|
}
|
|
|
|
|
|
@pytest.mark.vcr
|
|
@pytest.mark.parametrize(
|
|
"interval",
|
|
["1d", ""],
|
|
)
|
|
def test_get_tradingview_recommendation(interval, recorder):
|
|
result = tradingview_model.get_tradingview_recommendation(
|
|
ticker="AAPL",
|
|
exchange="",
|
|
screener="america",
|
|
interval=interval,
|
|
)
|
|
recorder.capture(result)
|