# ABOUTME: Tests for the constants module. # ABOUTME: Validates sentinel values used throughout the application. import datetime class TestEndOfTimeUtc: """Test the END_OF_TIME_UTC sentinel constant.""" def test_end_of_time_value(self): """END_OF_TIME_UTC should equal 32503680000000 (ms epoch for year 3000).""" from animaltrack.constants import END_OF_TIME_UTC assert END_OF_TIME_UTC == 32503680000000 def test_end_of_time_represents_year_3000(self): """END_OF_TIME_UTC should represent January 1, 3000 00:00:00 UTC.""" from animaltrack.constants import END_OF_TIME_UTC # Convert ms to seconds for datetime dt = datetime.datetime.fromtimestamp(END_OF_TIME_UTC / 1000, tz=datetime.UTC) assert dt.year == 3000 assert dt.month == 1 assert dt.day == 1 assert dt.hour == 0 assert dt.minute == 0 assert dt.second == 0 def test_end_of_time_is_integer(self): """END_OF_TIME_UTC should be an integer (ms precision).""" from animaltrack.constants import END_OF_TIME_UTC assert isinstance(END_OF_TIME_UTC, int)