Skip to content

Commit

Permalink
test: Add serial marker to cache related tests (#2300)
Browse files Browse the repository at this point in the history
Signed-off-by: Jan Fiedler <[email protected]>
  • Loading branch information
pingsutw authored and fiedlerNr9 committed Jul 25, 2024
1 parent de53858 commit e07f0fe
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions tests/flytekit/unit/core/test_local_cache.py
Original file line number Diff line number Diff line change
Expand Up @@ -600,6 +600,7 @@ def test_checkpoint_cached_task():
assert t2(n=5) == 6


@pytest.mark.serial
def test_cache_ignore_input_vars():
@task(cache=True, cache_version="v1", cache_ignore_input_vars=["a"])
def add(a: int, b: int) -> int:
Expand All @@ -614,6 +615,7 @@ def add_wf(a: int, b: int) -> int:
assert add_wf(a=20, b=8) == 28


@pytest.mark.serial
def test_set_cache_ignore_input_vars_without_set_cache():
with pytest.raises(
ValueError,
Expand Down

0 comments on commit e07f0fe

Please sign in to comment.