alphax-polymarket/tests/test_live.py
2026-05-22 00:38:22 +08:00

10 lines
293 B
Python

from datetime import datetime, timezone
from poly_updown.live import current_btc_updown_slug
def test_current_slug_uses_five_minute_floor() -> None:
moment = datetime(2026, 5, 21, 15, 7, 42, tzinfo=timezone.utc)
assert current_btc_updown_slug(moment) == "btc-updown-5m-1779375900"