mirror of
https://github.com/OpenBB-finance/OpenBB.git
synced 2026-05-06 22:12:12 +08:00
[Feature] Refactor IMF for SDMX 3 (#7282)
* start the pr * codespell * lint * lint * lint * more lint * allow parameterized dimensions to be set by 'dimension_values' pairs * missed file in commit * grammar police * more lint * frequency description * fix nasdaq test * new lint * more touchup * readme * readme * fix integration tests * fix more integration tests * list_indicators_by_dataflow is redundant * unused import * remove integration test for removed utils endpoint * update dependencies * add grouping mechanism for port info widgets. * fix nan string representation propagating in table_presentation * more presentation table updates * update lock * cli lock file
This commit is contained in:
@@ -44,6 +44,7 @@ def find_extensions(filter_chart: bool | None = True):
|
||||
extensions.extend(
|
||||
[x for x in (ROOT_DIR / "obbject_extensions").iterdir() if x.is_dir()]
|
||||
)
|
||||
extensions.extend([x for x in (ROOT_DIR / "providers").iterdir() if x.is_dir()])
|
||||
extensions = [x for x in extensions if x.name not in filter_ext]
|
||||
return extensions
|
||||
|
||||
|
||||
@@ -34,6 +34,8 @@ def get_integration_tests(
|
||||
|
||||
for extension in find_extensions(filter_charting_ext):
|
||||
integration_folder = os.path.join(extension, "integration")
|
||||
if not os.path.exists(integration_folder):
|
||||
continue
|
||||
for file in os.listdir(integration_folder):
|
||||
if file.endswith(file_end):
|
||||
file_path = os.path.join(integration_folder, file)
|
||||
@@ -314,7 +316,11 @@ def check_missing_integration_tests(test_type: Literal["api", "python"]) -> list
|
||||
if route not in tested_functions:
|
||||
# TODO: See how to handle edge cases that are excluded from the schema
|
||||
# on purpose. This is currently on the econometrics router.
|
||||
if test_type == "api" and "econometrics" in route:
|
||||
if (
|
||||
test_type == "api"
|
||||
and "econometrics" in route
|
||||
or route.endswith(".json")
|
||||
):
|
||||
continue
|
||||
missing_integration_tests.append(
|
||||
f"Missing {test_type} integration test for route {route}"
|
||||
|
||||
Reference in New Issue
Block a user