Files
dlt/tests/sources/test_pipeline_templates.py
rudolfix 0dcdcf0e33 ignores native config values if config spec does not implement those (#3233)
* does not fail config resolution if native valued provided to a config that does not implement native values

* updates databricks docs

* allows to replace hints regexes on schema

* removes partition hint on eth merge test on databricks

* adds pokemon table count consts

* reorgs databricks dlt fix

* fixes lancedb custom destination example

* fixes lancedb custom destination example

* reduces no sql_database examples run on ci

* fixes merge

* marks and skips rfam tests
2025-10-22 22:48:13 +02:00

24 lines
789 B
Python

import pytest
import importlib
@pytest.mark.parametrize(
"template_name,examples",
[
("debug_pipeline", ("load_all_datatypes",)),
("default_pipeline", ("load_api_data", "load_sql_data", "load_pandas_data")),
("arrow_pipeline", ("load_arrow_tables",)),
("dataframe_pipeline", ("load_dataframe",)),
("requests_pipeline", ("load_chess_data",)),
("github_api_pipeline", ("run_source",)),
("fruitshop_pipeline", ("load_shop",)),
],
)
@pytest.mark.rfam
def test_debug_pipeline(template_name: str, examples: str) -> None:
demo_module = importlib.import_module(
f"dlt._workspace._templates._single_file_templates.{template_name}"
)
for example_name in examples:
getattr(demo_module, example_name)()