Files
OpenBB/tests/openbb_terminal/alternative/covid/test_covid_model.py
Igor Radovanovic 2bf1729bbd Alt & mutual fund unit test & cleanup (#4540)
* Alternative & Mutual Funds unit tests & cleanup

* ruff

* add dependency

* general linting updates

* Update reqs

* pytest-recorder updates

* pre-commit config

* checkout dependencies from develop

* dependency update

* dependency update

* pytest-recorder updates

---------

Co-authored-by: James Maslek <jmaslek11@gmail.com>
Co-authored-by: montezdesousa <79287829+montezdesousa@users.noreply.github.com>
2023-03-23 12:33:36 +00:00

40 lines
803 B
Python

"""Test the covid model."""
import pytest
from pandas import DataFrame
from openbb_terminal.alternative.covid import covid_model
@pytest.mark.record_http
@pytest.mark.parametrize(
"country",
["US"],
)
def test_get_global_cases(country):
df = covid_model.get_global_cases(country)
assert isinstance(df, DataFrame)
assert not df.empty
@pytest.mark.record_http
@pytest.mark.parametrize(
"country",
["US"],
)
def test_get_global_deaths(country):
df = covid_model.get_global_deaths(country)
assert isinstance(df, DataFrame)
assert not df.empty
@pytest.mark.record_http
@pytest.mark.parametrize(
"country",
["US"],
)
def test_get_covid_ov(country):
df = covid_model.get_covid_ov(country)
assert isinstance(df, DataFrame)
assert not df.empty