raise attribute error (#2443)

* raise attribute error

* fix compute defaults
This commit is contained in:
Will McGugan
2023-05-01 16:57:40 +01:00
committed by GitHub
parent ba90657559
commit 83b1fcc102
4 changed files with 17 additions and 6 deletions

View File

@@ -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."""