Skip to content

Commit

Permalink
Remove timestamp
Browse files Browse the repository at this point in the history
  • Loading branch information
sfmig committed Dec 9, 2024
1 parent ad14219 commit bc5fe5e
Showing 1 changed file with 2 additions and 5 deletions.
7 changes: 2 additions & 5 deletions tests/fixtures/integration.py
Original file line number Diff line number Diff line change
@@ -1,6 +1,5 @@
"""Pytest fixtures for integration tests."""

from datetime import datetime
from pathlib import Path

import pooch
Expand Down Expand Up @@ -28,13 +27,11 @@ def pooch_registry() -> dict:
base_url=f"{GIN_TEST_DATA_REPO}/raw/master/test_data",
)

# Download the registry file from GIN
# Force to download it fresh every time by using a timestamped filename
timestamp = datetime.now().strftime("%Y%m%d_%H%M%S")
# Download only the registry file from GIN
# if known_hash = None, the file is always downloaded.
file_registry = pooch.retrieve(
url=f"{GIN_TEST_DATA_REPO}/raw/master/files-registry.txt",
known_hash=None,
fname=f"files-registry_{timestamp}.txt",
path=Path.home() / ".crabs-exploration-test-data",
)

Expand Down

0 comments on commit bc5fe5e

Please sign in to comment.