mirror of
https://github.com/OpenBB-finance/OpenBB.git
synced 2026-11-16 06:11:57 +00:00
* 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>
40 lines
803 B
Python
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
|