Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
7 changes: 4 additions & 3 deletions pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -22,15 +22,16 @@ classifiers = [
"Programming Language :: Python :: 3.10",
"Programming Language :: Python :: 3.11",
"Programming Language :: Python :: 3.12",
"Programming Language :: Python :: 3.13",
"Operating System :: OS Independent",
"Topic :: Software Development :: Libraries :: Python Modules",
]

dependencies = [
"httpx>=0.26,<0.28",
"httpx>=0.28,<1.0",
"exceptiongroup; python_version < '3.11'",
"tenacity>=8.2,<9.0",
"pydantic>=2.10.6,<2.11.0"
"tenacity>=8.2,<10.0",
"pydantic>=2.10.6,<3.0"
]

[project.urls]
Expand Down
6 changes: 3 additions & 3 deletions tests/unit/test_historic_positions.py
Original file line number Diff line number Diff line change
Expand Up @@ -75,12 +75,12 @@ def test_serialize_params(self):
serialized = params._to_query_dict()

# Check serialization results
assert isinstance(serialized["timestamp"], int)
assert serialized["timestamp"] == str(int(datetime(2020, 1, 1, tzinfo=timezone.utc).timestamp()))
assert serialized["bounds"] == "10,20,30,40"
assert serialized["flights"] == "AB1234,CD5678"
assert serialized["callsigns"] == "ABC123"
assert serialized["altitude_ranges"] == "1000,5000,10000,20000"
assert serialized["limit"] == 100
assert serialized["limit"] == "100"

# Check that None values are not included
assert "registrations" not in serialized
Expand Down Expand Up @@ -143,7 +143,7 @@ def test_get_light_success(self, historic_positions, mock_transport):
assert args[0] == "GET"
assert args[1] == "/api/historic/flight-positions/light"
assert "timestamp" in kwargs["params"]
assert kwargs["params"]["timestamp"] == 1672574400
assert kwargs["params"]["timestamp"] == "1672574400"

def test_get_light_empty_response(self, historic_positions, mock_transport):
"""Test get_light with empty response."""
Expand Down
Loading
Loading