Files
OpenBB/tests/openbb_terminal/fixedincome/test_yfinance_view.py
Igor Radovanovic 65e3c8573c Fixed income unit tests (#4568)
* fixed income unit tests

* api key fix

* fix mock api key

* Update poetry.lock

* Poetry

* Pytest : fix name collisions

* dependency update

* Re-record unit test

* Update unit tests

---------

Co-authored-by: Luqman <luqazino@gmail.com>
Co-authored-by: Chavithra <chavithra@gmail.com>
2023-04-03 16:42:23 +00:00

17 lines
369 B
Python

"""Test the yfinance_view.py"""
import pytest
from openbb_terminal.fixedincome import yfinance_view
@pytest.mark.parametrize(
"maturity, kwargs",
[
("5_year", {"start_date": "2021-01-01", "end_date": "2022-01-01"}),
],
)
def test_plot_ty(maturity, kwargs):
fig = yfinance_view.plot_ty(maturity=maturity, **kwargs)
assert fig is not None