From 730632c4693f8adbb56048c6a1ed9f6e489ec945 Mon Sep 17 00:00:00 2001 From: Graeme Watt Date: Wed, 1 Jan 2025 23:20:54 +0000 Subject: [PATCH] tests: fix test_range_queries to work in 2025 * Tests only pass if current_year is explicitly set to 2024. --- hepdata/version.py | 2 +- tests/search_test.py | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/hepdata/version.py b/hepdata/version.py index 22e8d161..79a75fb4 100644 --- a/hepdata/version.py +++ b/hepdata/version.py @@ -28,4 +28,4 @@ and parsed by ``setup.py``. """ -__version__ = "0.9.4dev20241211" +__version__ = "0.9.4dev20250101" diff --git a/tests/search_test.py b/tests/search_test.py index f54d67e0..9e94a651 100644 --- a/tests/search_test.py +++ b/tests/search_test.py @@ -449,7 +449,7 @@ def test_range_queries(app, load_default_data, identifiers): Tests search functionality to ensure range queries are functional, together and alongside other search types """ - current_year = datetime.today().year + current_year = 2024 test_data = [ { # Check all results are returned, and is sorted by inspire_id