mirror of
https://github.com/Textualize/textual.git
synced 2025-10-17 02:38:12 +03:00
raise attribute error (#2443)
* raise attribute error * fix compute defaults
This commit is contained in:
@@ -356,6 +356,9 @@ async def test_compute():
|
||||
app.start = 10
|
||||
assert app.count_double == 14
|
||||
|
||||
with pytest.raises(AttributeError):
|
||||
app.count_double = 100
|
||||
|
||||
|
||||
async def test_watch_compute():
|
||||
"""Check that watching a computed attribute works."""
|
||||
|
||||
Reference in New Issue
Block a user