From 52e522b2e8cfe86aa0cef9f27bba0a39aa6812e7 Mon Sep 17 00:00:00 2001 From: Will McGugan Date: Sun, 19 Feb 2023 22:26:07 +0000 Subject: [PATCH] test --- tests/test_reactive.py | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) diff --git a/tests/test_reactive.py b/tests/test_reactive.py index 2a86bdba2..9c824645e 100644 --- a/tests/test_reactive.py +++ b/tests/test_reactive.py @@ -335,8 +335,12 @@ async def test_compute(): count = var(0) count_double = var(0) + def __init__(self) -> None: + self.start = 0 + super().__init__() + def compute_count_double(self) -> int: - return self.count * 2 + return self.start + self.count * 2 app = ComputeApp() @@ -347,6 +351,8 @@ async def test_compute(): assert app.count_double == 2 app.count = 2 assert app.count_double == 4 + app.start = 10 + assert app.count_double == 14 async def test_watch_compute():