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

Function test_magic_join_rejection_matrix

tests/dataset/test_relation_join.py:338–349  ·  view source on GitHub ↗
(
    dataset_with_loads: TLoadsFixture,
    build_rel: Callable[[dlt.Dataset], dlt.Relation],
    other: Any,
    match: str,
)

Source from the content-addressed store, hash-verified

336 ],
337)
338def test_magic_join_rejection_matrix(
339 dataset_with_loads: TLoadsFixture,
340 build_rel: Callable[[dlt.Dataset], dlt.Relation],
341 other: Any,
342 match: str,
343) -> None:
344 dataset, _, _ = dataset_with_loads
345 rel = build_rel(dataset)
346 target = other(dataset) if callable(other) else other
347
348 with pytest.raises(ValueError, match=match):
349 rel.join(target)
350
351
352@pytest.mark.parametrize("kind", ["inner", "left", "right", "full"])

Callers

nothing calls this directly

Calls 1

joinMethod · 0.80

Tested by

no test coverage detected