chore: add Type to test (#35942)

Co-authored-by: autofix-ci[bot] <114827586+autofix-ci[bot]@users.noreply.github.com>
This commit is contained in:
Asuka Minato
2026-05-09 12:16:22 +09:00
committed by GitHub
parent e03eb3a76c
commit 140ad6ba4e
200 changed files with 1497 additions and 1264 deletions

View File

@@ -189,7 +189,7 @@ class TestGetUserTenant:
"""Test get_user_tenant decorator"""
@patch("controllers.inner_api.plugin.wraps.Tenant")
def test_should_inject_tenant_and_user_models(self, mock_tenant_class, app: Flask, monkeypatch):
def test_should_inject_tenant_and_user_models(self, mock_tenant_class, app: Flask, monkeypatch: pytest.MonkeyPatch):
"""Test that decorator injects tenant_model and user_model into kwargs"""
# Arrange
@@ -244,7 +244,9 @@ class TestGetUserTenant:
protected_view()
@patch("controllers.inner_api.plugin.wraps.Tenant")
def test_should_use_default_session_id_when_user_id_empty(self, mock_tenant_class, app: Flask, monkeypatch):
def test_should_use_default_session_id_when_user_id_empty(
self, mock_tenant_class, app: Flask, monkeypatch: pytest.MonkeyPatch
):
"""Test that default session ID is used when user_id is empty string"""
# Arrange