Files
OpenBB/tests/openbb_terminal/stocks/fundamental_analysis/test_polygon_view.py
James Maslek d3c4919993 Add stock fundamentals from polygon (#1774)
* Add polygon to fundamentals

* Update fa menu text

* Update fa menu text

* tests for _model

* wording/lint

* _view tests

Co-authored-by: didierlopes.eth <dro.lopes@campus.fct.unl.pt>
2022-05-09 19:07:11 -04:00

25 lines
658 B
Python

import pytest
from openbb_terminal.stocks.fundamental_analysis import polygon_view
@pytest.fixture(scope="module")
def vcr_config():
return {
"filter_headers": [("User-Agent", None)],
"filter_query_parameters": [
("apiKey", "MOCK_API_KEY"),
],
}
@pytest.mark.record_stdout
@pytest.mark.vcr
@pytest.mark.parametrize(
"financial, quarterly",
[("income", True), ("income", False), ("balance", True), ("balance", False)],
)
def test_display_fundamentals(financial, quarterly):
polygon_view.display_fundamentals(
ticker="AAPL", financial=financial, limit=2, quarterly=quarterly, export=""
)