mirror of
https://github.com/OpenBB-finance/OpenBB.git
synced 2026-11-29 04:32:43 +00:00
* 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>
25 lines
658 B
Python
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=""
|
|
)
|