mirror of
https://github.com/OpenBB-finance/OpenBB.git
synced 2026-11-01 15:01:18 +00:00
* 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>
17 lines
369 B
Python
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
|