Skip to content

Commit b2308cf

Browse files
tpoliawabbiemery
authored andcommitted
Update tests for scope['type'] access
1 parent 1ea04f6 commit b2308cf

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

tests/unit_tests/service/test_middleware.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -68,7 +68,7 @@ async def test_obs_context_ignores_non_http_or_websockets(app: Mock):
6868
await ocp(scope, Mock(), Mock())
6969

7070
att.assert_not_called()
71-
scope.get.assert_not_called()
71+
scope.get.assert_called_once_with("type")
7272

7373

7474
@pytest.mark.parametrize("protocol", ["http", "websocket"])

0 commit comments

Comments
 (0)