Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

mark/matrix: forgive empty parametrization #24

Merged
merged 1 commit into from
Mar 14, 2023
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
7 changes: 6 additions & 1 deletion ducktape/mark/_mark.py
Original file line number Diff line number Diff line change
Expand Up @@ -143,10 +143,15 @@ def name(self):
return "MATRIX"

def apply(self, seed_context, context_list):
empty_parametrization = True
for injected_args in cartesian_product_dict(self.injected_args):
empty_parametrization = False
injected_fun = _inject(**injected_args)(seed_context.function)
context_list.insert(0, seed_context.copy(function=injected_fun, injected_args=injected_args))

# forgive empty parametrization and mark test as IGNORE
if empty_parametrization and not context_list:
seed_context.ignore = True
context_list.insert(0, seed_context)
return context_list

def __eq__(self, other):
Expand Down