Skip to content

Commit

Permalink
TST: use temporary cache for audbcards.Datacard (#103)
Browse files Browse the repository at this point in the history
  • Loading branch information
hagenw authored Jul 25, 2024
1 parent ca8c520 commit 9ad60d4
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions tests/test_datacard.py
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@ def test_datacard(tmpdir, db, cache, request):
"""Test datacard creation from jinja2 templates."""
db = request.getfixturevalue(db)
dataset = audbcards.Dataset(db.name, pytest.VERSION, cache_root=cache)
datacard = audbcards.Datacard(dataset)
datacard = audbcards.Datacard(dataset, cache_root=cache)

# Set sphinx src and build dir
build_dir = audeer.mkdir(tmpdir, "build", "html")
Expand Down Expand Up @@ -75,7 +75,7 @@ def test_datacard_file_duration_distribution(
dataset = audbcards.Dataset(db.name, pytest.VERSION, cache_root=cache)

datacard_path = audeer.mkdir(tmpdir, "datasets")
datacard = audbcards.Datacard(dataset, path=datacard_path)
datacard = audbcards.Datacard(dataset, path=datacard_path, cache_root=cache)

# Without specifying sphinx src and build dirs,
# we do not expect a PNG file
Expand Down Expand Up @@ -128,7 +128,7 @@ def test_datacard_player(tmpdir, db, cache, request):
dataset = audbcards.Dataset(db.name, pytest.VERSION, cache_root=cache)

datacard_path = audeer.mkdir(tmpdir, "datasets")
datacard = audbcards.Datacard(dataset, path=datacard_path)
datacard = audbcards.Datacard(dataset, path=datacard_path, cache_root=cache)

# Execute player
# without specifying sphinx src and build dirs
Expand Down

0 comments on commit 9ad60d4

Please sign in to comment.