summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorIgor Radovanovic <74266147+IgorWounds@users.noreply.github.com>2023-09-18 15:32:18 +0200
committerIgor Radovanovic <74266147+IgorWounds@users.noreply.github.com>2023-09-18 15:32:18 +0200
commit0f160b26f50222346b8cd7235377908bd1aef682 (patch)
tree1fd8ad16c63c6b663996caff9ffdf091ccbf7cdf
parent3eb3619726997f38fbf6939fe8a84b651491ec00 (diff)
Docstring
-rw-r--r--openbb_sdk/providers/utils/unit_test_generator.py3
1 files changed, 3 insertions, 0 deletions
diff --git a/openbb_sdk/providers/utils/unit_test_generator.py b/openbb_sdk/providers/utils/unit_test_generator.py
index 7341a686711..ef43ee95398 100644
--- a/openbb_sdk/providers/utils/unit_test_generator.py
+++ b/openbb_sdk/providers/utils/unit_test_generator.py
@@ -7,10 +7,12 @@ from openbb_provider.abstract.fetcher import Fetcher
from openbb_provider.registry import RegistryLoader
from openbb_provider.utils.helpers import to_snake_case
from pydantic.fields import ModelField
+
from sdk.core.openbb_core.app.provider_interface import ProviderInterface
def get_provider_fetchers() -> Dict[str, Dict[str, Fetcher]]:
+ """Get the fetchers from the provider registry."""
registry = RegistryLoader.from_extensions()
provider_fetcher_map: Dict[str, Dict[str, Fetcher]] = {}
for provider_name, provider_cls in registry.providers.items():
@@ -82,6 +84,7 @@ def vcr_config():
def check_pattern_in_file(file_path: str, pattern: str) -> bool:
+ """Check if a pattern is in a file."""
with open(file_path) as f:
lines = f.readlines()
for line in lines: