Skip to content

Commit 092906b

Browse files
authored
Merge pull request #34302 from def-/pr-fail-empty
tests: Fail test if parts selection is empty
2 parents 4a31ce9 + 5a98387 commit 092906b

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

misc/python/materialize/mzcompose/composition.py

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1740,6 +1740,9 @@ def cloud_hostname(
17401740
def test_parts(self, parts: list[T], process_func: Callable[[T], Any]) -> None:
17411741
priority: dict[str, int] = {}
17421742

1743+
if not parts:
1744+
raise ValueError("No parts to test selected, check your parameters")
1745+
17431746
# TODO(def-): Revisit if this is worth enabling, currently adds ~15 seconds to each run
17441747
# if buildkite.is_in_buildkite():
17451748
# print("~~~ Fetching part priorities")

0 commit comments

Comments
 (0)