Files
OpenBB/tests/openbb_terminal/stocks/fundamental_analysis/test_eodhd_view.py
Igor Radovanovic ed584cfa20 stocks/fa unit tests (#4754)
* Unit tests batch 1

* Unit tests batch 2

* Unit tests batch

* Unit tests batch

* Unit tests batch

* Unit tests batch

* Unit tests batch

* Unit tests batch

* Unit tests batch

* Unit tests batch

* Debloat

* Debloat

* Fix linting
2023-04-12 19:42:09 +00:00

27 lines
590 B
Python

"""Test the EODHD view."""
import pytest
from openbb_terminal.stocks.fundamental_analysis import eodhd_view
@pytest.fixture(scope="module")
def vcr_config():
return {
"filter_query_parameters": [
("api_token", "MOCK_API_KEY"),
],
}
# Only works with a premium key
@pytest.mark.record_http
@pytest.mark.parametrize(
"symbol, statement, kwargs",
[
("PM", "Income_Statement", {}),
],
)
def test_display_fundamentals_fail(symbol, statement, kwargs):
eodhd_view.display_fundamentals(symbol=symbol, statement=statement, **kwargs)