Don't hard-code the tested timeout in the notification tests

It doesn't really make sense to hard-code the timeout value to test against,
but there is a modicum of sense in testing that the attribute in an instance
of a notification matches the default.
This commit is contained in:
Dave Pearson
2024-01-22 08:16:59 +00:00
parent d8c03e482b
commit 129bab0f4a

View File

@@ -22,7 +22,7 @@ def test_default_severity_level() -> None:
def test_default_timeout() -> None:
"""The default timeout should be as expected."""
assert Notification("test").timeout == 3
assert Notification("test").timeout == Notification.timeout
def test_identity_is_unique() -> None: