10 lines
293 B
Python
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"
|