diff --git a/tests/schema/test_permission.py b/tests/schema/test_permission.py index aade03ec3f..fe8a23ac07 100644 --- a/tests/schema/test_permission.py +++ b/tests/schema/test_permission.py @@ -76,6 +76,7 @@ async def user(self, info) -> typing.AsyncGenerator[str, None]: query = "subscription { user }" result = await schema.subscribe(query) + assert result.errors[0].message == "You are not authorized"