Skip to content

Commit 2581549

Browse files
committed
Fix unit tests
1 parent 9faa30c commit 2581549

File tree

1 file changed

+7
-6
lines changed

1 file changed

+7
-6
lines changed

tests/units/test_state.py

Lines changed: 7 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -2102,7 +2102,8 @@ async def test_state_proxy(
21022102
GrandchildState3.get_full_name(): {
21032103
"computed" + FIELD_MARKER: "",
21042104
},
2105-
}
2105+
},
2106+
final=None,
21062107
)
21072108
assert mcall.kwargs["to"] == grandchild_state.router.session.session_id
21082109

@@ -2273,7 +2274,7 @@ async def test_background_task_no_block(mock_app: rx.App, token: str):
22732274
"other",
22742275
],
22752276
}
2276-
}
2277+
},
22772278
)
22782279

22792280
# Explicit wait for background tasks
@@ -2313,7 +2314,7 @@ async def test_background_task_no_block(mock_app: rx.App, token: str):
23132314
}
23142315
},
23152316
events=[],
2316-
final=True,
2317+
final=None,
23172318
)
23182319
for call in emit_mock.mock_calls[1:5]: # pyright: ignore [reportAttributeAccessIssue]
23192320
assert call.args[1] == StateUpdate(
@@ -2323,7 +2324,7 @@ async def test_background_task_no_block(mock_app: rx.App, token: str):
23232324
}
23242325
},
23252326
events=[],
2326-
final=True,
2327+
final=None,
23272328
)
23282329
assert emit_mock.mock_calls[-2].args[1] == StateUpdate( # pyright: ignore [reportAttributeAccessIssue]
23292330
delta={
@@ -2334,7 +2335,7 @@ async def test_background_task_no_block(mock_app: rx.App, token: str):
23342335
}
23352336
},
23362337
events=[],
2337-
final=True,
2338+
final=None,
23382339
)
23392340
assert emit_mock.mock_calls[-1].args[1] == StateUpdate( # pyright: ignore [reportAttributeAccessIssue]
23402341
delta={
@@ -2343,7 +2344,7 @@ async def test_background_task_no_block(mock_app: rx.App, token: str):
23432344
},
23442345
},
23452346
events=[],
2346-
final=True,
2347+
final=None,
23472348
)
23482349

23492350

0 commit comments

Comments
 (0)