Skip to content

Commit

Permalink
fixup! fixup! Issue #42 Process selection: --processes has preceden…
Browse files Browse the repository at this point in the history
…ce over `--experimental`
  • Loading branch information
soxofaan committed Jan 26, 2024
1 parent b923eee commit 3175169
Showing 1 changed file with 5 additions and 5 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -122,12 +122,12 @@ def test_get_processes_filtered_with_process_ids_and_levels(self, process_regist
assert pid not in pids

def test_get_processes_filtered_with_experimental(self, process_registry):
pids = [
pids = {
p.process_id
for p in process_registry.get_processes_filtered(
process_ids=["min", "max"], process_levels=["L3"], experimental=True
)
]
}
for pid in ["min", "max"] + self.PROCESS_EXAMPLES_L3:
assert pid in pids
for pid in self.PROCESS_EXAMPLES_L3_EXPERIMENTAL:
Expand All @@ -142,13 +142,13 @@ def test_get_processes_filtered_explicit_process_over_experimental(
assert process_registry.get_process("load_collection").experimental is False
assert process_registry.get_process("load_stac").experimental is True

pids = [
pids = {
(p.process_id, p.experimental)
for p in process_registry.get_processes_filtered(
process_ids=["load_collection", "load_stac"], experimental=False
)
]
assert pids == [("load_collection", False), ("load_stac", True)]
}
assert pids == {("load_collection", False), ("load_stac", True)}

@pytest.mark.parametrize("experimental", [True, False])
def test_get_processes_filtered_explicit_process_and_levels_over_experimental(
Expand Down

0 comments on commit 3175169

Please sign in to comment.