mirror of
https://github.com/Textualize/textual.git
synced 2025-10-17 02:38:12 +03:00
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:
@@ -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:
|
||||
|
||||
Reference in New Issue
Block a user