You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
@pytest.mark.integration
@pytest.mark.parametrize("script_path", get_example_scripts())
@pytest.mark.cache_dir(
lambda script_path: os.path.expanduser(f"~/.cache/curator-tests/{Path(script_path).stem}")
)
@pytest.mark.dependency(depends=["first_run_{script_path}"])
def test_example_script_cached_run(script_path, monkeypatch, tmp_path):
"""Test that all example scripts can run without error (second run, using cache)."""
print(f"\n\n====== RUNNING CACHED RUN of {script_path} ======\n\n")
_run_example_script(script_path, monkeypatch, tmp_path)
This results in a different cache from those created in test_example_script_first_run, resulting in no cache hit
The text was updated successfully, but these errors were encountered:
In
test_examples.py
This results in a different cache from those created in
test_example_script_first_run
, resulting in no cache hitThe text was updated successfully, but these errors were encountered: