refactoring
This commit is contained in:
parent
7adbdefb4e
commit
d12124b2d5
@ -36,7 +36,6 @@ def pass_invalid_combination(fn):
|
||||
return inner
|
||||
|
||||
|
||||
# @pass_invalid_combination
|
||||
@pytest.mark.parametrize(
|
||||
"client_pipeline_type",
|
||||
[
|
||||
@ -45,13 +44,14 @@ def pass_invalid_combination(fn):
|
||||
],
|
||||
)
|
||||
def test_pipeline(core_operation, client_pipeline, input_data_items, metadata, targets, item_type, one_to_many):
|
||||
if targets is Nothing:
|
||||
pytest.skip(f"invalid parameter combination: {item_type=}, {one_to_many=}")
|
||||
if core_operation is Nothing:
|
||||
pytest.skip(f"No operation defined for parameter combination: {item_type=}, {one_to_many=}")
|
||||
output = client_pipeline(input_data_items, metadata)
|
||||
output = lmap(unpack, output)
|
||||
assert output == targets
|
||||
|
||||
|
||||
|
||||
# @pytest.mark.parametrize("item_type", ["string"])
|
||||
# @pytest.mark.parametrize("n_items", [1])
|
||||
# def test_pipeline_is_lazy(input_data_items, metadata):
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user