mirror of
https://github.com/dlt-hub/dlt.git
synced 2025-12-17 19:31:30 +00:00
* 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
24 lines
789 B
Python
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)()
|