MCPcopy
hub / github.com/dlt-hub/dlt / test_http_filesystem

Function test_http_filesystem

tests/sources/filesystem/test_filesystem_source.py:18–28  ·  view source on GitHub ↗
(public_http_server, bucket_url: str)

Source from the content-addressed store, hash-verified

16 ],
17)
18def test_http_filesystem(public_http_server, bucket_url: str):
19 public_resource = filesystem(bucket_url=bucket_url, file_glob="parquet/mlb_players.parquet")
20 pipeline = dlt.pipeline("test_http_load", dev_mode=True, destination="duckdb")
21 # just execute iterator
22 load_info = pipeline.run(
23 [
24 public_resource.with_name("http_parquet_example"),
25 ]
26 )
27 assert_load_info(load_info)
28 assert pipeline.last_trace.last_normalize_info.row_counts["http_parquet_example"] == 1

Callers

nothing calls this directly

Calls 5

filesystemFunction · 0.90
assert_load_infoFunction · 0.90
pipelineMethod · 0.80
with_nameMethod · 0.80
runMethod · 0.45

Tested by

no test coverage detected