mirror of
https://github.com/OpenBB-finance/OpenBB.git
synced 2026-10-28 13:01:38 +00:00
* replace nasdaq sp500 multiples with direct source * black * filter for start/end date * linting * didn't commit the changes * docstring * black * docstring * unused argument * ruff * markdown in description * UPPER --------- Co-authored-by: Igor Radovanovic <74266147+IgorWounds@users.noreply.github.com>
28 lines
696 B
Python
28 lines
696 B
Python
"""Multpl Fetcher Tests."""
|
|
|
|
import pytest
|
|
from openbb_core.app.service.user_service import UserService
|
|
from openbb_multpl.models.sp500_multiples import MultplSP500MultiplesFetcher
|
|
|
|
test_credentials = UserService().default_user_settings.credentials.model_dump(
|
|
mode="json"
|
|
)
|
|
|
|
|
|
@pytest.fixture(scope="module")
|
|
def vcr_config():
|
|
"""VCR configuration."""
|
|
return {
|
|
"filter_headers": [("User-Agent", None)],
|
|
}
|
|
|
|
|
|
@pytest.mark.record_http
|
|
def test_multpl_sp500_multiples_fetcher(credentials=None):
|
|
"""Test multpl sp500 multiples fetcher."""
|
|
params = {}
|
|
|
|
fetcher = MultplSP500MultiplesFetcher()
|
|
result = fetcher.test(params, credentials)
|
|
assert result is None
|