Skip to content

Commit

Permalink
fixes some test cases that started to abort
Browse files Browse the repository at this point in the history
  • Loading branch information
rudolfix committed Sep 9, 2024
1 parent 9f4ff1e commit 83b9b15
Show file tree
Hide file tree
Showing 4 changed files with 7 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -94,6 +94,7 @@ def destination_instantiation_snippet() -> None:
# here dependencies dependencies will be imported, secrets pulled and destination accessed
# we pass bucket_url explicitly and expect credentials passed by config provider
load_info = pipeline.load(destination=filesystem(bucket_url=bucket_url))
print(load_info)
# @@@DLT_SNIPPET_END late_destination_access


Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -180,6 +180,8 @@ async def _run_async():
loop.run_in_executor(executor, _run_pipeline, pipeline_2, defer_table),
)
# results contains two LoadInfo instances
print("pipeline_1", results[0])
print("pipeline_2", results[1])

# load data
asyncio.run(_run_async())
Expand Down
2 changes: 2 additions & 0 deletions tests/load/pipeline/test_csv_loading.py
Original file line number Diff line number Diff line change
Expand Up @@ -113,6 +113,8 @@ def test_custom_csv_no_header(
ids=lambda x: x.name,
)
def test_custom_wrong_header(destination_config: DestinationTestConfiguration) -> None:
# do not raise on failed jobs
os.environ["RAISE_ON_FAILED_JOBS"] = "false"
csv_format = CsvFormatConfiguration(delimiter="|", include_header=True)
# apply to collected config
pipeline = destination_config.setup_pipeline("postgres_" + uniq_id(), dev_mode=True)
Expand Down
4 changes: 2 additions & 2 deletions tests/normalize/test_max_nesting.py
Original file line number Diff line number Diff line change
Expand Up @@ -61,7 +61,7 @@ def bot_events():
pipeline_name = f"test_max_table_nesting_{nesting_level}_{expected_num_tables}"
pipeline = dlt.pipeline(
pipeline_name=pipeline_name,
destination=dummy(timeout=0.1),
destination=dummy(timeout=0.1, completed_prob=1),
dev_mode=True,
)

Expand Down Expand Up @@ -168,7 +168,7 @@ def some_data():
pipeline_name = "test_different_table_nesting_levels"
pipeline = dlt.pipeline(
pipeline_name=pipeline_name,
destination=dummy(timeout=0.1),
destination=dummy(timeout=0.1, completed_prob=1),
dev_mode=True,
)

Expand Down

0 comments on commit 83b9b15

Please sign in to comment.