fix: update ntfy tests for SSE API (reconnect_delay)

This commit is contained in:
2026-03-15 15:07:49 -07:00
parent 14cb0bd7d4
commit ab6bbac02b
2 changed files with 4 additions and 4 deletions

View File

@@ -15,15 +15,15 @@ class TestNtfyPollerInit:
"""Default values are set correctly."""
poller = NtfyPoller("http://example.com/topic")
assert poller.topic_url == "http://example.com/topic"
assert poller.poll_interval == 15
assert poller.reconnect_delay == 5
assert poller.display_secs == 30
def test_init_custom_values(self):
"""Custom values are set correctly."""
poller = NtfyPoller(
"http://example.com/topic", poll_interval=5, display_secs=60
"http://example.com/topic", reconnect_delay=10, display_secs=60
)
assert poller.poll_interval == 5
assert poller.reconnect_delay == 10
assert poller.display_secs == 60