Skip to content

Commit 434c544

Browse files
committed
test: add scope attribute to mock request in rest dispatcher tests
1 parent d04bf07 commit 434c544

1 file changed

Lines changed: 1 addition & 0 deletions

File tree

tests/server/routes/test_rest_dispatcher.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -101,6 +101,7 @@ def make_mock_request(
101101
# Needs to be able to build ServerCallContext, so provide .user and .auth etc. if needed
102102
mock_req.user = MagicMock(is_authenticated=False)
103103
mock_req.auth = None
104+
mock_req.scope = {}
104105
return mock_req
105106

106107

0 commit comments

Comments
 (0)