Skip to content

Commit

Permalink
tests: fix test_range_queries to work in 2025
Browse files Browse the repository at this point in the history
* Tests only pass if current_year is explicitly set to 2024.
  • Loading branch information
GraemeWatt committed Jan 1, 2025
1 parent 8a89c88 commit 730632c
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion hepdata/version.py
Original file line number Diff line number Diff line change
Expand Up @@ -28,4 +28,4 @@
and parsed by ``setup.py``.
"""

__version__ = "0.9.4dev20241211"
__version__ = "0.9.4dev20250101"
2 changes: 1 addition & 1 deletion tests/search_test.py
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit 730632c

Please sign in to comment.