Skip to content

Commit 02725c8

Browse files
committed
fix(test): remove dead code in test_get_tenant_id_with_tenant
Remove unused MockApp() and AuthContextMiddleware(app) that were immediately overwritten by AuthContextMiddleware(TenantCheckApp()).
1 parent 117f0da commit 02725c8

1 file changed

Lines changed: 0 additions & 3 deletions

File tree

tests/server/auth/middleware/test_auth_context.py

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -142,9 +142,6 @@ def test_get_tenant_id_without_auth_context():
142142
@pytest.mark.anyio
143143
async def test_get_tenant_id_with_tenant(access_token_with_tenant: AccessToken):
144144
"""Test get_tenant_id returns tenant_id when auth context has a tenant."""
145-
app = MockApp()
146-
middleware = AuthContextMiddleware(app)
147-
148145
user = AuthenticatedUser(access_token_with_tenant)
149146
scope: Scope = {"type": "http", "user": user}
150147

0 commit comments

Comments
 (0)