ci: fix AttributeError: 'Flask' object has no attribute 'login_manager' FAILED #33891#33896
ci: fix AttributeError: 'Flask' object has no attribute 'login_manager' FAILED #33891#33896crazywoola merged 8 commits intolanggenius:mainfrom
Conversation
There was a problem hiding this comment.
Pull request overview
Copilot reviewed 5 out of 5 changed files in this pull request and generated 3 comments.
💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.
api/tests/unit_tests/controllers/console/auth/test_data_source_bearer_auth.py
Outdated
Show resolved
Hide resolved
api/tests/unit_tests/controllers/console/auth/test_data_source_bearer_auth.py
Outdated
Show resolved
Hide resolved
api/tests/unit_tests/controllers/console/app/test_workflow_draft_variable.py
Outdated
Show resolved
Hide resolved
|
|
The failing tests are caused by an incomplete fix. Adding To fix these tests, you need to configure the mock properly: @pytest.fixture
def app(monkeypatch):
flask_app = Flask(__name__)
flask_app.config["TESTING"] = True
# Configure login_manager mock with proper unauthorized behavior
mock_login_manager = MagicMock()
mock_login_manager.unauthorized.return_value = Response(status=401)
monkeypatch.setattr(flask_app, "login_manager", mock_login_manager, raising=False)
return flask_appAdditionally, ensure To reply, just mention @dosu. How did I do? Good | Irrelevant | Incorrect | Verbose | Hallucination | Report 🐛 | Other |
Pyrefly Diffbase → PR--- /tmp/pyrefly_base.txt 2026-03-23 07:33:59.155132925 +0000
+++ /tmp/pyrefly_pr.txt 2026-03-23 07:33:50.081081105 +0000
@@ -1808,17 +1808,17 @@
ERROR Argument `SimpleNamespace` is not assignable to parameter `workflow` with type `Workflow` in function `controllers.console.app.workflow._parse_file` [bad-argument-type]
--> tests/unit_tests/controllers/console/app/test_workflow.py:44:42
ERROR Object of class `NoneType` has no attribute `status_code` [missing-attribute]
- --> tests/unit_tests/controllers/console/app/test_workflow_draft_variable.py:164:16
+ --> tests/unit_tests/controllers/console/app/test_workflow_draft_variable.py:169:16
ERROR Object of class `NoneType` has no attribute `status_code` [missing-attribute]
- --> tests/unit_tests/controllers/console/app/test_workflow_draft_variable.py:202:16
+ --> tests/unit_tests/controllers/console/app/test_workflow_draft_variable.py:207:16
ERROR `None` is not subscriptable [unsupported-operation]
- --> tests/unit_tests/controllers/console/app/test_workflow_draft_variable.py:211:16
+ --> tests/unit_tests/controllers/console/app/test_workflow_draft_variable.py:216:16
ERROR `None` is not subscriptable [unsupported-operation]
- --> tests/unit_tests/controllers/console/app/test_workflow_draft_variable.py:235:16
+ --> tests/unit_tests/controllers/console/app/test_workflow_draft_variable.py:240:16
ERROR Object of class `NoneType` has no attribute `status_code` [missing-attribute]
- --> tests/unit_tests/controllers/console/app/test_workflow_draft_variable.py:245:16
+ --> tests/unit_tests/controllers/console/app/test_workflow_draft_variable.py:250:16
ERROR Object of class `NoneType` has no attribute `status_code` [missing-attribute]
- --> tests/unit_tests/controllers/console/app/test_workflow_draft_variable.py:263:16
+ --> tests/unit_tests/controllers/console/app/test_workflow_draft_variable.py:268:16
ERROR Type `(dict[str, Any], StartResponse) -> Iterable[bytes]` is not iterable [not-iterable]
--> tests/unit_tests/controllers/console/app/test_workflow_pause_details_api.py:83:9
ERROR Type `AsyncIterable[bytes]` is not iterable [not-iterable]
@@ -1954,169 +1954,169 @@
ERROR Cannot set item in `OrderedDict[str, bool | list[str] | str]` [unsupported-operation]
--> tests/unit_tests/controllers/console/app/workflow_draft_variables_test.py:134:47
ERROR `in` is not supported between `Literal['sources']` and `bytes` [unsupported-operation]
- --> tests/unit_tests/controllers/console/auth/test_data_source_bearer_auth.py:58:16
+ --> tests/unit_tests/controllers/console/auth/test_data_source_bearer_auth.py:64:16
ERROR `in` is not supported between `Literal['sources']` and `(dict[str, Any], StartResponse) -> Iterable[bytes]` [not-iterable]
- --> tests/unit_tests/controllers/console/auth/test_data_source_bearer_auth.py:58:16
+ --> tests/unit_tests/controllers/console/auth/test_data_source_bearer_auth.py:64:16
ERROR `in` is not supported between `Literal['sources']` and `AsyncIterable[bytes]` [not-iterable]
- --> tests/unit_tests/controllers/console/auth/test_data_source_bearer_auth.py:58:16
+ --> tests/unit_tests/controllers/console/auth/test_data_source_bearer_auth.py:64:16
ERROR `in` is not supported between `Literal['sources']` and `AsyncIterable[str]` [not-iterable]
- --> tests/unit_tests/controllers/console/auth/test_data_source_bearer_auth.py:58:16
+ --> tests/unit_tests/controllers/console/auth/test_data_source_bearer_auth.py:64:16
ERROR `in` is not supported between `Literal['sources']` and `Iterator[bytes]` [unsupported-operation]
- --> tests/unit_tests/controllers/console/auth/test_data_source_bearer_auth.py:58:16
+ --> tests/unit_tests/controllers/console/auth/test_data_source_bearer_auth.py:64:16
ERROR `in` is not supported between `Literal['sources']` and `Response` [not-iterable]
- --> tests/unit_tests/controllers/console/auth/test_data_source_bearer_auth.py:58:16
+ --> tests/unit_tests/controllers/console/auth/test_data_source_bearer_auth.py:64:16
ERROR `(dict[str, Any], StartResponse) -> Iterable[bytes]` is not subscriptable [unsupported-operation]
- --> tests/unit_tests/controllers/console/auth/test_data_source_bearer_auth.py:59:20
+ --> tests/unit_tests/controllers/console/auth/test_data_source_bearer_auth.py:65:20
ERROR Cannot index into `AsyncIterable[bytes]` [bad-index]
- --> tests/unit_tests/controllers/console/auth/test_data_source_bearer_auth.py:59:20
+ --> tests/unit_tests/controllers/console/auth/test_data_source_bearer_auth.py:65:20
ERROR Cannot index into `AsyncIterable[str]` [bad-index]
- --> tests/unit_tests/controllers/console/auth/test_data_source_bearer_auth.py:59:20
+ --> tests/unit_tests/controllers/console/auth/test_data_source_bearer_auth.py:65:20
ERROR Cannot index into `Iterator[bytes]` [bad-index]
- --> tests/unit_tests/controllers/console/auth/test_data_source_bearer_auth.py:59:20
+ --> tests/unit_tests/controllers/console/auth/test_data_source_bearer_auth.py:65:20
ERROR Cannot index into `Iterator[str]` [bad-index]
- --> tests/unit_tests/controllers/console/auth/test_data_source_bearer_auth.py:59:20
+ --> tests/unit_tests/controllers/console/auth/test_data_source_bearer_auth.py:65:20
ERROR Cannot index into `Response` [bad-index]
- --> tests/unit_tests/controllers/console/auth/test_data_source_bearer_auth.py:59:20
+ --> tests/unit_tests/controllers/console/auth/test_data_source_bearer_auth.py:65:20
ERROR Cannot index into `bytes` [bad-index]
- --> tests/unit_tests/controllers/console/auth/test_data_source_bearer_auth.py:59:20
+ --> tests/unit_tests/controllers/console/auth/test_data_source_bearer_auth.py:65:20
ERROR Cannot index into `list[Any]` [bad-index]
- --> tests/unit_tests/controllers/console/auth/test_data_source_bearer_auth.py:59:20
+ --> tests/unit_tests/controllers/console/auth/test_data_source_bearer_auth.py:65:20
ERROR Cannot index into `str` [bad-index]
- --> tests/unit_tests/controllers/console/auth/test_data_source_bearer_auth.py:59:20
+ --> tests/unit_tests/controllers/console/auth/test_data_source_bearer_auth.py:65:20
ERROR Cannot index into `tuple[AsyncIterable[bytes] | AsyncIterable[str] | Iterator[bytes] | Iterator[str] | Mapping[str, Any] | Response | bytes | list[Any] | str, Headers | Mapping[str, list[str] | str | tuple[str, ...]] | Sequence[tuple[str, list[str] | str | tuple[str, ...]]]]` [bad-index]
- --> tests/unit_tests/controllers/console/auth/test_data_source_bearer_auth.py:59:20
+ --> tests/unit_tests/controllers/console/auth/test_data_source_bearer_auth.py:65:20
ERROR Cannot index into `tuple[AsyncIterable[bytes] | AsyncIterable[str] | Iterator[bytes] | Iterator[str] | Mapping[str, Any] | Response | bytes | list[Any] | str, int]` [bad-index]
- --> tests/unit_tests/controllers/console/auth/test_data_source_bearer_auth.py:59:20
+ --> tests/unit_tests/controllers/console/auth/test_data_source_bearer_auth.py:65:20
ERROR Cannot index into `tuple[AsyncIterable[bytes] | AsyncIterable[str] | Iterator[bytes] | Iterator[str] | Mapping[str, Any] | Response | bytes | list[Any] | str, int, Headers | Mapping[str, list[str] | str | tuple[str, ...]] | Sequence[tuple[str, list[str] | str | tuple[str, ...]]]]` [bad-index]
- --> tests/unit_tests/controllers/console/auth/test_data_source_bearer_auth.py:59:20
+ --> tests/unit_tests/controllers/console/auth/test_data_source_bearer_auth.py:65:20
ERROR `in` is not supported between `Literal['sources']` and `bytes` [unsupported-operation]
- --> tests/unit_tests/controllers/console/auth/test_data_source_bearer_auth.py:90:16
+ --> tests/unit_tests/controllers/console/auth/test_data_source_bearer_auth.py:97:16
ERROR `in` is not supported between `Literal['sources']` and `(dict[str, Any], StartResponse) -> Iterable[bytes]` [not-iterable]
- --> tests/unit_tests/controllers/console/auth/test_data_source_bearer_auth.py:90:16
+ --> tests/unit_tests/controllers/console/auth/test_data_source_bearer_auth.py:97:16
ERROR `in` is not supported between `Literal['sources']` and `AsyncIterable[bytes]` [not-iterable]
- --> tests/unit_tests/controllers/console/auth/test_data_source_bearer_auth.py:90:16
+ --> tests/unit_tests/controllers/console/auth/test_data_source_bearer_auth.py:97:16
ERROR `in` is not supported between `Literal['sources']` and `AsyncIterable[str]` [not-iterable]
- --> tests/unit_tests/controllers/console/auth/test_data_source_bearer_auth.py:90:16
+ --> tests/unit_tests/controllers/console/auth/test_data_source_bearer_auth.py:97:16
ERROR `in` is not supported between `Literal['sources']` and `Iterator[bytes]` [unsupported-operation]
- --> tests/unit_tests/controllers/console/auth/test_data_source_bearer_auth.py:90:16
+ --> tests/unit_tests/controllers/console/auth/test_data_source_bearer_auth.py:97:16
ERROR `in` is not supported between `Literal['sources']` and `Response` [not-iterable]
- --> tests/unit_tests/controllers/console/auth/test_data_source_bearer_auth.py:90:16
+ --> tests/unit_tests/controllers/console/auth/test_data_source_bearer_auth.py:97:16
ERROR `(dict[str, Any], StartResponse) -> Iterable[bytes]` is not subscriptable [unsupported-operation]
- --> tests/unit_tests/controllers/console/auth/test_data_source_bearer_auth.py:91:20
+ --> tests/unit_tests/controllers/console/auth/test_data_source_bearer_auth.py:98:20
ERROR Cannot index into `AsyncIterable[bytes]` [bad-index]
- --> tests/unit_tests/controllers/console/auth/test_data_source_bearer_auth.py:91:20
+ --> tests/unit_tests/controllers/console/auth/test_data_source_bearer_auth.py:98:20
ERROR Cannot index into `AsyncIterable[str]` [bad-index]
- --> tests/unit_tests/controllers/console/auth/test_data_source_bearer_auth.py:91:20
+ --> tests/unit_tests/controllers/console/auth/test_data_source_bearer_auth.py:98:20
ERROR Cannot index into `Iterator[bytes]` [bad-index]
- --> tests/unit_tests/controllers/console/auth/test_data_source_bearer_auth.py:91:20
+ --> tests/unit_tests/controllers/console/auth/test_data_source_bearer_auth.py:98:20
ERROR Cannot index into `Iterator[str]` [bad-index]
- --> tests/unit_tests/controllers/console/auth/test_data_source_bearer_auth.py:91:20
+ --> tests/unit_tests/controllers/console/auth/test_data_source_bearer_auth.py:98:20
ERROR Cannot index into `Response` [bad-index]
- --> tests/unit_tests/controllers/console/auth/test_data_source_bearer_auth.py:91:20
+ --> tests/unit_tests/controllers/console/auth/test_data_source_bearer_auth.py:98:20
ERROR Cannot index into `bytes` [bad-index]
- --> tests/unit_tests/controllers/console/auth/test_data_source_bearer_auth.py:91:20
+ --> tests/unit_tests/controllers/console/auth/test_data_source_bearer_auth.py:98:20
ERROR Cannot index into `list[Any]` [bad-index]
- --> tests/unit_tests/controllers/console/auth/test_data_source_bearer_auth.py:91:20
+ --> tests/unit_tests/controllers/console/auth/test_data_source_bearer_auth.py:98:20
ERROR Cannot index into `str` [bad-index]
- --> tests/unit_tests/controllers/console/auth/test_data_source_bearer_auth.py:91:20
+ --> tests/unit_tests/controllers/console/auth/test_data_source_bearer_auth.py:98:20
ERROR Cannot index into `tuple[AsyncIterable[bytes] | AsyncIterable[str] | Iterator[bytes] | Iterator[str] | Mapping[str, Any] | Response | bytes | list[Any] | str, Headers | Mapping[str, list[str] | str | tuple[str, ...]] | Sequence[tuple[str, list[str] | str | tuple[str, ...]]]]` [bad-index]
- --> tests/unit_tests/controllers/console/auth/test_data_source_bearer_auth.py:91:20
+ --> tests/unit_tests/controllers/console/auth/test_data_source_bearer_auth.py:98:20
ERROR Cannot index into `tuple[AsyncIterable[bytes] | AsyncIterable[str] | Iterator[bytes] | Iterator[str] | Mapping[str, Any] | Response | bytes | list[Any] | str, int]` [bad-index]
- --> tests/unit_tests/controllers/console/auth/test_data_source_bearer_auth.py:91:20
+ --> tests/unit_tests/controllers/console/auth/test_data_source_bearer_auth.py:98:20
ERROR Cannot index into `tuple[AsyncIterable[bytes] | AsyncIterable[str] | Iterator[bytes] | Iterator[str] | Mapping[str, Any] | Response | bytes | list[Any] | str, int, Headers | Mapping[str, list[str] | str | tuple[str, ...]] | Sequence[tuple[str, list[str] | str | tuple[str, ...]]]]` [bad-index]
- --> tests/unit_tests/controllers/console/auth/test_data_source_bearer_auth.py:91:20
+ --> tests/unit_tests/controllers/console/auth/test_data_source_bearer_auth.py:98:20
ERROR `(dict[str, Any], StartResponse) -> Iterable[bytes]` is not subscriptable [unsupported-operation]
- --> tests/unit_tests/controllers/console/auth/test_data_source_bearer_auth.py:133:16
+ --> tests/unit_tests/controllers/console/auth/test_data_source_bearer_auth.py:142:16
ERROR Cannot index into `AsyncIterable[bytes]` [bad-index]
- --> tests/unit_tests/controllers/console/auth/test_data_source_bearer_auth.py:133:16
+ --> tests/unit_tests/controllers/console/auth/test_data_source_bearer_auth.py:142:16
ERROR Cannot index into `AsyncIterable[str]` [bad-index]
- --> tests/unit_tests/controllers/console/auth/test_data_source_bearer_auth.py:133:16
+ --> tests/unit_tests/controllers/console/auth/test_data_source_bearer_auth.py:142:16
ERROR Cannot index into `Iterator[bytes]` [bad-index]
- --> tests/unit_tests/controllers/console/auth/test_data_source_bearer_auth.py:133:16
+ --> tests/unit_tests/controllers/console/auth/test_data_source_bearer_auth.py:142:16
ERROR Cannot index into `Iterator[str]` [bad-index]
- --> tests/unit_tests/controllers/console/auth/test_data_source_bearer_auth.py:133:16
+ --> tests/unit_tests/controllers/console/auth/test_data_source_bearer_auth.py:142:16
ERROR Cannot index into `Response` [bad-index]
- --> tests/unit_tests/controllers/console/auth/test_data_source_bearer_auth.py:133:16
+ --> tests/unit_tests/controllers/console/auth/test_data_source_bearer_auth.py:142:16
ERROR Cannot index into `AsyncIterable[bytes]` [bad-index]
- --> tests/unit_tests/controllers/console/auth/test_data_source_bearer_auth.py:133:16
+ --> tests/unit_tests/controllers/console/auth/test_data_source_bearer_auth.py:142:16
ERROR Cannot index into `AsyncIterable[str]` [bad-index]
- --> tests/unit_tests/controllers/console/auth/test_data_source_bearer_auth.py:133:16
+ --> tests/unit_tests/controllers/console/auth/test_data_source_bearer_auth.py:142:16
ERROR Cannot index into `Iterator[bytes]` [bad-index]
- --> tests/unit_tests/controllers/console/auth/test_data_source_bearer_auth.py:133:16
+ --> tests/unit_tests/controllers/console/auth/test_data_source_bearer_auth.py:142:16
ERROR Cannot index into `Iterator[str]` [bad-index]
- --> tests/unit_tests/controllers/console/auth/test_data_source_bearer_auth.py:133:16
+ --> tests/unit_tests/controllers/console/auth/test_data_source_bearer_auth.py:142:16
ERROR Cannot index into `Response` [bad-index]
- --> tests/unit_tests/controllers/console/auth/test_data_source_bearer_auth.py:133:16
+ --> tests/unit_tests/controllers/console/auth/test_data_source_bearer_auth.py:142:16
ERROR Cannot index into `bytes` [bad-index]
- --> tests/unit_tests/controllers/console/auth/test_data_source_bearer_auth.py:133:16
+ --> tests/unit_tests/controllers/console/auth/test_data_source_bearer_auth.py:142:16
ERROR Cannot index into `int` [bad-index]
- --> tests/unit_tests/controllers/console/auth/test_data_source_bearer_auth.py:133:16
+ --> tests/unit_tests/controllers/console/auth/test_data_source_bearer_auth.py:142:16
ERROR Cannot index into `list[Any]` [bad-index]
- --> tests/unit_tests/controllers/console/auth/test_data_source_bearer_auth.py:133:16
+ --> tests/unit_tests/controllers/console/auth/test_data_source_bearer_auth.py:142:16
ERROR Cannot index into `str` [bad-index]
- --> tests/unit_tests/controllers/console/auth/test_data_source_bearer_auth.py:133:16
+ --> tests/unit_tests/controllers/console/auth/test_data_source_bearer_auth.py:142:16
ERROR Cannot index into `Mapping[str, Any]` [bad-index]
- --> tests/unit_tests/controllers/console/auth/test_data_source_bearer_auth.py:133:25
+ --> tests/unit_tests/controllers/console/auth/test_data_source_bearer_auth.py:142:25
ERROR `(dict[str, Any], StartResponse) -> Iterable[bytes]` is not subscriptable [unsupported-operation]
- --> tests/unit_tests/controllers/console/auth/test_data_source_bearer_auth.py:134:16
+ --> tests/unit_tests/controllers/console/auth/test_data_source_bearer_auth.py:143:16
ERROR Cannot index into `AsyncIterable[bytes]` [bad-index]
- --> tests/unit_tests/controllers/console/auth/test_data_source_bearer_auth.py:134:16
+ --> tests/unit_tests/controllers/console/auth/test_data_source_bearer_auth.py:143:16
ERROR Cannot index into `AsyncIterable[str]` [bad-index]
- --> tests/unit_tests/controllers/console/auth/test_data_source_bearer_auth.py:134:16
+ --> tests/unit_tests/controllers/console/auth/test_data_source_bearer_auth.py:143:16
ERROR Cannot index into `Iterator[bytes]` [bad-index]
- --> tests/unit_tests/controllers/console/auth/test_data_source_bearer_auth.py:134:16
+ --> tests/unit_tests/controllers/console/auth/test_data_source_bearer_auth.py:143:16
ERROR Cannot index into `Iterator[str]` [bad-index]
- --> tests/unit_tests/controllers/console/auth/test_data_source_bearer_auth.py:134:16
+ --> tests/unit_tests/controllers/console/auth/test_data_source_bearer_auth.py:143:16
ERROR Cannot index into `Response` [bad-index]
- --> tests/unit_tests/controllers/console/auth/test_data_source_bearer_auth.py:134:16
+ --> tests/unit_tests/controllers/console/auth/test_data_source_bearer_auth.py:143:16
ERROR Cannot index into `Mapping[str, Any]` [bad-index]
- --> tests/unit_tests/controllers/console/auth/test_data_source_bearer_auth.py:134:25
+ --> tests/unit_tests/controllers/console/auth/test_data_source_bearer_auth.py:143:25
ERROR `(dict[str, Any], StartResponse) -> Iterable[bytes]` is not subscriptable [unsupported-operation]
- --> tests/unit_tests/controllers/console/auth/test_data_source_bearer_auth.py:207:16
+ --> tests/unit_tests/controllers/console/auth/test_data_source_bearer_auth.py:222:16
ERROR Cannot index into `AsyncIterable[bytes]` [bad-index]
- --> tests/unit_tests/controllers/console/auth/test_data_source_bearer_auth.py:207:16
+ --> tests/unit_tests/controllers/console/auth/test_data_source_bearer_auth.py:222:16
ERROR Cannot index into `AsyncIterable[str]` [bad-index]
- --> tests/unit_tests/controllers/console/auth/test_data_source_bearer_auth.py:207:16
+ --> tests/unit_tests/controllers/console/auth/test_data_source_bearer_auth.py:222:16
ERROR Cannot index into `Iterator[bytes]` [bad-index]
- --> tests/unit_tests/controllers/console/auth/test_data_source_bearer_auth.py:207:16
+ --> tests/unit_tests/controllers/console/auth/test_data_source_bearer_auth.py:222:16
ERROR Cannot index into `Iterator[str]` [bad-index]
- --> tests/unit_tests/controllers/console/auth/test_data_source_bearer_auth.py:207:16
+ --> tests/unit_tests/controllers/console/auth/test_data_source_bearer_auth.py:222:16
ERROR Cannot index into `Response` [bad-index]
- --> tests/unit_tests/controllers/console/auth/test_data_source_bearer_auth.py:207:16
+ --> tests/unit_tests/controllers/console/auth/test_data_source_bearer_auth.py:222:16
ERROR Cannot index into `AsyncIterable[bytes]` [bad-index]
- --> tests/unit_tests/controllers/console/auth/test_data_source_bearer_auth.py:207:16
+ --> tests/unit_tests/controllers/console/auth/test_data_source_bearer_auth.py:222:16
ERROR Cannot index into `AsyncIterable[str]` [bad-index]
- --> tests/unit_tests/controllers/console/auth/test_data_source_bearer_auth.py:207:16
+ --> tests/unit_tests/controllers/console/auth/test_data_source_bearer_auth.py:222:16
ERROR Cannot index into `Iterator[bytes]` [bad-index]
- --> tests/unit_tests/controllers/console/auth/test_data_source_bearer_auth.py:207:16
+ --> tests/unit_tests/controllers/console/auth/test_data_source_bearer_auth.py:222:16
ERROR Cannot index into `Iterator[str]` [bad-index]
- --> tests/unit_tests/controllers/console/auth/test_data_source_bearer_auth.py:207:16
+ --> tests/unit_tests/controllers/console/auth/test_data_source_bearer_auth.py:222:16
ERROR Cannot index into `Response` [bad-index]
- --> tests/unit_tests/controllers/console/auth/test_data_source_bearer_auth.py:207:16
+ --> tests/unit_tests/controllers/console/auth/test_data_source_bearer_auth.py:222:16
ERROR Cannot index into `bytes` [bad-index]
- --> tests/unit_tests/controllers/console/auth/test_data_source_bearer_auth.py:207:16
+ --> tests/unit_tests/controllers/console/auth/test_data_source_bearer_auth.py:222:16
ERROR Cannot index into `int` [bad-index]
- --> tests/unit_tests/controllers/console/auth/test_data_source_bearer_auth.py:207:16
+ --> tests/unit_tests/controllers/console/auth/test_data_source_bearer_auth.py:222:16
ERROR Cannot index into `list[Any]` [bad-index]
- --> tests/unit_tests/controllers/console/auth/test_data_source_bearer_auth.py:207:16
+ --> tests/unit_tests/controllers/console/auth/test_data_source_bearer_auth.py:222:16
ERROR Cannot index into `str` [bad-index]
- --> tests/unit_tests/controllers/console/auth/test_data_source_bearer_auth.py:207:16
+ --> tests/unit_tests/controllers/console/auth/test_data_source_bearer_auth.py:222:16
ERROR Cannot index into `Mapping[str, Any]` [bad-index]
- --> tests/unit_tests/controllers/console/auth/test_data_source_bearer_auth.py:207:25
+ --> tests/unit_tests/controllers/console/auth/test_data_source_bearer_auth.py:222:25
ERROR `(dict[str, Any], StartResponse) -> Iterable[bytes]` is not subscriptable [unsupported-operation]
- --> tests/unit_tests/controllers/console/auth/test_data_source_bearer_auth.py:208:16
+ --> tests/unit_tests/controllers/console/auth/test_data_source_bearer_auth.py:223:16
ERROR Cannot index into `AsyncIterable[bytes]` [bad-index]
- --> tests/unit_tests/controllers/console/auth/test_data_source_bearer_auth.py:208:16
+ --> tests/unit_tests/controllers/console/auth/test_data_source_bearer_auth.py:223:16
ERROR Cannot index into `AsyncIterable[str]` [bad-index]
- --> tests/unit_tests/controllers/console/auth/test_data_source_bearer_auth.py:208:16
+ --> tests/unit_tests/controllers/console/auth/test_data_source_bearer_auth.py:223:16
ERROR Cannot index into `Iterator[bytes]` [bad-index]
- --> tests/unit_tests/controllers/console/auth/test_data_source_bearer_auth.py:208:16
+ --> tests/unit_tests/controllers/console/auth/test_data_source_bearer_auth.py:223:16
ERROR Cannot index into `Iterator[str]` [bad-index]
- --> tests/unit_tests/controllers/console/auth/test_data_source_bearer_auth.py:208:16
+ --> tests/unit_tests/controllers/console/auth/test_data_source_bearer_auth.py:223:16
ERROR Cannot index into `Response` [bad-index]
- --> tests/unit_tests/controllers/console/auth/test_data_source_bearer_auth.py:208:16
+ --> tests/unit_tests/controllers/console/auth/test_data_source_bearer_auth.py:223:16
ERROR Cannot index into `Mapping[str, Any]` [bad-index]
- --> tests/unit_tests/controllers/console/auth/test_data_source_bearer_auth.py:208:25
+ --> tests/unit_tests/controllers/console/auth/test_data_source_bearer_auth.py:223:25
ERROR `None` is not subscriptable [unsupported-operation]
--> tests/unit_tests/controllers/console/auth/test_login_logout.py:467:16
ERROR `None` is not subscriptable [unsupported-operation]
@@ -2126,45 +2126,45 @@
ERROR Object of class `RequestError` has no attribute `response` [missing-attribute]
--> tests/unit_tests/controllers/console/auth/test_oauth.py:207:9
ERROR `(dict[str, Any], StartResponse) -> Iterable[bytes]` is not subscriptable [unsupported-operation]
- --> tests/unit_tests/controllers/console/auth/test_oauth_server.py:124:16
+ --> tests/unit_tests/controllers/console/auth/test_oauth_server.py:126:16
ERROR Cannot index into `AsyncIterable[bytes]` [bad-index]
- --> tests/unit_tests/controllers/console/auth/test_oauth_server.py:124:16
+ --> tests/unit_tests/controllers/console/auth/test_oauth_server.py:126:16
ERROR Cannot index into `AsyncIterable[str]` [bad-index]
- --> tests/unit_tests/controllers/console/auth/test_oauth_server.py:124:16
+ --> tests/unit_tests/controllers/console/auth/test_oauth_server.py:126:16
ERROR Cannot index into `Iterator[bytes]` [bad-index]
- --> tests/unit_tests/controllers/console/auth/test_oauth_server.py:124:16
+ --> tests/unit_tests/controllers/console/auth/test_oauth_server.py:126:16
ERROR Cannot index into `Iterator[str]` [bad-index]
- --> tests/unit_tests/controllers/console/auth/test_oauth_server.py:124:16
+ --> tests/unit_tests/controllers/console/auth/test_oauth_server.py:126:16
ERROR Cannot index into `Response` [bad-index]
- --> tests/unit_tests/controllers/console/auth/test_oauth_server.py:124:16
+ --> tests/unit_tests/controllers/console/auth/test_oauth_server.py:126:16
ERROR Cannot index into `bytes` [bad-index]
- --> tests/unit_tests/controllers/console/auth/test_oauth_server.py:124:16
+ --> tests/unit_tests/controllers/console/auth/test_oauth_server.py:126:16
ERROR Cannot index into `list[Any]` [bad-index]
- --> tests/unit_tests/controllers/console/auth/test_oauth_server.py:124:16
+ --> tests/unit_tests/controllers/console/auth/test_oauth_server.py:126:16
ERROR Cannot index into `str` [bad-index]
- --> tests/unit_tests/controllers/console/auth/test_oauth_server.py:124:16
+ --> tests/unit_tests/controllers/console/auth/test_oauth_server.py:126:16
ERROR Cannot index into `tuple[AsyncIterable[bytes] | AsyncIterable[str] | Iterator[bytes] | Iterator[str] | Mapping[str, Any] | Response | bytes | list[Any] | str, Headers | Mapping[str, list[str] | str | tuple[str, ...]] | Sequence[tuple[str, list[str] | str | tuple[str, ...]]]]` [bad-index]
- --> tests/unit_tests/controllers/console/auth/test_oauth_server.py:124:16
+ --> tests/unit_tests/controllers/console/auth/test_oauth_server.py:126:16
ERROR Cannot index into `tuple[AsyncIterable[bytes] | AsyncIterable[str] | Iterator[bytes] | Iterator[str] | Mapping[str, Any] | Response | bytes | list[Any] | str, int]` [bad-index]
- --> tests/unit_tests/controllers/console/auth/test_oauth_server.py:124:16
+ --> tests/unit_tests/controllers/console/auth/test_oauth_server.py:126:16
ERROR Cannot index into `tuple[AsyncIterable[bytes] | AsyncIterable[str] | Iterator[bytes] | Iterator[str] | Mapping[str, Any] | Response | bytes | list[Any] | str, int, Headers | Mapping[str, list[str] | str | tuple[str, ...]] | Sequence[tuple[str, list[str] | str | tuple[str, ...]]]]` [bad-index]
- --> tests/unit_tests/controllers/console/auth/test_oauth_server.py:124:16
+ --> tests/unit_tests/controllers/console/auth/test_oauth_server.py:126:16
ERROR Cannot index into `Response` [bad-index]
- --> tests/unit_tests/controllers/console/auth/test_oauth_server.py:328:16
+ --> tests/unit_tests/controllers/console/auth/test_oauth_server.py:330:16
ERROR Cannot index into `Response` [bad-index]
- --> tests/unit_tests/controllers/console/auth/test_oauth_server.py:329:16
+ --> tests/unit_tests/controllers/console/auth/test_oauth_server.py:331:16
ERROR Cannot index into `Response` [bad-index]
- --> tests/unit_tests/controllers/console/auth/test_oauth_server.py:330:16
+ --> tests/unit_tests/controllers/console/auth/test_oauth_server.py:332:16
ERROR `None` is not subscriptable [unsupported-operation]
- --> tests/unit_tests/controllers/console/auth/test_oauth_server.py:343:16
+ --> tests/unit_tests/controllers/console/auth/test_oauth_server.py:345:16
ERROR `None` is not subscriptable [unsupported-operation]
- --> tests/unit_tests/controllers/console/auth/test_oauth_server.py:361:16
+ --> tests/unit_tests/controllers/console/auth/test_oauth_server.py:363:16
ERROR `None` is not subscriptable [unsupported-operation]
- --> tests/unit_tests/controllers/console/auth/test_oauth_server.py:379:16
+ --> tests/unit_tests/controllers/console/auth/test_oauth_server.py:381:16
ERROR `None` is not subscriptable [unsupported-operation]
- --> tests/unit_tests/controllers/console/auth/test_oauth_server.py:397:16
+ --> tests/unit_tests/controllers/console/auth/test_oauth_server.py:399:16
ERROR `None` is not subscriptable [unsupported-operation]
- --> tests/unit_tests/controllers/console/auth/test_oauth_server.py:417:16
+ --> tests/unit_tests/controllers/console/auth/test_oauth_server.py:419:16
ERROR Object of class `tuple` has no attribute `json` [missing-attribute]
--> tests/unit_tests/controllers/console/auth/test_token_refresh.py:74:16
ERROR Type `Response` is not iterable [not-iterable]
|
Pyrefly Diffbase → PR--- /tmp/pyrefly_base.txt 2026-03-23 11:03:46.996779726 +0000
+++ /tmp/pyrefly_pr.txt 2026-03-23 11:03:37.905775613 +0000
@@ -794,6 +794,8 @@
ERROR Argument `Literal['normal']` is not assignable to parameter `status` with type `SQLCoreOperations[TenantStatus] | TenantStatus` in function `models.account.Tenant.__init__` [bad-argument-type]
--> tests/test_containers_integration_tests/controllers/console/app/test_chat_conversation_status_count_api.py:33:48
ERROR Argument `Literal['normal']` is not assignable to parameter `status` with type `SQLCoreOperations[TenantStatus] | TenantStatus` in function `models.account.Tenant.__init__` [bad-argument-type]
+ --> tests/test_containers_integration_tests/controllers/console/helpers.py:40:48
+ERROR Argument `Literal['normal']` is not assignable to parameter `status` with type `SQLCoreOperations[TenantStatus] | TenantStatus` in function `models.account.Tenant.__init__` [bad-argument-type]
--> tests/test_containers_integration_tests/core/app/layers/test_pause_state_persist_layer.py:97:20
ERROR Argument `Literal['active']` is not assignable to parameter `status` with type `AccountStatus | SQLCoreOperations[AccountStatus]` in function `models.account.Account.__init__` [bad-argument-type]
--> tests/test_containers_integration_tests/core/app/layers/test_pause_state_persist_layer.py:106:20
@@ -1808,17 +1810,9 @@
ERROR Argument `SimpleNamespace` is not assignable to parameter `workflow` with type `Workflow` in function `controllers.console.app.workflow._parse_file` [bad-argument-type]
--> tests/unit_tests/controllers/console/app/test_workflow.py:44:42
ERROR Object of class `NoneType` has no attribute `status_code` [missing-attribute]
- --> tests/unit_tests/controllers/console/app/test_workflow_draft_variable.py:164:16
-ERROR Object of class `NoneType` has no attribute `status_code` [missing-attribute]
- --> tests/unit_tests/controllers/console/app/test_workflow_draft_variable.py:202:16
-ERROR `None` is not subscriptable [unsupported-operation]
- --> tests/unit_tests/controllers/console/app/test_workflow_draft_variable.py:211:16
-ERROR `None` is not subscriptable [unsupported-operation]
- --> tests/unit_tests/controllers/console/app/test_workflow_draft_variable.py:235:16
-ERROR Object of class `NoneType` has no attribute `status_code` [missing-attribute]
- --> tests/unit_tests/controllers/console/app/test_workflow_draft_variable.py:245:16
+ --> tests/unit_tests/controllers/console/app/test_workflow_draft_variable.py:163:16
ERROR Object of class `NoneType` has no attribute `status_code` [missing-attribute]
- --> tests/unit_tests/controllers/console/app/test_workflow_draft_variable.py:263:16
+ --> tests/unit_tests/controllers/console/app/test_workflow_draft_variable.py:201:16
ERROR Type `(dict[str, Any], StartResponse) -> Iterable[bytes]` is not iterable [not-iterable]
--> tests/unit_tests/controllers/console/app/test_workflow_pause_details_api.py:83:9
ERROR Type `AsyncIterable[bytes]` is not iterable [not-iterable]
|
Pyrefly Diffbase → PR--- /tmp/pyrefly_base.txt 2026-03-23 11:05:36.138100564 +0000
+++ /tmp/pyrefly_pr.txt 2026-03-23 11:05:27.411169225 +0000
@@ -794,6 +794,8 @@
ERROR Argument `Literal['normal']` is not assignable to parameter `status` with type `SQLCoreOperations[TenantStatus] | TenantStatus` in function `models.account.Tenant.__init__` [bad-argument-type]
--> tests/test_containers_integration_tests/controllers/console/app/test_chat_conversation_status_count_api.py:33:48
ERROR Argument `Literal['normal']` is not assignable to parameter `status` with type `SQLCoreOperations[TenantStatus] | TenantStatus` in function `models.account.Tenant.__init__` [bad-argument-type]
+ --> tests/test_containers_integration_tests/controllers/console/helpers.py:40:48
+ERROR Argument `Literal['normal']` is not assignable to parameter `status` with type `SQLCoreOperations[TenantStatus] | TenantStatus` in function `models.account.Tenant.__init__` [bad-argument-type]
--> tests/test_containers_integration_tests/core/app/layers/test_pause_state_persist_layer.py:97:20
ERROR Argument `Literal['active']` is not assignable to parameter `status` with type `AccountStatus | SQLCoreOperations[AccountStatus]` in function `models.account.Account.__init__` [bad-argument-type]
--> tests/test_containers_integration_tests/core/app/layers/test_pause_state_persist_layer.py:106:20
@@ -1808,17 +1810,9 @@
ERROR Argument `SimpleNamespace` is not assignable to parameter `workflow` with type `Workflow` in function `controllers.console.app.workflow._parse_file` [bad-argument-type]
--> tests/unit_tests/controllers/console/app/test_workflow.py:44:42
ERROR Object of class `NoneType` has no attribute `status_code` [missing-attribute]
- --> tests/unit_tests/controllers/console/app/test_workflow_draft_variable.py:164:16
-ERROR Object of class `NoneType` has no attribute `status_code` [missing-attribute]
- --> tests/unit_tests/controllers/console/app/test_workflow_draft_variable.py:202:16
-ERROR `None` is not subscriptable [unsupported-operation]
- --> tests/unit_tests/controllers/console/app/test_workflow_draft_variable.py:211:16
-ERROR `None` is not subscriptable [unsupported-operation]
- --> tests/unit_tests/controllers/console/app/test_workflow_draft_variable.py:235:16
-ERROR Object of class `NoneType` has no attribute `status_code` [missing-attribute]
- --> tests/unit_tests/controllers/console/app/test_workflow_draft_variable.py:245:16
+ --> tests/unit_tests/controllers/console/app/test_workflow_draft_variable.py:163:16
ERROR Object of class `NoneType` has no attribute `status_code` [missing-attribute]
- --> tests/unit_tests/controllers/console/app/test_workflow_draft_variable.py:263:16
+ --> tests/unit_tests/controllers/console/app/test_workflow_draft_variable.py:201:16
ERROR Type `(dict[str, Any], StartResponse) -> Iterable[bytes]` is not iterable [not-iterable]
--> tests/unit_tests/controllers/console/app/test_workflow_pause_details_api.py:83:9
ERROR Type `AsyncIterable[bytes]` is not iterable [not-iterable]
|
There was a problem hiding this comment.
Pull request overview
Copilot reviewed 7 out of 7 changed files in this pull request and generated 6 comments.
💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.
api/tests/test_containers_integration_tests/controllers/console/helpers.py
Show resolved
Hide resolved
api/tests/test_containers_integration_tests/controllers/console/helpers.py
Show resolved
Hide resolved
api/tests/test_containers_integration_tests/controllers/console/helpers.py
Show resolved
Hide resolved
api/tests/test_containers_integration_tests/controllers/console/helpers.py
Show resolved
Hide resolved
api/tests/test_containers_integration_tests/controllers/console/auth/test_data_source_oauth.py
Show resolved
Hide resolved
api/tests/test_containers_integration_tests/controllers/console/auth/test_data_source_oauth.py
Show resolved
Hide resolved
|
/gemini review |
There was a problem hiding this comment.
Code Review
This pull request addresses a CI failure by migrating several unit tests to more robust integration tests. This is an excellent change that improves test reliability. The new tests are well-structured and comprehensive. I've included one suggestion to refactor a test helper function for better efficiency and adherence to database transaction best practices.
api/tests/test_containers_integration_tests/controllers/console/helpers.py
Show resolved
Hide resolved
Pyrefly Diffbase → PR--- /tmp/pyrefly_base.txt 2026-03-23 11:33:44.743209184 +0000
+++ /tmp/pyrefly_pr.txt 2026-03-23 11:33:35.440128238 +0000
@@ -793,6 +793,10 @@
--> tests/test_containers_integration_tests/conftest.py:198:39
ERROR Argument `Literal['normal']` is not assignable to parameter `status` with type `SQLCoreOperations[TenantStatus] | TenantStatus` in function `models.account.Tenant.__init__` [bad-argument-type]
--> tests/test_containers_integration_tests/controllers/console/app/test_chat_conversation_status_count_api.py:33:48
+ERROR Argument `Literal['active']` is not assignable to parameter `status` with type `AccountStatus | SQLCoreOperations[AccountStatus]` in function `models.account.Account.__init__` [bad-argument-type]
+ --> tests/test_containers_integration_tests/controllers/console/auth/test_oauth_server.py:272:16
+ERROR Argument `Literal['normal']` is not assignable to parameter `status` with type `SQLCoreOperations[TenantStatus] | TenantStatus` in function `models.account.Tenant.__init__` [bad-argument-type]
+ --> tests/test_containers_integration_tests/controllers/console/helpers.py:40:48
ERROR Argument `Literal['normal']` is not assignable to parameter `status` with type `SQLCoreOperations[TenantStatus] | TenantStatus` in function `models.account.Tenant.__init__` [bad-argument-type]
--> tests/test_containers_integration_tests/core/app/layers/test_pause_state_persist_layer.py:97:20
ERROR Argument `Literal['active']` is not assignable to parameter `status` with type `AccountStatus | SQLCoreOperations[AccountStatus]` in function `models.account.Account.__init__` [bad-argument-type]
@@ -1807,18 +1811,6 @@
--> tests/unit_tests/controllers/console/app/test_workflow.py:26:40
ERROR Argument `SimpleNamespace` is not assignable to parameter `workflow` with type `Workflow` in function `controllers.console.app.workflow._parse_file` [bad-argument-type]
--> tests/unit_tests/controllers/console/app/test_workflow.py:44:42
-ERROR Object of class `NoneType` has no attribute `status_code` [missing-attribute]
- --> tests/unit_tests/controllers/console/app/test_workflow_draft_variable.py:164:16
-ERROR Object of class `NoneType` has no attribute `status_code` [missing-attribute]
- --> tests/unit_tests/controllers/console/app/test_workflow_draft_variable.py:202:16
-ERROR `None` is not subscriptable [unsupported-operation]
- --> tests/unit_tests/controllers/console/app/test_workflow_draft_variable.py:211:16
-ERROR `None` is not subscriptable [unsupported-operation]
- --> tests/unit_tests/controllers/console/app/test_workflow_draft_variable.py:235:16
-ERROR Object of class `NoneType` has no attribute `status_code` [missing-attribute]
- --> tests/unit_tests/controllers/console/app/test_workflow_draft_variable.py:245:16
-ERROR Object of class `NoneType` has no attribute `status_code` [missing-attribute]
- --> tests/unit_tests/controllers/console/app/test_workflow_draft_variable.py:263:16
ERROR Type `(dict[str, Any], StartResponse) -> Iterable[bytes]` is not iterable [not-iterable]
--> tests/unit_tests/controllers/console/app/test_workflow_pause_details_api.py:83:9
ERROR Type `AsyncIterable[bytes]` is not iterable [not-iterable]
@@ -1953,170 +1945,6 @@
--> tests/unit_tests/controllers/console/app/test_wraps.py:47:16
ERROR Cannot set item in `OrderedDict[str, bool | list[str] | str]` [unsupported-operation]
--> tests/unit_tests/controllers/console/app/workflow_draft_variables_test.py:134:47
-ERROR `in` is not supported between `Literal['sources']` and `bytes` [unsupported-operation]
- --> tests/unit_tests/controllers/console/auth/test_data_source_bearer_auth.py:58:16
-ERROR `in` is not supported between `Literal['sources']` and `(dict[str, Any], StartResponse) -> Iterable[bytes]` [not-iterable]
- --> tests/unit_tests/controllers/console/auth/test_data_source_bearer_auth.py:58:16
-ERROR `in` is not supported between `Literal['sources']` and `AsyncIterable[bytes]` [not-iterable]
- --> tests/unit_tests/controllers/console/auth/test_data_source_bearer_auth.py:58:16
-ERROR `in` is not supported between `Literal['sources']` and `AsyncIterable[str]` [not-iterable]
- --> tests/unit_tests/controllers/console/auth/test_data_source_bearer_auth.py:58:16
-ERROR `in` is not supported between `Literal['sources']` and `Iterator[bytes]` [unsupported-operation]
- --> tests/unit_tests/controllers/console/auth/test_data_source_bearer_auth.py:58:16
-ERROR `in` is not supported between `Literal['sources']` and `Response` [not-iterable]
- --> tests/unit_tests/controllers/console/auth/test_data_source_bearer_auth.py:58:16
-ERROR `(dict[str, Any], StartResponse) -> Iterable[bytes]` is not subscriptable [unsupported-operation]
- --> tests/unit_tests/controllers/console/auth/test_data_source_bearer_auth.py:59:20
-ERROR Cannot index into `AsyncIterable[bytes]` [bad-index]
- --> tests/unit_tests/controllers/console/auth/test_data_source_bearer_auth.py:59:20
-ERROR Cannot index into `AsyncIterable[str]` [bad-index]
- --> tests/unit_tests/controllers/console/auth/test_data_source_bearer_auth.py:59:20
-ERROR Cannot index into `Iterator[bytes]` [bad-index]
- --> tests/unit_tests/controllers/console/auth/test_data_source_bearer_auth.py:59:20
-ERROR Cannot index into `Iterator[str]` [bad-index]
- --> tests/unit_tests/controllers/console/auth/test_data_source_bearer_auth.py:59:20
-ERROR Cannot index into `Response` [bad-index]
- --> tests/unit_tests/controllers/console/auth/test_data_source_bearer_auth.py:59:20
-ERROR Cannot index into `bytes` [bad-index]
- --> tests/unit_tests/controllers/console/auth/test_data_source_bearer_auth.py:59:20
-ERROR Cannot index into `list[Any]` [bad-index]
- --> tests/unit_tests/controllers/console/auth/test_data_source_bearer_auth.py:59:20
-ERROR Cannot index into `str` [bad-index]
- --> tests/unit_tests/controllers/console/auth/test_data_source_bearer_auth.py:59:20
-ERROR Cannot index into `tuple[AsyncIterable[bytes] | AsyncIterable[str] | Iterator[bytes] | Iterator[str] | Mapping[str, Any] | Response | bytes | list[Any] | str, Headers | Mapping[str, list[str] | str | tuple[str, ...]] | Sequence[tuple[str, list[str] | str | tuple[str, ...]]]]` [bad-index]
- --> tests/unit_tests/controllers/console/auth/test_data_source_bearer_auth.py:59:20
-ERROR Cannot index into `tuple[AsyncIterable[bytes] | AsyncIterable[str] | Iterator[bytes] | Iterator[str] | Mapping[str, Any] | Response | bytes | list[Any] | str, int]` [bad-index]
- --> tests/unit_tests/controllers/console/auth/test_data_source_bearer_auth.py:59:20
-ERROR Cannot index into `tuple[AsyncIterable[bytes] | AsyncIterable[str] | Iterator[bytes] | Iterator[str] | Mapping[str, Any] | Response | bytes | list[Any] | str, int, Headers | Mapping[str, list[str] | str | tuple[str, ...]] | Sequence[tuple[str, list[str] | str | tuple[str, ...]]]]` [bad-index]
- --> tests/unit_tests/controllers/console/auth/test_data_source_bearer_auth.py:59:20
-ERROR `in` is not supported between `Literal['sources']` and `bytes` [unsupported-operation]
- --> tests/unit_tests/controllers/console/auth/test_data_source_bearer_auth.py:90:16
-ERROR `in` is not supported between `Literal['sources']` and `(dict[str, Any], StartResponse) -> Iterable[bytes]` [not-iterable]
- --> tests/unit_tests/controllers/console/auth/test_data_source_bearer_auth.py:90:16
-ERROR `in` is not supported between `Literal['sources']` and `AsyncIterable[bytes]` [not-iterable]
- --> tests/unit_tests/controllers/console/auth/test_data_source_bearer_auth.py:90:16
-ERROR `in` is not supported between `Literal['sources']` and `AsyncIterable[str]` [not-iterable]
- --> tests/unit_tests/controllers/console/auth/test_data_source_bearer_auth.py:90:16
-ERROR `in` is not supported between `Literal['sources']` and `Iterator[bytes]` [unsupported-operation]
- --> tests/unit_tests/controllers/console/auth/test_data_source_bearer_auth.py:90:16
-ERROR `in` is not supported between `Literal['sources']` and `Response` [not-iterable]
- --> tests/unit_tests/controllers/console/auth/test_data_source_bearer_auth.py:90:16
-ERROR `(dict[str, Any], StartResponse) -> Iterable[bytes]` is not subscriptable [unsupported-operation]
- --> tests/unit_tests/controllers/console/auth/test_data_source_bearer_auth.py:91:20
-ERROR Cannot index into `AsyncIterable[bytes]` [bad-index]
- --> tests/unit_tests/controllers/console/auth/test_data_source_bearer_auth.py:91:20
-ERROR Cannot index into `AsyncIterable[str]` [bad-index]
- --> tests/unit_tests/controllers/console/auth/test_data_source_bearer_auth.py:91:20
-ERROR Cannot index into `Iterator[bytes]` [bad-index]
- --> tests/unit_tests/controllers/console/auth/test_data_source_bearer_auth.py:91:20
-ERROR Cannot index into `Iterator[str]` [bad-index]
- --> tests/unit_tests/controllers/console/auth/test_data_source_bearer_auth.py:91:20
-ERROR Cannot index into `Response` [bad-index]
- --> tests/unit_tests/controllers/console/auth/test_data_source_bearer_auth.py:91:20
-ERROR Cannot index into `bytes` [bad-index]
- --> tests/unit_tests/controllers/console/auth/test_data_source_bearer_auth.py:91:20
-ERROR Cannot index into `list[Any]` [bad-index]
- --> tests/unit_tests/controllers/console/auth/test_data_source_bearer_auth.py:91:20
-ERROR Cannot index into `str` [bad-index]
- --> tests/unit_tests/controllers/console/auth/test_data_source_bearer_auth.py:91:20
-ERROR Cannot index into `tuple[AsyncIterable[bytes] | AsyncIterable[str] | Iterator[bytes] | Iterator[str] | Mapping[str, Any] | Response | bytes | list[Any] | str, Headers | Mapping[str, list[str] | str | tuple[str, ...]] | Sequence[tuple[str, list[str] | str | tuple[str, ...]]]]` [bad-index]
- --> tests/unit_tests/controllers/console/auth/test_data_source_bearer_auth.py:91:20
-ERROR Cannot index into `tuple[AsyncIterable[bytes] | AsyncIterable[str] | Iterator[bytes] | Iterator[str] | Mapping[str, Any] | Response | bytes | list[Any] | str, int]` [bad-index]
- --> tests/unit_tests/controllers/console/auth/test_data_source_bearer_auth.py:91:20
-ERROR Cannot index into `tuple[AsyncIterable[bytes] | AsyncIterable[str] | Iterator[bytes] | Iterator[str] | Mapping[str, Any] | Response | bytes | list[Any] | str, int, Headers | Mapping[str, list[str] | str | tuple[str, ...]] | Sequence[tuple[str, list[str] | str | tuple[str, ...]]]]` [bad-index]
- --> tests/unit_tests/controllers/console/auth/test_data_source_bearer_auth.py:91:20
-ERROR `(dict[str, Any], StartResponse) -> Iterable[bytes]` is not subscriptable [unsupported-operation]
- --> tests/unit_tests/controllers/console/auth/test_data_source_bearer_auth.py:133:16
-ERROR Cannot index into `AsyncIterable[bytes]` [bad-index]
- --> tests/unit_tests/controllers/console/auth/test_data_source_bearer_auth.py:133:16
-ERROR Cannot index into `AsyncIterable[str]` [bad-index]
- --> tests/unit_tests/controllers/console/auth/test_data_source_bearer_auth.py:133:16
-ERROR Cannot index into `Iterator[bytes]` [bad-index]
- --> tests/unit_tests/controllers/console/auth/test_data_source_bearer_auth.py:133:16
-ERROR Cannot index into `Iterator[str]` [bad-index]
- --> tests/unit_tests/controllers/console/auth/test_data_source_bearer_auth.py:133:16
-ERROR Cannot index into `Response` [bad-index]
- --> tests/unit_tests/controllers/console/auth/test_data_source_bearer_auth.py:133:16
-ERROR Cannot index into `AsyncIterable[bytes]` [bad-index]
- --> tests/unit_tests/controllers/console/auth/test_data_source_bearer_auth.py:133:16
-ERROR Cannot index into `AsyncIterable[str]` [bad-index]
- --> tests/unit_tests/controllers/console/auth/test_data_source_bearer_auth.py:133:16
-ERROR Cannot index into `Iterator[bytes]` [bad-index]
- --> tests/unit_tests/controllers/console/auth/test_data_source_bearer_auth.py:133:16
-ERROR Cannot index into `Iterator[str]` [bad-index]
- --> tests/unit_tests/controllers/console/auth/test_data_source_bearer_auth.py:133:16
-ERROR Cannot index into `Response` [bad-index]
- --> tests/unit_tests/controllers/console/auth/test_data_source_bearer_auth.py:133:16
-ERROR Cannot index into `bytes` [bad-index]
- --> tests/unit_tests/controllers/console/auth/test_data_source_bearer_auth.py:133:16
-ERROR Cannot index into `int` [bad-index]
- --> tests/unit_tests/controllers/console/auth/test_data_source_bearer_auth.py:133:16
-ERROR Cannot index into `list[Any]` [bad-index]
- --> tests/unit_tests/controllers/console/auth/test_data_source_bearer_auth.py:133:16
-ERROR Cannot index into `str` [bad-index]
- --> tests/unit_tests/controllers/console/auth/test_data_source_bearer_auth.py:133:16
-ERROR Cannot index into `Mapping[str, Any]` [bad-index]
- --> tests/unit_tests/controllers/console/auth/test_data_source_bearer_auth.py:133:25
-ERROR `(dict[str, Any], StartResponse) -> Iterable[bytes]` is not subscriptable [unsupported-operation]
- --> tests/unit_tests/controllers/console/auth/test_data_source_bearer_auth.py:134:16
-ERROR Cannot index into `AsyncIterable[bytes]` [bad-index]
- --> tests/unit_tests/controllers/console/auth/test_data_source_bearer_auth.py:134:16
-ERROR Cannot index into `AsyncIterable[str]` [bad-index]
- --> tests/unit_tests/controllers/console/auth/test_data_source_bearer_auth.py:134:16
-ERROR Cannot index into `Iterator[bytes]` [bad-index]
- --> tests/unit_tests/controllers/console/auth/test_data_source_bearer_auth.py:134:16
-ERROR Cannot index into `Iterator[str]` [bad-index]
- --> tests/unit_tests/controllers/console/auth/test_data_source_bearer_auth.py:134:16
-ERROR Cannot index into `Response` [bad-index]
- --> tests/unit_tests/controllers/console/auth/test_data_source_bearer_auth.py:134:16
-ERROR Cannot index into `Mapping[str, Any]` [bad-index]
- --> tests/unit_tests/controllers/console/auth/test_data_source_bearer_auth.py:134:25
-ERROR `(dict[str, Any], StartResponse) -> Iterable[bytes]` is not subscriptable [unsupported-operation]
- --> tests/unit_tests/controllers/console/auth/test_data_source_bearer_auth.py:207:16
-ERROR Cannot index into `AsyncIterable[bytes]` [bad-index]
- --> tests/unit_tests/controllers/console/auth/test_data_source_bearer_auth.py:207:16
-ERROR Cannot index into `AsyncIterable[str]` [bad-index]
- --> tests/unit_tests/controllers/console/auth/test_data_source_bearer_auth.py:207:16
-ERROR Cannot index into `Iterator[bytes]` [bad-index]
- --> tests/unit_tests/controllers/console/auth/test_data_source_bearer_auth.py:207:16
-ERROR Cannot index into `Iterator[str]` [bad-index]
- --> tests/unit_tests/controllers/console/auth/test_data_source_bearer_auth.py:207:16
-ERROR Cannot index into `Response` [bad-index]
- --> tests/unit_tests/controllers/console/auth/test_data_source_bearer_auth.py:207:16
-ERROR Cannot index into `AsyncIterable[bytes]` [bad-index]
- --> tests/unit_tests/controllers/console/auth/test_data_source_bearer_auth.py:207:16
-ERROR Cannot index into `AsyncIterable[str]` [bad-index]
- --> tests/unit_tests/controllers/console/auth/test_data_source_bearer_auth.py:207:16
-ERROR Cannot index into `Iterator[bytes]` [bad-index]
- --> tests/unit_tests/controllers/console/auth/test_data_source_bearer_auth.py:207:16
-ERROR Cannot index into `Iterator[str]` [bad-index]
- --> tests/unit_tests/controllers/console/auth/test_data_source_bearer_auth.py:207:16
-ERROR Cannot index into `Response` [bad-index]
- --> tests/unit_tests/controllers/console/auth/test_data_source_bearer_auth.py:207:16
-ERROR Cannot index into `bytes` [bad-index]
- --> tests/unit_tests/controllers/console/auth/test_data_source_bearer_auth.py:207:16
-ERROR Cannot index into `int` [bad-index]
- --> tests/unit_tests/controllers/console/auth/test_data_source_bearer_auth.py:207:16
-ERROR Cannot index into `list[Any]` [bad-index]
- --> tests/unit_tests/controllers/console/auth/test_data_source_bearer_auth.py:207:16
-ERROR Cannot index into `str` [bad-index]
- --> tests/unit_tests/controllers/console/auth/test_data_source_bearer_auth.py:207:16
-ERROR Cannot index into `Mapping[str, Any]` [bad-index]
- --> tests/unit_tests/controllers/console/auth/test_data_source_bearer_auth.py:207:25
-ERROR `(dict[str, Any], StartResponse) -> Iterable[bytes]` is not subscriptable [unsupported-operation]
- --> tests/unit_tests/controllers/console/auth/test_data_source_bearer_auth.py:208:16
-ERROR Cannot index into `AsyncIterable[bytes]` [bad-index]
- --> tests/unit_tests/controllers/console/auth/test_data_source_bearer_auth.py:208:16
-ERROR Cannot index into `AsyncIterable[str]` [bad-index]
- --> tests/unit_tests/controllers/console/auth/test_data_source_bearer_auth.py:208:16
-ERROR Cannot index into `Iterator[bytes]` [bad-index]
- --> tests/unit_tests/controllers/console/auth/test_data_source_bearer_auth.py:208:16
-ERROR Cannot index into `Iterator[str]` [bad-index]
- --> tests/unit_tests/controllers/console/auth/test_data_source_bearer_auth.py:208:16
-ERROR Cannot index into `Response` [bad-index]
- --> tests/unit_tests/controllers/console/auth/test_data_source_bearer_auth.py:208:16
-ERROR Cannot index into `Mapping[str, Any]` [bad-index]
- --> tests/unit_tests/controllers/console/auth/test_data_source_bearer_auth.py:208:25
ERROR `None` is not subscriptable [unsupported-operation]
--> tests/unit_tests/controllers/console/auth/test_login_logout.py:467:16
ERROR `None` is not subscriptable [unsupported-operation]
@@ -2125,46 +1953,6 @@
--> tests/unit_tests/controllers/console/auth/test_oauth.py:206:9
ERROR Object of class `RequestError` has no attribute `response` [missing-attribute]
--> tests/unit_tests/controllers/console/auth/test_oauth.py:207:9
-ERROR `(dict[str, Any], StartResponse) -> Iterable[bytes]` is not subscriptable [unsupported-operation]
- --> tests/unit_tests/controllers/console/auth/test_oauth_server.py:124:16
-ERROR Cannot index into `AsyncIterable[bytes]` [bad-index]
- --> tests/unit_tests/controllers/console/auth/test_oauth_server.py:124:16
-ERROR Cannot index into `AsyncIterable[str]` [bad-index]
- --> tests/unit_tests/controllers/console/auth/test_oauth_server.py:124:16
-ERROR Cannot index into `Iterator[bytes]` [bad-index]
- --> tests/unit_tests/controllers/console/auth/test_oauth_server.py:124:16
-ERROR Cannot index into `Iterator[str]` [bad-index]
- --> tests/unit_tests/controllers/console/auth/test_oauth_server.py:124:16
-ERROR Cannot index into `Response` [bad-index]
- --> tests/unit_tests/controllers/console/auth/test_oauth_server.py:124:16
-ERROR Cannot index into `bytes` [bad-index]
- --> tests/unit_tests/controllers/console/auth/test_oauth_server.py:124:16
-ERROR Cannot index into `list[Any]` [bad-index]
- --> tests/unit_tests/controllers/console/auth/test_oauth_server.py:124:16
-ERROR Cannot index into `str` [bad-index]
- --> tests/unit_tests/controllers/console/auth/test_oauth_server.py:124:16
-ERROR Cannot index into `tuple[AsyncIterable[bytes] | AsyncIterable[str] | Iterator[bytes] | Iterator[str] | Mapping[str, Any] | Response | bytes | list[Any] | str, Headers | Mapping[str, list[str] | str | tuple[str, ...]] | Sequence[tuple[str, list[str] | str | tuple[str, ...]]]]` [bad-index]
- --> tests/unit_tests/controllers/console/auth/test_oauth_server.py:124:16
-ERROR Cannot index into `tuple[AsyncIterable[bytes] | AsyncIterable[str] | Iterator[bytes] | Iterator[str] | Mapping[str, Any] | Response | bytes | list[Any] | str, int]` [bad-index]
- --> tests/unit_tests/controllers/console/auth/test_oauth_server.py:124:16
-ERROR Cannot index into `tuple[AsyncIterable[bytes] | AsyncIterable[str] | Iterator[bytes] | Iterator[str] | Mapping[str, Any] | Response | bytes | list[Any] | str, int, Headers | Mapping[str, list[str] | str | tuple[str, ...]] | Sequence[tuple[str, list[str] | str | tuple[str, ...]]]]` [bad-index]
- --> tests/unit_tests/controllers/console/auth/test_oauth_server.py:124:16
-ERROR Cannot index into `Response` [bad-index]
- --> tests/unit_tests/controllers/console/auth/test_oauth_server.py:328:16
-ERROR Cannot index into `Response` [bad-index]
- --> tests/unit_tests/controllers/console/auth/test_oauth_server.py:329:16
-ERROR Cannot index into `Response` [bad-index]
- --> tests/unit_tests/controllers/console/auth/test_oauth_server.py:330:16
-ERROR `None` is not subscriptable [unsupported-operation]
- --> tests/unit_tests/controllers/console/auth/test_oauth_server.py:343:16
-ERROR `None` is not subscriptable [unsupported-operation]
- --> tests/unit_tests/controllers/console/auth/test_oauth_server.py:361:16
-ERROR `None` is not subscriptable [unsupported-operation]
- --> tests/unit_tests/controllers/console/auth/test_oauth_server.py:379:16
-ERROR `None` is not subscriptable [unsupported-operation]
- --> tests/unit_tests/controllers/console/auth/test_oauth_server.py:397:16
-ERROR `None` is not subscriptable [unsupported-operation]
- --> tests/unit_tests/controllers/console/auth/test_oauth_server.py:417:16
ERROR Object of class `tuple` has no attribute `json` [missing-attribute]
--> tests/unit_tests/controllers/console/auth/test_token_refresh.py:74:16
ERROR Type `Response` is not iterable [not-iterable]
|
Pyrefly Diffbase → PR--- /tmp/pyrefly_base.txt 2026-03-23 11:35:53.107358806 +0000
+++ /tmp/pyrefly_pr.txt 2026-03-23 11:35:44.771426868 +0000
@@ -793,6 +793,10 @@
--> tests/test_containers_integration_tests/conftest.py:198:39
ERROR Argument `Literal['normal']` is not assignable to parameter `status` with type `SQLCoreOperations[TenantStatus] | TenantStatus` in function `models.account.Tenant.__init__` [bad-argument-type]
--> tests/test_containers_integration_tests/controllers/console/app/test_chat_conversation_status_count_api.py:33:48
+ERROR Argument `Literal['active']` is not assignable to parameter `status` with type `AccountStatus | SQLCoreOperations[AccountStatus]` in function `models.account.Account.__init__` [bad-argument-type]
+ --> tests/test_containers_integration_tests/controllers/console/auth/test_oauth_server.py:272:16
+ERROR Argument `Literal['normal']` is not assignable to parameter `status` with type `SQLCoreOperations[TenantStatus] | TenantStatus` in function `models.account.Tenant.__init__` [bad-argument-type]
+ --> tests/test_containers_integration_tests/controllers/console/helpers.py:40:48
ERROR Argument `Literal['normal']` is not assignable to parameter `status` with type `SQLCoreOperations[TenantStatus] | TenantStatus` in function `models.account.Tenant.__init__` [bad-argument-type]
--> tests/test_containers_integration_tests/core/app/layers/test_pause_state_persist_layer.py:97:20
ERROR Argument `Literal['active']` is not assignable to parameter `status` with type `AccountStatus | SQLCoreOperations[AccountStatus]` in function `models.account.Account.__init__` [bad-argument-type]
@@ -1807,18 +1811,6 @@
--> tests/unit_tests/controllers/console/app/test_workflow.py:26:40
ERROR Argument `SimpleNamespace` is not assignable to parameter `workflow` with type `Workflow` in function `controllers.console.app.workflow._parse_file` [bad-argument-type]
--> tests/unit_tests/controllers/console/app/test_workflow.py:44:42
-ERROR Object of class `NoneType` has no attribute `status_code` [missing-attribute]
- --> tests/unit_tests/controllers/console/app/test_workflow_draft_variable.py:164:16
-ERROR Object of class `NoneType` has no attribute `status_code` [missing-attribute]
- --> tests/unit_tests/controllers/console/app/test_workflow_draft_variable.py:202:16
-ERROR `None` is not subscriptable [unsupported-operation]
- --> tests/unit_tests/controllers/console/app/test_workflow_draft_variable.py:211:16
-ERROR `None` is not subscriptable [unsupported-operation]
- --> tests/unit_tests/controllers/console/app/test_workflow_draft_variable.py:235:16
-ERROR Object of class `NoneType` has no attribute `status_code` [missing-attribute]
- --> tests/unit_tests/controllers/console/app/test_workflow_draft_variable.py:245:16
-ERROR Object of class `NoneType` has no attribute `status_code` [missing-attribute]
- --> tests/unit_tests/controllers/console/app/test_workflow_draft_variable.py:263:16
ERROR Type `(dict[str, Any], StartResponse) -> Iterable[bytes]` is not iterable [not-iterable]
--> tests/unit_tests/controllers/console/app/test_workflow_pause_details_api.py:83:9
ERROR Type `AsyncIterable[bytes]` is not iterable [not-iterable]
@@ -1953,170 +1945,6 @@
--> tests/unit_tests/controllers/console/app/test_wraps.py:47:16
ERROR Cannot set item in `OrderedDict[str, bool | list[str] | str]` [unsupported-operation]
--> tests/unit_tests/controllers/console/app/workflow_draft_variables_test.py:134:47
-ERROR `in` is not supported between `Literal['sources']` and `bytes` [unsupported-operation]
- --> tests/unit_tests/controllers/console/auth/test_data_source_bearer_auth.py:58:16
-ERROR `in` is not supported between `Literal['sources']` and `(dict[str, Any], StartResponse) -> Iterable[bytes]` [not-iterable]
- --> tests/unit_tests/controllers/console/auth/test_data_source_bearer_auth.py:58:16
-ERROR `in` is not supported between `Literal['sources']` and `AsyncIterable[bytes]` [not-iterable]
- --> tests/unit_tests/controllers/console/auth/test_data_source_bearer_auth.py:58:16
-ERROR `in` is not supported between `Literal['sources']` and `AsyncIterable[str]` [not-iterable]
- --> tests/unit_tests/controllers/console/auth/test_data_source_bearer_auth.py:58:16
-ERROR `in` is not supported between `Literal['sources']` and `Iterator[bytes]` [unsupported-operation]
- --> tests/unit_tests/controllers/console/auth/test_data_source_bearer_auth.py:58:16
-ERROR `in` is not supported between `Literal['sources']` and `Response` [not-iterable]
- --> tests/unit_tests/controllers/console/auth/test_data_source_bearer_auth.py:58:16
-ERROR `(dict[str, Any], StartResponse) -> Iterable[bytes]` is not subscriptable [unsupported-operation]
- --> tests/unit_tests/controllers/console/auth/test_data_source_bearer_auth.py:59:20
-ERROR Cannot index into `AsyncIterable[bytes]` [bad-index]
- --> tests/unit_tests/controllers/console/auth/test_data_source_bearer_auth.py:59:20
-ERROR Cannot index into `AsyncIterable[str]` [bad-index]
- --> tests/unit_tests/controllers/console/auth/test_data_source_bearer_auth.py:59:20
-ERROR Cannot index into `Iterator[bytes]` [bad-index]
- --> tests/unit_tests/controllers/console/auth/test_data_source_bearer_auth.py:59:20
-ERROR Cannot index into `Iterator[str]` [bad-index]
- --> tests/unit_tests/controllers/console/auth/test_data_source_bearer_auth.py:59:20
-ERROR Cannot index into `Response` [bad-index]
- --> tests/unit_tests/controllers/console/auth/test_data_source_bearer_auth.py:59:20
-ERROR Cannot index into `bytes` [bad-index]
- --> tests/unit_tests/controllers/console/auth/test_data_source_bearer_auth.py:59:20
-ERROR Cannot index into `list[Any]` [bad-index]
- --> tests/unit_tests/controllers/console/auth/test_data_source_bearer_auth.py:59:20
-ERROR Cannot index into `str` [bad-index]
- --> tests/unit_tests/controllers/console/auth/test_data_source_bearer_auth.py:59:20
-ERROR Cannot index into `tuple[AsyncIterable[bytes] | AsyncIterable[str] | Iterator[bytes] | Iterator[str] | Mapping[str, Any] | Response | bytes | list[Any] | str, Headers | Mapping[str, list[str] | str | tuple[str, ...]] | Sequence[tuple[str, list[str] | str | tuple[str, ...]]]]` [bad-index]
- --> tests/unit_tests/controllers/console/auth/test_data_source_bearer_auth.py:59:20
-ERROR Cannot index into `tuple[AsyncIterable[bytes] | AsyncIterable[str] | Iterator[bytes] | Iterator[str] | Mapping[str, Any] | Response | bytes | list[Any] | str, int]` [bad-index]
- --> tests/unit_tests/controllers/console/auth/test_data_source_bearer_auth.py:59:20
-ERROR Cannot index into `tuple[AsyncIterable[bytes] | AsyncIterable[str] | Iterator[bytes] | Iterator[str] | Mapping[str, Any] | Response | bytes | list[Any] | str, int, Headers | Mapping[str, list[str] | str | tuple[str, ...]] | Sequence[tuple[str, list[str] | str | tuple[str, ...]]]]` [bad-index]
- --> tests/unit_tests/controllers/console/auth/test_data_source_bearer_auth.py:59:20
-ERROR `in` is not supported between `Literal['sources']` and `bytes` [unsupported-operation]
- --> tests/unit_tests/controllers/console/auth/test_data_source_bearer_auth.py:90:16
-ERROR `in` is not supported between `Literal['sources']` and `(dict[str, Any], StartResponse) -> Iterable[bytes]` [not-iterable]
- --> tests/unit_tests/controllers/console/auth/test_data_source_bearer_auth.py:90:16
-ERROR `in` is not supported between `Literal['sources']` and `AsyncIterable[bytes]` [not-iterable]
- --> tests/unit_tests/controllers/console/auth/test_data_source_bearer_auth.py:90:16
-ERROR `in` is not supported between `Literal['sources']` and `AsyncIterable[str]` [not-iterable]
- --> tests/unit_tests/controllers/console/auth/test_data_source_bearer_auth.py:90:16
-ERROR `in` is not supported between `Literal['sources']` and `Iterator[bytes]` [unsupported-operation]
- --> tests/unit_tests/controllers/console/auth/test_data_source_bearer_auth.py:90:16
-ERROR `in` is not supported between `Literal['sources']` and `Response` [not-iterable]
- --> tests/unit_tests/controllers/console/auth/test_data_source_bearer_auth.py:90:16
-ERROR `(dict[str, Any], StartResponse) -> Iterable[bytes]` is not subscriptable [unsupported-operation]
- --> tests/unit_tests/controllers/console/auth/test_data_source_bearer_auth.py:91:20
-ERROR Cannot index into `AsyncIterable[bytes]` [bad-index]
- --> tests/unit_tests/controllers/console/auth/test_data_source_bearer_auth.py:91:20
-ERROR Cannot index into `AsyncIterable[str]` [bad-index]
- --> tests/unit_tests/controllers/console/auth/test_data_source_bearer_auth.py:91:20
-ERROR Cannot index into `Iterator[bytes]` [bad-index]
- --> tests/unit_tests/controllers/console/auth/test_data_source_bearer_auth.py:91:20
-ERROR Cannot index into `Iterator[str]` [bad-index]
- --> tests/unit_tests/controllers/console/auth/test_data_source_bearer_auth.py:91:20
-ERROR Cannot index into `Response` [bad-index]
- --> tests/unit_tests/controllers/console/auth/test_data_source_bearer_auth.py:91:20
-ERROR Cannot index into `bytes` [bad-index]
- --> tests/unit_tests/controllers/console/auth/test_data_source_bearer_auth.py:91:20
-ERROR Cannot index into `list[Any]` [bad-index]
- --> tests/unit_tests/controllers/console/auth/test_data_source_bearer_auth.py:91:20
-ERROR Cannot index into `str` [bad-index]
- --> tests/unit_tests/controllers/console/auth/test_data_source_bearer_auth.py:91:20
-ERROR Cannot index into `tuple[AsyncIterable[bytes] | AsyncIterable[str] | Iterator[bytes] | Iterator[str] | Mapping[str, Any] | Response | bytes | list[Any] | str, Headers | Mapping[str, list[str] | str | tuple[str, ...]] | Sequence[tuple[str, list[str] | str | tuple[str, ...]]]]` [bad-index]
- --> tests/unit_tests/controllers/console/auth/test_data_source_bearer_auth.py:91:20
-ERROR Cannot index into `tuple[AsyncIterable[bytes] | AsyncIterable[str] | Iterator[bytes] | Iterator[str] | Mapping[str, Any] | Response | bytes | list[Any] | str, int]` [bad-index]
- --> tests/unit_tests/controllers/console/auth/test_data_source_bearer_auth.py:91:20
-ERROR Cannot index into `tuple[AsyncIterable[bytes] | AsyncIterable[str] | Iterator[bytes] | Iterator[str] | Mapping[str, Any] | Response | bytes | list[Any] | str, int, Headers | Mapping[str, list[str] | str | tuple[str, ...]] | Sequence[tuple[str, list[str] | str | tuple[str, ...]]]]` [bad-index]
- --> tests/unit_tests/controllers/console/auth/test_data_source_bearer_auth.py:91:20
-ERROR `(dict[str, Any], StartResponse) -> Iterable[bytes]` is not subscriptable [unsupported-operation]
- --> tests/unit_tests/controllers/console/auth/test_data_source_bearer_auth.py:133:16
-ERROR Cannot index into `AsyncIterable[bytes]` [bad-index]
- --> tests/unit_tests/controllers/console/auth/test_data_source_bearer_auth.py:133:16
-ERROR Cannot index into `AsyncIterable[str]` [bad-index]
- --> tests/unit_tests/controllers/console/auth/test_data_source_bearer_auth.py:133:16
-ERROR Cannot index into `Iterator[bytes]` [bad-index]
- --> tests/unit_tests/controllers/console/auth/test_data_source_bearer_auth.py:133:16
-ERROR Cannot index into `Iterator[str]` [bad-index]
- --> tests/unit_tests/controllers/console/auth/test_data_source_bearer_auth.py:133:16
-ERROR Cannot index into `Response` [bad-index]
- --> tests/unit_tests/controllers/console/auth/test_data_source_bearer_auth.py:133:16
-ERROR Cannot index into `AsyncIterable[bytes]` [bad-index]
- --> tests/unit_tests/controllers/console/auth/test_data_source_bearer_auth.py:133:16
-ERROR Cannot index into `AsyncIterable[str]` [bad-index]
- --> tests/unit_tests/controllers/console/auth/test_data_source_bearer_auth.py:133:16
-ERROR Cannot index into `Iterator[bytes]` [bad-index]
- --> tests/unit_tests/controllers/console/auth/test_data_source_bearer_auth.py:133:16
-ERROR Cannot index into `Iterator[str]` [bad-index]
- --> tests/unit_tests/controllers/console/auth/test_data_source_bearer_auth.py:133:16
-ERROR Cannot index into `Response` [bad-index]
- --> tests/unit_tests/controllers/console/auth/test_data_source_bearer_auth.py:133:16
-ERROR Cannot index into `bytes` [bad-index]
- --> tests/unit_tests/controllers/console/auth/test_data_source_bearer_auth.py:133:16
-ERROR Cannot index into `int` [bad-index]
- --> tests/unit_tests/controllers/console/auth/test_data_source_bearer_auth.py:133:16
-ERROR Cannot index into `list[Any]` [bad-index]
- --> tests/unit_tests/controllers/console/auth/test_data_source_bearer_auth.py:133:16
-ERROR Cannot index into `str` [bad-index]
- --> tests/unit_tests/controllers/console/auth/test_data_source_bearer_auth.py:133:16
-ERROR Cannot index into `Mapping[str, Any]` [bad-index]
- --> tests/unit_tests/controllers/console/auth/test_data_source_bearer_auth.py:133:25
-ERROR `(dict[str, Any], StartResponse) -> Iterable[bytes]` is not subscriptable [unsupported-operation]
- --> tests/unit_tests/controllers/console/auth/test_data_source_bearer_auth.py:134:16
-ERROR Cannot index into `AsyncIterable[bytes]` [bad-index]
- --> tests/unit_tests/controllers/console/auth/test_data_source_bearer_auth.py:134:16
-ERROR Cannot index into `AsyncIterable[str]` [bad-index]
- --> tests/unit_tests/controllers/console/auth/test_data_source_bearer_auth.py:134:16
-ERROR Cannot index into `Iterator[bytes]` [bad-index]
- --> tests/unit_tests/controllers/console/auth/test_data_source_bearer_auth.py:134:16
-ERROR Cannot index into `Iterator[str]` [bad-index]
- --> tests/unit_tests/controllers/console/auth/test_data_source_bearer_auth.py:134:16
-ERROR Cannot index into `Response` [bad-index]
- --> tests/unit_tests/controllers/console/auth/test_data_source_bearer_auth.py:134:16
-ERROR Cannot index into `Mapping[str, Any]` [bad-index]
- --> tests/unit_tests/controllers/console/auth/test_data_source_bearer_auth.py:134:25
-ERROR `(dict[str, Any], StartResponse) -> Iterable[bytes]` is not subscriptable [unsupported-operation]
- --> tests/unit_tests/controllers/console/auth/test_data_source_bearer_auth.py:207:16
-ERROR Cannot index into `AsyncIterable[bytes]` [bad-index]
- --> tests/unit_tests/controllers/console/auth/test_data_source_bearer_auth.py:207:16
-ERROR Cannot index into `AsyncIterable[str]` [bad-index]
- --> tests/unit_tests/controllers/console/auth/test_data_source_bearer_auth.py:207:16
-ERROR Cannot index into `Iterator[bytes]` [bad-index]
- --> tests/unit_tests/controllers/console/auth/test_data_source_bearer_auth.py:207:16
-ERROR Cannot index into `Iterator[str]` [bad-index]
- --> tests/unit_tests/controllers/console/auth/test_data_source_bearer_auth.py:207:16
-ERROR Cannot index into `Response` [bad-index]
- --> tests/unit_tests/controllers/console/auth/test_data_source_bearer_auth.py:207:16
-ERROR Cannot index into `AsyncIterable[bytes]` [bad-index]
- --> tests/unit_tests/controllers/console/auth/test_data_source_bearer_auth.py:207:16
-ERROR Cannot index into `AsyncIterable[str]` [bad-index]
- --> tests/unit_tests/controllers/console/auth/test_data_source_bearer_auth.py:207:16
-ERROR Cannot index into `Iterator[bytes]` [bad-index]
- --> tests/unit_tests/controllers/console/auth/test_data_source_bearer_auth.py:207:16
-ERROR Cannot index into `Iterator[str]` [bad-index]
- --> tests/unit_tests/controllers/console/auth/test_data_source_bearer_auth.py:207:16
-ERROR Cannot index into `Response` [bad-index]
- --> tests/unit_tests/controllers/console/auth/test_data_source_bearer_auth.py:207:16
-ERROR Cannot index into `bytes` [bad-index]
- --> tests/unit_tests/controllers/console/auth/test_data_source_bearer_auth.py:207:16
-ERROR Cannot index into `int` [bad-index]
- --> tests/unit_tests/controllers/console/auth/test_data_source_bearer_auth.py:207:16
-ERROR Cannot index into `list[Any]` [bad-index]
- --> tests/unit_tests/controllers/console/auth/test_data_source_bearer_auth.py:207:16
-ERROR Cannot index into `str` [bad-index]
- --> tests/unit_tests/controllers/console/auth/test_data_source_bearer_auth.py:207:16
-ERROR Cannot index into `Mapping[str, Any]` [bad-index]
- --> tests/unit_tests/controllers/console/auth/test_data_source_bearer_auth.py:207:25
-ERROR `(dict[str, Any], StartResponse) -> Iterable[bytes]` is not subscriptable [unsupported-operation]
- --> tests/unit_tests/controllers/console/auth/test_data_source_bearer_auth.py:208:16
-ERROR Cannot index into `AsyncIterable[bytes]` [bad-index]
- --> tests/unit_tests/controllers/console/auth/test_data_source_bearer_auth.py:208:16
-ERROR Cannot index into `AsyncIterable[str]` [bad-index]
- --> tests/unit_tests/controllers/console/auth/test_data_source_bearer_auth.py:208:16
-ERROR Cannot index into `Iterator[bytes]` [bad-index]
- --> tests/unit_tests/controllers/console/auth/test_data_source_bearer_auth.py:208:16
-ERROR Cannot index into `Iterator[str]` [bad-index]
- --> tests/unit_tests/controllers/console/auth/test_data_source_bearer_auth.py:208:16
-ERROR Cannot index into `Response` [bad-index]
- --> tests/unit_tests/controllers/console/auth/test_data_source_bearer_auth.py:208:16
-ERROR Cannot index into `Mapping[str, Any]` [bad-index]
- --> tests/unit_tests/controllers/console/auth/test_data_source_bearer_auth.py:208:25
ERROR `None` is not subscriptable [unsupported-operation]
--> tests/unit_tests/controllers/console/auth/test_login_logout.py:467:16
ERROR `None` is not subscriptable [unsupported-operation]
@@ -2125,46 +1953,6 @@
--> tests/unit_tests/controllers/console/auth/test_oauth.py:206:9
ERROR Object of class `RequestError` has no attribute `response` [missing-attribute]
--> tests/unit_tests/controllers/console/auth/test_oauth.py:207:9
-ERROR `(dict[str, Any], StartResponse) -> Iterable[bytes]` is not subscriptable [unsupported-operation]
- --> tests/unit_tests/controllers/console/auth/test_oauth_server.py:124:16
-ERROR Cannot index into `AsyncIterable[bytes]` [bad-index]
- --> tests/unit_tests/controllers/console/auth/test_oauth_server.py:124:16
-ERROR Cannot index into `AsyncIterable[str]` [bad-index]
- --> tests/unit_tests/controllers/console/auth/test_oauth_server.py:124:16
-ERROR Cannot index into `Iterator[bytes]` [bad-index]
- --> tests/unit_tests/controllers/console/auth/test_oauth_server.py:124:16
-ERROR Cannot index into `Iterator[str]` [bad-index]
- --> tests/unit_tests/controllers/console/auth/test_oauth_server.py:124:16
-ERROR Cannot index into `Response` [bad-index]
- --> tests/unit_tests/controllers/console/auth/test_oauth_server.py:124:16
-ERROR Cannot index into `bytes` [bad-index]
- --> tests/unit_tests/controllers/console/auth/test_oauth_server.py:124:16
-ERROR Cannot index into `list[Any]` [bad-index]
- --> tests/unit_tests/controllers/console/auth/test_oauth_server.py:124:16
-ERROR Cannot index into `str` [bad-index]
- --> tests/unit_tests/controllers/console/auth/test_oauth_server.py:124:16
-ERROR Cannot index into `tuple[AsyncIterable[bytes] | AsyncIterable[str] | Iterator[bytes] | Iterator[str] | Mapping[str, Any] | Response | bytes | list[Any] | str, Headers | Mapping[str, list[str] | str | tuple[str, ...]] | Sequence[tuple[str, list[str] | str | tuple[str, ...]]]]` [bad-index]
- --> tests/unit_tests/controllers/console/auth/test_oauth_server.py:124:16
-ERROR Cannot index into `tuple[AsyncIterable[bytes] | AsyncIterable[str] | Iterator[bytes] | Iterator[str] | Mapping[str, Any] | Response | bytes | list[Any] | str, int]` [bad-index]
- --> tests/unit_tests/controllers/console/auth/test_oauth_server.py:124:16
-ERROR Cannot index into `tuple[AsyncIterable[bytes] | AsyncIterable[str] | Iterator[bytes] | Iterator[str] | Mapping[str, Any] | Response | bytes | list[Any] | str, int, Headers | Mapping[str, list[str] | str | tuple[str, ...]] | Sequence[tuple[str, list[str] | str | tuple[str, ...]]]]` [bad-index]
- --> tests/unit_tests/controllers/console/auth/test_oauth_server.py:124:16
-ERROR Cannot index into `Response` [bad-index]
- --> tests/unit_tests/controllers/console/auth/test_oauth_server.py:328:16
-ERROR Cannot index into `Response` [bad-index]
- --> tests/unit_tests/controllers/console/auth/test_oauth_server.py:329:16
-ERROR Cannot index into `Response` [bad-index]
- --> tests/unit_tests/controllers/console/auth/test_oauth_server.py:330:16
-ERROR `None` is not subscriptable [unsupported-operation]
- --> tests/unit_tests/controllers/console/auth/test_oauth_server.py:343:16
-ERROR `None` is not subscriptable [unsupported-operation]
- --> tests/unit_tests/controllers/console/auth/test_oauth_server.py:361:16
-ERROR `None` is not subscriptable [unsupported-operation]
- --> tests/unit_tests/controllers/console/auth/test_oauth_server.py:379:16
-ERROR `None` is not subscriptable [unsupported-operation]
- --> tests/unit_tests/controllers/console/auth/test_oauth_server.py:397:16
-ERROR `None` is not subscriptable [unsupported-operation]
- --> tests/unit_tests/controllers/console/auth/test_oauth_server.py:417:16
ERROR Object of class `tuple` has no attribute `json` [missing-attribute]
--> tests/unit_tests/controllers/console/auth/test_token_refresh.py:74:16
ERROR Type `Response` is not iterable [not-iterable]
|
Pyrefly Diffbase → PR--- /tmp/pyrefly_base.txt 2026-03-23 11:49:55.632314783 +0000
+++ /tmp/pyrefly_pr.txt 2026-03-23 11:49:46.317192507 +0000
@@ -794,6 +794,8 @@
ERROR Argument `Literal['normal']` is not assignable to parameter `status` with type `SQLCoreOperations[TenantStatus] | TenantStatus` in function `models.account.Tenant.__init__` [bad-argument-type]
--> tests/test_containers_integration_tests/controllers/console/app/test_chat_conversation_status_count_api.py:33:48
ERROR Argument `Literal['normal']` is not assignable to parameter `status` with type `SQLCoreOperations[TenantStatus] | TenantStatus` in function `models.account.Tenant.__init__` [bad-argument-type]
+ --> tests/test_containers_integration_tests/controllers/console/helpers.py:40:48
+ERROR Argument `Literal['normal']` is not assignable to parameter `status` with type `SQLCoreOperations[TenantStatus] | TenantStatus` in function `models.account.Tenant.__init__` [bad-argument-type]
--> tests/test_containers_integration_tests/core/app/layers/test_pause_state_persist_layer.py:97:20
ERROR Argument `Literal['active']` is not assignable to parameter `status` with type `AccountStatus | SQLCoreOperations[AccountStatus]` in function `models.account.Account.__init__` [bad-argument-type]
--> tests/test_containers_integration_tests/core/app/layers/test_pause_state_persist_layer.py:106:20
@@ -1807,18 +1809,6 @@
--> tests/unit_tests/controllers/console/app/test_workflow.py:26:40
ERROR Argument `SimpleNamespace` is not assignable to parameter `workflow` with type `Workflow` in function `controllers.console.app.workflow._parse_file` [bad-argument-type]
--> tests/unit_tests/controllers/console/app/test_workflow.py:44:42
-ERROR Object of class `NoneType` has no attribute `status_code` [missing-attribute]
- --> tests/unit_tests/controllers/console/app/test_workflow_draft_variable.py:164:16
-ERROR Object of class `NoneType` has no attribute `status_code` [missing-attribute]
- --> tests/unit_tests/controllers/console/app/test_workflow_draft_variable.py:202:16
-ERROR `None` is not subscriptable [unsupported-operation]
- --> tests/unit_tests/controllers/console/app/test_workflow_draft_variable.py:211:16
-ERROR `None` is not subscriptable [unsupported-operation]
- --> tests/unit_tests/controllers/console/app/test_workflow_draft_variable.py:235:16
-ERROR Object of class `NoneType` has no attribute `status_code` [missing-attribute]
- --> tests/unit_tests/controllers/console/app/test_workflow_draft_variable.py:245:16
-ERROR Object of class `NoneType` has no attribute `status_code` [missing-attribute]
- --> tests/unit_tests/controllers/console/app/test_workflow_draft_variable.py:263:16
ERROR Type `(dict[str, Any], StartResponse) -> Iterable[bytes]` is not iterable [not-iterable]
--> tests/unit_tests/controllers/console/app/test_workflow_pause_details_api.py:83:9
ERROR Type `AsyncIterable[bytes]` is not iterable [not-iterable]
@@ -1953,170 +1943,6 @@
--> tests/unit_tests/controllers/console/app/test_wraps.py:47:16
ERROR Cannot set item in `OrderedDict[str, bool | list[str] | str]` [unsupported-operation]
--> tests/unit_tests/controllers/console/app/workflow_draft_variables_test.py:134:47
-ERROR `in` is not supported between `Literal['sources']` and `bytes` [unsupported-operation]
- --> tests/unit_tests/controllers/console/auth/test_data_source_bearer_auth.py:58:16
-ERROR `in` is not supported between `Literal['sources']` and `(dict[str, Any], StartResponse) -> Iterable[bytes]` [not-iterable]
- --> tests/unit_tests/controllers/console/auth/test_data_source_bearer_auth.py:58:16
-ERROR `in` is not supported between `Literal['sources']` and `AsyncIterable[bytes]` [not-iterable]
- --> tests/unit_tests/controllers/console/auth/test_data_source_bearer_auth.py:58:16
-ERROR `in` is not supported between `Literal['sources']` and `AsyncIterable[str]` [not-iterable]
- --> tests/unit_tests/controllers/console/auth/test_data_source_bearer_auth.py:58:16
-ERROR `in` is not supported between `Literal['sources']` and `Iterator[bytes]` [unsupported-operation]
- --> tests/unit_tests/controllers/console/auth/test_data_source_bearer_auth.py:58:16
-ERROR `in` is not supported between `Literal['sources']` and `Response` [not-iterable]
- --> tests/unit_tests/controllers/console/auth/test_data_source_bearer_auth.py:58:16
-ERROR `(dict[str, Any], StartResponse) -> Iterable[bytes]` is not subscriptable [unsupported-operation]
- --> tests/unit_tests/controllers/console/auth/test_data_source_bearer_auth.py:59:20
-ERROR Cannot index into `AsyncIterable[bytes]` [bad-index]
- --> tests/unit_tests/controllers/console/auth/test_data_source_bearer_auth.py:59:20
-ERROR Cannot index into `AsyncIterable[str]` [bad-index]
- --> tests/unit_tests/controllers/console/auth/test_data_source_bearer_auth.py:59:20
-ERROR Cannot index into `Iterator[bytes]` [bad-index]
- --> tests/unit_tests/controllers/console/auth/test_data_source_bearer_auth.py:59:20
-ERROR Cannot index into `Iterator[str]` [bad-index]
- --> tests/unit_tests/controllers/console/auth/test_data_source_bearer_auth.py:59:20
-ERROR Cannot index into `Response` [bad-index]
- --> tests/unit_tests/controllers/console/auth/test_data_source_bearer_auth.py:59:20
-ERROR Cannot index into `bytes` [bad-index]
- --> tests/unit_tests/controllers/console/auth/test_data_source_bearer_auth.py:59:20
-ERROR Cannot index into `list[Any]` [bad-index]
- --> tests/unit_tests/controllers/console/auth/test_data_source_bearer_auth.py:59:20
-ERROR Cannot index into `str` [bad-index]
- --> tests/unit_tests/controllers/console/auth/test_data_source_bearer_auth.py:59:20
-ERROR Cannot index into `tuple[AsyncIterable[bytes] | AsyncIterable[str] | Iterator[bytes] | Iterator[str] | Mapping[str, Any] | Response | bytes | list[Any] | str, Headers | Mapping[str, list[str] | str | tuple[str, ...]] | Sequence[tuple[str, list[str] | str | tuple[str, ...]]]]` [bad-index]
- --> tests/unit_tests/controllers/console/auth/test_data_source_bearer_auth.py:59:20
-ERROR Cannot index into `tuple[AsyncIterable[bytes] | AsyncIterable[str] | Iterator[bytes] | Iterator[str] | Mapping[str, Any] | Response | bytes | list[Any] | str, int]` [bad-index]
- --> tests/unit_tests/controllers/console/auth/test_data_source_bearer_auth.py:59:20
-ERROR Cannot index into `tuple[AsyncIterable[bytes] | AsyncIterable[str] | Iterator[bytes] | Iterator[str] | Mapping[str, Any] | Response | bytes | list[Any] | str, int, Headers | Mapping[str, list[str] | str | tuple[str, ...]] | Sequence[tuple[str, list[str] | str | tuple[str, ...]]]]` [bad-index]
- --> tests/unit_tests/controllers/console/auth/test_data_source_bearer_auth.py:59:20
-ERROR `in` is not supported between `Literal['sources']` and `bytes` [unsupported-operation]
- --> tests/unit_tests/controllers/console/auth/test_data_source_bearer_auth.py:90:16
-ERROR `in` is not supported between `Literal['sources']` and `(dict[str, Any], StartResponse) -> Iterable[bytes]` [not-iterable]
- --> tests/unit_tests/controllers/console/auth/test_data_source_bearer_auth.py:90:16
-ERROR `in` is not supported between `Literal['sources']` and `AsyncIterable[bytes]` [not-iterable]
- --> tests/unit_tests/controllers/console/auth/test_data_source_bearer_auth.py:90:16
-ERROR `in` is not supported between `Literal['sources']` and `AsyncIterable[str]` [not-iterable]
- --> tests/unit_tests/controllers/console/auth/test_data_source_bearer_auth.py:90:16
-ERROR `in` is not supported between `Literal['sources']` and `Iterator[bytes]` [unsupported-operation]
- --> tests/unit_tests/controllers/console/auth/test_data_source_bearer_auth.py:90:16
-ERROR `in` is not supported between `Literal['sources']` and `Response` [not-iterable]
- --> tests/unit_tests/controllers/console/auth/test_data_source_bearer_auth.py:90:16
-ERROR `(dict[str, Any], StartResponse) -> Iterable[bytes]` is not subscriptable [unsupported-operation]
- --> tests/unit_tests/controllers/console/auth/test_data_source_bearer_auth.py:91:20
-ERROR Cannot index into `AsyncIterable[bytes]` [bad-index]
- --> tests/unit_tests/controllers/console/auth/test_data_source_bearer_auth.py:91:20
-ERROR Cannot index into `AsyncIterable[str]` [bad-index]
- --> tests/unit_tests/controllers/console/auth/test_data_source_bearer_auth.py:91:20
-ERROR Cannot index into `Iterator[bytes]` [bad-index]
- --> tests/unit_tests/controllers/console/auth/test_data_source_bearer_auth.py:91:20
-ERROR Cannot index into `Iterator[str]` [bad-index]
- --> tests/unit_tests/controllers/console/auth/test_data_source_bearer_auth.py:91:20
-ERROR Cannot index into `Response` [bad-index]
- --> tests/unit_tests/controllers/console/auth/test_data_source_bearer_auth.py:91:20
-ERROR Cannot index into `bytes` [bad-index]
- --> tests/unit_tests/controllers/console/auth/test_data_source_bearer_auth.py:91:20
-ERROR Cannot index into `list[Any]` [bad-index]
- --> tests/unit_tests/controllers/console/auth/test_data_source_bearer_auth.py:91:20
-ERROR Cannot index into `str` [bad-index]
- --> tests/unit_tests/controllers/console/auth/test_data_source_bearer_auth.py:91:20
-ERROR Cannot index into `tuple[AsyncIterable[bytes] | AsyncIterable[str] | Iterator[bytes] | Iterator[str] | Mapping[str, Any] | Response | bytes | list[Any] | str, Headers | Mapping[str, list[str] | str | tuple[str, ...]] | Sequence[tuple[str, list[str] | str | tuple[str, ...]]]]` [bad-index]
- --> tests/unit_tests/controllers/console/auth/test_data_source_bearer_auth.py:91:20
-ERROR Cannot index into `tuple[AsyncIterable[bytes] | AsyncIterable[str] | Iterator[bytes] | Iterator[str] | Mapping[str, Any] | Response | bytes | list[Any] | str, int]` [bad-index]
- --> tests/unit_tests/controllers/console/auth/test_data_source_bearer_auth.py:91:20
-ERROR Cannot index into `tuple[AsyncIterable[bytes] | AsyncIterable[str] | Iterator[bytes] | Iterator[str] | Mapping[str, Any] | Response | bytes | list[Any] | str, int, Headers | Mapping[str, list[str] | str | tuple[str, ...]] | Sequence[tuple[str, list[str] | str | tuple[str, ...]]]]` [bad-index]
- --> tests/unit_tests/controllers/console/auth/test_data_source_bearer_auth.py:91:20
-ERROR `(dict[str, Any], StartResponse) -> Iterable[bytes]` is not subscriptable [unsupported-operation]
- --> tests/unit_tests/controllers/console/auth/test_data_source_bearer_auth.py:133:16
-ERROR Cannot index into `AsyncIterable[bytes]` [bad-index]
- --> tests/unit_tests/controllers/console/auth/test_data_source_bearer_auth.py:133:16
-ERROR Cannot index into `AsyncIterable[str]` [bad-index]
- --> tests/unit_tests/controllers/console/auth/test_data_source_bearer_auth.py:133:16
-ERROR Cannot index into `Iterator[bytes]` [bad-index]
- --> tests/unit_tests/controllers/console/auth/test_data_source_bearer_auth.py:133:16
-ERROR Cannot index into `Iterator[str]` [bad-index]
- --> tests/unit_tests/controllers/console/auth/test_data_source_bearer_auth.py:133:16
-ERROR Cannot index into `Response` [bad-index]
- --> tests/unit_tests/controllers/console/auth/test_data_source_bearer_auth.py:133:16
-ERROR Cannot index into `AsyncIterable[bytes]` [bad-index]
- --> tests/unit_tests/controllers/console/auth/test_data_source_bearer_auth.py:133:16
-ERROR Cannot index into `AsyncIterable[str]` [bad-index]
- --> tests/unit_tests/controllers/console/auth/test_data_source_bearer_auth.py:133:16
-ERROR Cannot index into `Iterator[bytes]` [bad-index]
- --> tests/unit_tests/controllers/console/auth/test_data_source_bearer_auth.py:133:16
-ERROR Cannot index into `Iterator[str]` [bad-index]
- --> tests/unit_tests/controllers/console/auth/test_data_source_bearer_auth.py:133:16
-ERROR Cannot index into `Response` [bad-index]
- --> tests/unit_tests/controllers/console/auth/test_data_source_bearer_auth.py:133:16
-ERROR Cannot index into `bytes` [bad-index]
- --> tests/unit_tests/controllers/console/auth/test_data_source_bearer_auth.py:133:16
-ERROR Cannot index into `int` [bad-index]
- --> tests/unit_tests/controllers/console/auth/test_data_source_bearer_auth.py:133:16
-ERROR Cannot index into `list[Any]` [bad-index]
- --> tests/unit_tests/controllers/console/auth/test_data_source_bearer_auth.py:133:16
-ERROR Cannot index into `str` [bad-index]
- --> tests/unit_tests/controllers/console/auth/test_data_source_bearer_auth.py:133:16
-ERROR Cannot index into `Mapping[str, Any]` [bad-index]
- --> tests/unit_tests/controllers/console/auth/test_data_source_bearer_auth.py:133:25
-ERROR `(dict[str, Any], StartResponse) -> Iterable[bytes]` is not subscriptable [unsupported-operation]
- --> tests/unit_tests/controllers/console/auth/test_data_source_bearer_auth.py:134:16
-ERROR Cannot index into `AsyncIterable[bytes]` [bad-index]
- --> tests/unit_tests/controllers/console/auth/test_data_source_bearer_auth.py:134:16
-ERROR Cannot index into `AsyncIterable[str]` [bad-index]
- --> tests/unit_tests/controllers/console/auth/test_data_source_bearer_auth.py:134:16
-ERROR Cannot index into `Iterator[bytes]` [bad-index]
- --> tests/unit_tests/controllers/console/auth/test_data_source_bearer_auth.py:134:16
-ERROR Cannot index into `Iterator[str]` [bad-index]
- --> tests/unit_tests/controllers/console/auth/test_data_source_bearer_auth.py:134:16
-ERROR Cannot index into `Response` [bad-index]
- --> tests/unit_tests/controllers/console/auth/test_data_source_bearer_auth.py:134:16
-ERROR Cannot index into `Mapping[str, Any]` [bad-index]
- --> tests/unit_tests/controllers/console/auth/test_data_source_bearer_auth.py:134:25
-ERROR `(dict[str, Any], StartResponse) -> Iterable[bytes]` is not subscriptable [unsupported-operation]
- --> tests/unit_tests/controllers/console/auth/test_data_source_bearer_auth.py:207:16
-ERROR Cannot index into `AsyncIterable[bytes]` [bad-index]
- --> tests/unit_tests/controllers/console/auth/test_data_source_bearer_auth.py:207:16
-ERROR Cannot index into `AsyncIterable[str]` [bad-index]
- --> tests/unit_tests/controllers/console/auth/test_data_source_bearer_auth.py:207:16
-ERROR Cannot index into `Iterator[bytes]` [bad-index]
- --> tests/unit_tests/controllers/console/auth/test_data_source_bearer_auth.py:207:16
-ERROR Cannot index into `Iterator[str]` [bad-index]
- --> tests/unit_tests/controllers/console/auth/test_data_source_bearer_auth.py:207:16
-ERROR Cannot index into `Response` [bad-index]
- --> tests/unit_tests/controllers/console/auth/test_data_source_bearer_auth.py:207:16
-ERROR Cannot index into `AsyncIterable[bytes]` [bad-index]
- --> tests/unit_tests/controllers/console/auth/test_data_source_bearer_auth.py:207:16
-ERROR Cannot index into `AsyncIterable[str]` [bad-index]
- --> tests/unit_tests/controllers/console/auth/test_data_source_bearer_auth.py:207:16
-ERROR Cannot index into `Iterator[bytes]` [bad-index]
- --> tests/unit_tests/controllers/console/auth/test_data_source_bearer_auth.py:207:16
-ERROR Cannot index into `Iterator[str]` [bad-index]
- --> tests/unit_tests/controllers/console/auth/test_data_source_bearer_auth.py:207:16
-ERROR Cannot index into `Response` [bad-index]
- --> tests/unit_tests/controllers/console/auth/test_data_source_bearer_auth.py:207:16
-ERROR Cannot index into `bytes` [bad-index]
- --> tests/unit_tests/controllers/console/auth/test_data_source_bearer_auth.py:207:16
-ERROR Cannot index into `int` [bad-index]
- --> tests/unit_tests/controllers/console/auth/test_data_source_bearer_auth.py:207:16
-ERROR Cannot index into `list[Any]` [bad-index]
- --> tests/unit_tests/controllers/console/auth/test_data_source_bearer_auth.py:207:16
-ERROR Cannot index into `str` [bad-index]
- --> tests/unit_tests/controllers/console/auth/test_data_source_bearer_auth.py:207:16
-ERROR Cannot index into `Mapping[str, Any]` [bad-index]
- --> tests/unit_tests/controllers/console/auth/test_data_source_bearer_auth.py:207:25
-ERROR `(dict[str, Any], StartResponse) -> Iterable[bytes]` is not subscriptable [unsupported-operation]
- --> tests/unit_tests/controllers/console/auth/test_data_source_bearer_auth.py:208:16
-ERROR Cannot index into `AsyncIterable[bytes]` [bad-index]
- --> tests/unit_tests/controllers/console/auth/test_data_source_bearer_auth.py:208:16
-ERROR Cannot index into `AsyncIterable[str]` [bad-index]
- --> tests/unit_tests/controllers/console/auth/test_data_source_bearer_auth.py:208:16
-ERROR Cannot index into `Iterator[bytes]` [bad-index]
- --> tests/unit_tests/controllers/console/auth/test_data_source_bearer_auth.py:208:16
-ERROR Cannot index into `Iterator[str]` [bad-index]
- --> tests/unit_tests/controllers/console/auth/test_data_source_bearer_auth.py:208:16
-ERROR Cannot index into `Response` [bad-index]
- --> tests/unit_tests/controllers/console/auth/test_data_source_bearer_auth.py:208:16
-ERROR Cannot index into `Mapping[str, Any]` [bad-index]
- --> tests/unit_tests/controllers/console/auth/test_data_source_bearer_auth.py:208:25
ERROR `None` is not subscriptable [unsupported-operation]
--> tests/unit_tests/controllers/console/auth/test_login_logout.py:467:16
ERROR `None` is not subscriptable [unsupported-operation]
@@ -2125,46 +1951,6 @@
--> tests/unit_tests/controllers/console/auth/test_oauth.py:206:9
ERROR Object of class `RequestError` has no attribute `response` [missing-attribute]
--> tests/unit_tests/controllers/console/auth/test_oauth.py:207:9
-ERROR `(dict[str, Any], StartResponse) -> Iterable[bytes]` is not subscriptable [unsupported-operation]
- --> tests/unit_tests/controllers/console/auth/test_oauth_server.py:124:16
-ERROR Cannot index into `AsyncIterable[bytes]` [bad-index]
- --> tests/unit_tests/controllers/console/auth/test_oauth_server.py:124:16
-ERROR Cannot index into `AsyncIterable[str]` [bad-index]
- --> tests/unit_tests/controllers/console/auth/test_oauth_server.py:124:16
-ERROR Cannot index into `Iterator[bytes]` [bad-index]
- --> tests/unit_tests/controllers/console/auth/test_oauth_server.py:124:16
-ERROR Cannot index into `Iterator[str]` [bad-index]
- --> tests/unit_tests/controllers/console/auth/test_oauth_server.py:124:16
-ERROR Cannot index into `Response` [bad-index]
- --> tests/unit_tests/controllers/console/auth/test_oauth_server.py:124:16
-ERROR Cannot index into `bytes` [bad-index]
- --> tests/unit_tests/controllers/console/auth/test_oauth_server.py:124:16
-ERROR Cannot index into `list[Any]` [bad-index]
- --> tests/unit_tests/controllers/console/auth/test_oauth_server.py:124:16
-ERROR Cannot index into `str` [bad-index]
- --> tests/unit_tests/controllers/console/auth/test_oauth_server.py:124:16
-ERROR Cannot index into `tuple[AsyncIterable[bytes] | AsyncIterable[str] | Iterator[bytes] | Iterator[str] | Mapping[str, Any] | Response | bytes | list[Any] | str, Headers | Mapping[str, list[str] | str | tuple[str, ...]] | Sequence[tuple[str, list[str] | str | tuple[str, ...]]]]` [bad-index]
- --> tests/unit_tests/controllers/console/auth/test_oauth_server.py:124:16
-ERROR Cannot index into `tuple[AsyncIterable[bytes] | AsyncIterable[str] | Iterator[bytes] | Iterator[str] | Mapping[str, Any] | Response | bytes | list[Any] | str, int]` [bad-index]
- --> tests/unit_tests/controllers/console/auth/test_oauth_server.py:124:16
-ERROR Cannot index into `tuple[AsyncIterable[bytes] | AsyncIterable[str] | Iterator[bytes] | Iterator[str] | Mapping[str, Any] | Response | bytes | list[Any] | str, int, Headers | Mapping[str, list[str] | str | tuple[str, ...]] | Sequence[tuple[str, list[str] | str | tuple[str, ...]]]]` [bad-index]
- --> tests/unit_tests/controllers/console/auth/test_oauth_server.py:124:16
-ERROR Cannot index into `Response` [bad-index]
- --> tests/unit_tests/controllers/console/auth/test_oauth_server.py:328:16
-ERROR Cannot index into `Response` [bad-index]
- --> tests/unit_tests/controllers/console/auth/test_oauth_server.py:329:16
-ERROR Cannot index into `Response` [bad-index]
- --> tests/unit_tests/controllers/console/auth/test_oauth_server.py:330:16
-ERROR `None` is not subscriptable [unsupported-operation]
- --> tests/unit_tests/controllers/console/auth/test_oauth_server.py:343:16
-ERROR `None` is not subscriptable [unsupported-operation]
- --> tests/unit_tests/controllers/console/auth/test_oauth_server.py:361:16
-ERROR `None` is not subscriptable [unsupported-operation]
- --> tests/unit_tests/controllers/console/auth/test_oauth_server.py:379:16
-ERROR `None` is not subscriptable [unsupported-operation]
- --> tests/unit_tests/controllers/console/auth/test_oauth_server.py:397:16
-ERROR `None` is not subscriptable [unsupported-operation]
- --> tests/unit_tests/controllers/console/auth/test_oauth_server.py:417:16
ERROR Object of class `tuple` has no attribute `json` [missing-attribute]
--> tests/unit_tests/controllers/console/auth/test_token_refresh.py:74:16
ERROR Type `Response` is not iterable [not-iterable]
|
There was a problem hiding this comment.
Pull request overview
Copilot reviewed 13 out of 13 changed files in this pull request and generated 2 comments.
💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.
api/tests/test_containers_integration_tests/controllers/console/helpers.py
Show resolved
Hide resolved
api/tests/test_containers_integration_tests/controllers/console/auth/test_oauth_server.py
Show resolved
Hide resolved
finally |
Pyrefly Diffbase → PR--- /tmp/pyrefly_base.txt 2026-03-23 12:11:38.323955568 +0000
+++ /tmp/pyrefly_pr.txt 2026-03-23 12:11:29.413892951 +0000
@@ -794,6 +794,8 @@
ERROR Argument `Literal['normal']` is not assignable to parameter `status` with type `SQLCoreOperations[TenantStatus] | TenantStatus` in function `models.account.Tenant.__init__` [bad-argument-type]
--> tests/test_containers_integration_tests/controllers/console/app/test_chat_conversation_status_count_api.py:33:48
ERROR Argument `Literal['normal']` is not assignable to parameter `status` with type `SQLCoreOperations[TenantStatus] | TenantStatus` in function `models.account.Tenant.__init__` [bad-argument-type]
+ --> tests/test_containers_integration_tests/controllers/console/helpers.py:40:48
+ERROR Argument `Literal['normal']` is not assignable to parameter `status` with type `SQLCoreOperations[TenantStatus] | TenantStatus` in function `models.account.Tenant.__init__` [bad-argument-type]
--> tests/test_containers_integration_tests/core/app/layers/test_pause_state_persist_layer.py:97:20
ERROR Argument `Literal['active']` is not assignable to parameter `status` with type `AccountStatus | SQLCoreOperations[AccountStatus]` in function `models.account.Account.__init__` [bad-argument-type]
--> tests/test_containers_integration_tests/core/app/layers/test_pause_state_persist_layer.py:106:20
@@ -1807,18 +1809,6 @@
--> tests/unit_tests/controllers/console/app/test_workflow.py:26:40
ERROR Argument `SimpleNamespace` is not assignable to parameter `workflow` with type `Workflow` in function `controllers.console.app.workflow._parse_file` [bad-argument-type]
--> tests/unit_tests/controllers/console/app/test_workflow.py:44:42
-ERROR Object of class `NoneType` has no attribute `status_code` [missing-attribute]
- --> tests/unit_tests/controllers/console/app/test_workflow_draft_variable.py:164:16
-ERROR Object of class `NoneType` has no attribute `status_code` [missing-attribute]
- --> tests/unit_tests/controllers/console/app/test_workflow_draft_variable.py:202:16
-ERROR `None` is not subscriptable [unsupported-operation]
- --> tests/unit_tests/controllers/console/app/test_workflow_draft_variable.py:211:16
-ERROR `None` is not subscriptable [unsupported-operation]
- --> tests/unit_tests/controllers/console/app/test_workflow_draft_variable.py:235:16
-ERROR Object of class `NoneType` has no attribute `status_code` [missing-attribute]
- --> tests/unit_tests/controllers/console/app/test_workflow_draft_variable.py:245:16
-ERROR Object of class `NoneType` has no attribute `status_code` [missing-attribute]
- --> tests/unit_tests/controllers/console/app/test_workflow_draft_variable.py:263:16
ERROR Type `(dict[str, Any], StartResponse) -> Iterable[bytes]` is not iterable [not-iterable]
--> tests/unit_tests/controllers/console/app/test_workflow_pause_details_api.py:83:9
ERROR Type `AsyncIterable[bytes]` is not iterable [not-iterable]
@@ -1953,170 +1943,6 @@
--> tests/unit_tests/controllers/console/app/test_wraps.py:47:16
ERROR Cannot set item in `OrderedDict[str, bool | list[str] | str]` [unsupported-operation]
--> tests/unit_tests/controllers/console/app/workflow_draft_variables_test.py:134:47
-ERROR `in` is not supported between `Literal['sources']` and `bytes` [unsupported-operation]
- --> tests/unit_tests/controllers/console/auth/test_data_source_bearer_auth.py:58:16
-ERROR `in` is not supported between `Literal['sources']` and `(dict[str, Any], StartResponse) -> Iterable[bytes]` [not-iterable]
- --> tests/unit_tests/controllers/console/auth/test_data_source_bearer_auth.py:58:16
-ERROR `in` is not supported between `Literal['sources']` and `AsyncIterable[bytes]` [not-iterable]
- --> tests/unit_tests/controllers/console/auth/test_data_source_bearer_auth.py:58:16
-ERROR `in` is not supported between `Literal['sources']` and `AsyncIterable[str]` [not-iterable]
- --> tests/unit_tests/controllers/console/auth/test_data_source_bearer_auth.py:58:16
-ERROR `in` is not supported between `Literal['sources']` and `Iterator[bytes]` [unsupported-operation]
- --> tests/unit_tests/controllers/console/auth/test_data_source_bearer_auth.py:58:16
-ERROR `in` is not supported between `Literal['sources']` and `Response` [not-iterable]
- --> tests/unit_tests/controllers/console/auth/test_data_source_bearer_auth.py:58:16
-ERROR `(dict[str, Any], StartResponse) -> Iterable[bytes]` is not subscriptable [unsupported-operation]
- --> tests/unit_tests/controllers/console/auth/test_data_source_bearer_auth.py:59:20
-ERROR Cannot index into `AsyncIterable[bytes]` [bad-index]
- --> tests/unit_tests/controllers/console/auth/test_data_source_bearer_auth.py:59:20
-ERROR Cannot index into `AsyncIterable[str]` [bad-index]
- --> tests/unit_tests/controllers/console/auth/test_data_source_bearer_auth.py:59:20
-ERROR Cannot index into `Iterator[bytes]` [bad-index]
- --> tests/unit_tests/controllers/console/auth/test_data_source_bearer_auth.py:59:20
-ERROR Cannot index into `Iterator[str]` [bad-index]
- --> tests/unit_tests/controllers/console/auth/test_data_source_bearer_auth.py:59:20
-ERROR Cannot index into `Response` [bad-index]
- --> tests/unit_tests/controllers/console/auth/test_data_source_bearer_auth.py:59:20
-ERROR Cannot index into `bytes` [bad-index]
- --> tests/unit_tests/controllers/console/auth/test_data_source_bearer_auth.py:59:20
-ERROR Cannot index into `list[Any]` [bad-index]
- --> tests/unit_tests/controllers/console/auth/test_data_source_bearer_auth.py:59:20
-ERROR Cannot index into `str` [bad-index]
- --> tests/unit_tests/controllers/console/auth/test_data_source_bearer_auth.py:59:20
-ERROR Cannot index into `tuple[AsyncIterable[bytes] | AsyncIterable[str] | Iterator[bytes] | Iterator[str] | Mapping[str, Any] | Response | bytes | list[Any] | str, Headers | Mapping[str, list[str] | str | tuple[str, ...]] | Sequence[tuple[str, list[str] | str | tuple[str, ...]]]]` [bad-index]
- --> tests/unit_tests/controllers/console/auth/test_data_source_bearer_auth.py:59:20
-ERROR Cannot index into `tuple[AsyncIterable[bytes] | AsyncIterable[str] | Iterator[bytes] | Iterator[str] | Mapping[str, Any] | Response | bytes | list[Any] | str, int]` [bad-index]
- --> tests/unit_tests/controllers/console/auth/test_data_source_bearer_auth.py:59:20
-ERROR Cannot index into `tuple[AsyncIterable[bytes] | AsyncIterable[str] | Iterator[bytes] | Iterator[str] | Mapping[str, Any] | Response | bytes | list[Any] | str, int, Headers | Mapping[str, list[str] | str | tuple[str, ...]] | Sequence[tuple[str, list[str] | str | tuple[str, ...]]]]` [bad-index]
- --> tests/unit_tests/controllers/console/auth/test_data_source_bearer_auth.py:59:20
-ERROR `in` is not supported between `Literal['sources']` and `bytes` [unsupported-operation]
- --> tests/unit_tests/controllers/console/auth/test_data_source_bearer_auth.py:90:16
-ERROR `in` is not supported between `Literal['sources']` and `(dict[str, Any], StartResponse) -> Iterable[bytes]` [not-iterable]
- --> tests/unit_tests/controllers/console/auth/test_data_source_bearer_auth.py:90:16
-ERROR `in` is not supported between `Literal['sources']` and `AsyncIterable[bytes]` [not-iterable]
- --> tests/unit_tests/controllers/console/auth/test_data_source_bearer_auth.py:90:16
-ERROR `in` is not supported between `Literal['sources']` and `AsyncIterable[str]` [not-iterable]
- --> tests/unit_tests/controllers/console/auth/test_data_source_bearer_auth.py:90:16
-ERROR `in` is not supported between `Literal['sources']` and `Iterator[bytes]` [unsupported-operation]
- --> tests/unit_tests/controllers/console/auth/test_data_source_bearer_auth.py:90:16
-ERROR `in` is not supported between `Literal['sources']` and `Response` [not-iterable]
- --> tests/unit_tests/controllers/console/auth/test_data_source_bearer_auth.py:90:16
-ERROR `(dict[str, Any], StartResponse) -> Iterable[bytes]` is not subscriptable [unsupported-operation]
- --> tests/unit_tests/controllers/console/auth/test_data_source_bearer_auth.py:91:20
-ERROR Cannot index into `AsyncIterable[bytes]` [bad-index]
- --> tests/unit_tests/controllers/console/auth/test_data_source_bearer_auth.py:91:20
-ERROR Cannot index into `AsyncIterable[str]` [bad-index]
- --> tests/unit_tests/controllers/console/auth/test_data_source_bearer_auth.py:91:20
-ERROR Cannot index into `Iterator[bytes]` [bad-index]
- --> tests/unit_tests/controllers/console/auth/test_data_source_bearer_auth.py:91:20
-ERROR Cannot index into `Iterator[str]` [bad-index]
- --> tests/unit_tests/controllers/console/auth/test_data_source_bearer_auth.py:91:20
-ERROR Cannot index into `Response` [bad-index]
- --> tests/unit_tests/controllers/console/auth/test_data_source_bearer_auth.py:91:20
-ERROR Cannot index into `bytes` [bad-index]
- --> tests/unit_tests/controllers/console/auth/test_data_source_bearer_auth.py:91:20
-ERROR Cannot index into `list[Any]` [bad-index]
- --> tests/unit_tests/controllers/console/auth/test_data_source_bearer_auth.py:91:20
-ERROR Cannot index into `str` [bad-index]
- --> tests/unit_tests/controllers/console/auth/test_data_source_bearer_auth.py:91:20
-ERROR Cannot index into `tuple[AsyncIterable[bytes] | AsyncIterable[str] | Iterator[bytes] | Iterator[str] | Mapping[str, Any] | Response | bytes | list[Any] | str, Headers | Mapping[str, list[str] | str | tuple[str, ...]] | Sequence[tuple[str, list[str] | str | tuple[str, ...]]]]` [bad-index]
- --> tests/unit_tests/controllers/console/auth/test_data_source_bearer_auth.py:91:20
-ERROR Cannot index into `tuple[AsyncIterable[bytes] | AsyncIterable[str] | Iterator[bytes] | Iterator[str] | Mapping[str, Any] | Response | bytes | list[Any] | str, int]` [bad-index]
- --> tests/unit_tests/controllers/console/auth/test_data_source_bearer_auth.py:91:20
-ERROR Cannot index into `tuple[AsyncIterable[bytes] | AsyncIterable[str] | Iterator[bytes] | Iterator[str] | Mapping[str, Any] | Response | bytes | list[Any] | str, int, Headers | Mapping[str, list[str] | str | tuple[str, ...]] | Sequence[tuple[str, list[str] | str | tuple[str, ...]]]]` [bad-index]
- --> tests/unit_tests/controllers/console/auth/test_data_source_bearer_auth.py:91:20
-ERROR `(dict[str, Any], StartResponse) -> Iterable[bytes]` is not subscriptable [unsupported-operation]
- --> tests/unit_tests/controllers/console/auth/test_data_source_bearer_auth.py:133:16
-ERROR Cannot index into `AsyncIterable[bytes]` [bad-index]
- --> tests/unit_tests/controllers/console/auth/test_data_source_bearer_auth.py:133:16
-ERROR Cannot index into `AsyncIterable[str]` [bad-index]
- --> tests/unit_tests/controllers/console/auth/test_data_source_bearer_auth.py:133:16
-ERROR Cannot index into `Iterator[bytes]` [bad-index]
- --> tests/unit_tests/controllers/console/auth/test_data_source_bearer_auth.py:133:16
-ERROR Cannot index into `Iterator[str]` [bad-index]
- --> tests/unit_tests/controllers/console/auth/test_data_source_bearer_auth.py:133:16
-ERROR Cannot index into `Response` [bad-index]
- --> tests/unit_tests/controllers/console/auth/test_data_source_bearer_auth.py:133:16
-ERROR Cannot index into `AsyncIterable[bytes]` [bad-index]
- --> tests/unit_tests/controllers/console/auth/test_data_source_bearer_auth.py:133:16
-ERROR Cannot index into `AsyncIterable[str]` [bad-index]
- --> tests/unit_tests/controllers/console/auth/test_data_source_bearer_auth.py:133:16
-ERROR Cannot index into `Iterator[bytes]` [bad-index]
- --> tests/unit_tests/controllers/console/auth/test_data_source_bearer_auth.py:133:16
-ERROR Cannot index into `Iterator[str]` [bad-index]
- --> tests/unit_tests/controllers/console/auth/test_data_source_bearer_auth.py:133:16
-ERROR Cannot index into `Response` [bad-index]
- --> tests/unit_tests/controllers/console/auth/test_data_source_bearer_auth.py:133:16
-ERROR Cannot index into `bytes` [bad-index]
- --> tests/unit_tests/controllers/console/auth/test_data_source_bearer_auth.py:133:16
-ERROR Cannot index into `int` [bad-index]
- --> tests/unit_tests/controllers/console/auth/test_data_source_bearer_auth.py:133:16
-ERROR Cannot index into `list[Any]` [bad-index]
- --> tests/unit_tests/controllers/console/auth/test_data_source_bearer_auth.py:133:16
-ERROR Cannot index into `str` [bad-index]
- --> tests/unit_tests/controllers/console/auth/test_data_source_bearer_auth.py:133:16
-ERROR Cannot index into `Mapping[str, Any]` [bad-index]
- --> tests/unit_tests/controllers/console/auth/test_data_source_bearer_auth.py:133:25
-ERROR `(dict[str, Any], StartResponse) -> Iterable[bytes]` is not subscriptable [unsupported-operation]
- --> tests/unit_tests/controllers/console/auth/test_data_source_bearer_auth.py:134:16
-ERROR Cannot index into `AsyncIterable[bytes]` [bad-index]
- --> tests/unit_tests/controllers/console/auth/test_data_source_bearer_auth.py:134:16
-ERROR Cannot index into `AsyncIterable[str]` [bad-index]
- --> tests/unit_tests/controllers/console/auth/test_data_source_bearer_auth.py:134:16
-ERROR Cannot index into `Iterator[bytes]` [bad-index]
- --> tests/unit_tests/controllers/console/auth/test_data_source_bearer_auth.py:134:16
-ERROR Cannot index into `Iterator[str]` [bad-index]
- --> tests/unit_tests/controllers/console/auth/test_data_source_bearer_auth.py:134:16
-ERROR Cannot index into `Response` [bad-index]
- --> tests/unit_tests/controllers/console/auth/test_data_source_bearer_auth.py:134:16
-ERROR Cannot index into `Mapping[str, Any]` [bad-index]
- --> tests/unit_tests/controllers/console/auth/test_data_source_bearer_auth.py:134:25
-ERROR `(dict[str, Any], StartResponse) -> Iterable[bytes]` is not subscriptable [unsupported-operation]
- --> tests/unit_tests/controllers/console/auth/test_data_source_bearer_auth.py:207:16
-ERROR Cannot index into `AsyncIterable[bytes]` [bad-index]
- --> tests/unit_tests/controllers/console/auth/test_data_source_bearer_auth.py:207:16
-ERROR Cannot index into `AsyncIterable[str]` [bad-index]
- --> tests/unit_tests/controllers/console/auth/test_data_source_bearer_auth.py:207:16
-ERROR Cannot index into `Iterator[bytes]` [bad-index]
- --> tests/unit_tests/controllers/console/auth/test_data_source_bearer_auth.py:207:16
-ERROR Cannot index into `Iterator[str]` [bad-index]
- --> tests/unit_tests/controllers/console/auth/test_data_source_bearer_auth.py:207:16
-ERROR Cannot index into `Response` [bad-index]
- --> tests/unit_tests/controllers/console/auth/test_data_source_bearer_auth.py:207:16
-ERROR Cannot index into `AsyncIterable[bytes]` [bad-index]
- --> tests/unit_tests/controllers/console/auth/test_data_source_bearer_auth.py:207:16
-ERROR Cannot index into `AsyncIterable[str]` [bad-index]
- --> tests/unit_tests/controllers/console/auth/test_data_source_bearer_auth.py:207:16
-ERROR Cannot index into `Iterator[bytes]` [bad-index]
- --> tests/unit_tests/controllers/console/auth/test_data_source_bearer_auth.py:207:16
-ERROR Cannot index into `Iterator[str]` [bad-index]
- --> tests/unit_tests/controllers/console/auth/test_data_source_bearer_auth.py:207:16
-ERROR Cannot index into `Response` [bad-index]
- --> tests/unit_tests/controllers/console/auth/test_data_source_bearer_auth.py:207:16
-ERROR Cannot index into `bytes` [bad-index]
- --> tests/unit_tests/controllers/console/auth/test_data_source_bearer_auth.py:207:16
-ERROR Cannot index into `int` [bad-index]
- --> tests/unit_tests/controllers/console/auth/test_data_source_bearer_auth.py:207:16
-ERROR Cannot index into `list[Any]` [bad-index]
- --> tests/unit_tests/controllers/console/auth/test_data_source_bearer_auth.py:207:16
-ERROR Cannot index into `str` [bad-index]
- --> tests/unit_tests/controllers/console/auth/test_data_source_bearer_auth.py:207:16
-ERROR Cannot index into `Mapping[str, Any]` [bad-index]
- --> tests/unit_tests/controllers/console/auth/test_data_source_bearer_auth.py:207:25
-ERROR `(dict[str, Any], StartResponse) -> Iterable[bytes]` is not subscriptable [unsupported-operation]
- --> tests/unit_tests/controllers/console/auth/test_data_source_bearer_auth.py:208:16
-ERROR Cannot index into `AsyncIterable[bytes]` [bad-index]
- --> tests/unit_tests/controllers/console/auth/test_data_source_bearer_auth.py:208:16
-ERROR Cannot index into `AsyncIterable[str]` [bad-index]
- --> tests/unit_tests/controllers/console/auth/test_data_source_bearer_auth.py:208:16
-ERROR Cannot index into `Iterator[bytes]` [bad-index]
- --> tests/unit_tests/controllers/console/auth/test_data_source_bearer_auth.py:208:16
-ERROR Cannot index into `Iterator[str]` [bad-index]
- --> tests/unit_tests/controllers/console/auth/test_data_source_bearer_auth.py:208:16
-ERROR Cannot index into `Response` [bad-index]
- --> tests/unit_tests/controllers/console/auth/test_data_source_bearer_auth.py:208:16
-ERROR Cannot index into `Mapping[str, Any]` [bad-index]
- --> tests/unit_tests/controllers/console/auth/test_data_source_bearer_auth.py:208:25
ERROR `None` is not subscriptable [unsupported-operation]
--> tests/unit_tests/controllers/console/auth/test_login_logout.py:467:16
ERROR `None` is not subscriptable [unsupported-operation]
@@ -2125,46 +1951,6 @@
--> tests/unit_tests/controllers/console/auth/test_oauth.py:206:9
ERROR Object of class `RequestError` has no attribute `response` [missing-attribute]
--> tests/unit_tests/controllers/console/auth/test_oauth.py:207:9
-ERROR `(dict[str, Any], StartResponse) -> Iterable[bytes]` is not subscriptable [unsupported-operation]
- --> tests/unit_tests/controllers/console/auth/test_oauth_server.py:124:16
-ERROR Cannot index into `AsyncIterable[bytes]` [bad-index]
- --> tests/unit_tests/controllers/console/auth/test_oauth_server.py:124:16
-ERROR Cannot index into `AsyncIterable[str]` [bad-index]
- --> tests/unit_tests/controllers/console/auth/test_oauth_server.py:124:16
-ERROR Cannot index into `Iterator[bytes]` [bad-index]
- --> tests/unit_tests/controllers/console/auth/test_oauth_server.py:124:16
-ERROR Cannot index into `Iterator[str]` [bad-index]
- --> tests/unit_tests/controllers/console/auth/test_oauth_server.py:124:16
-ERROR Cannot index into `Response` [bad-index]
- --> tests/unit_tests/controllers/console/auth/test_oauth_server.py:124:16
-ERROR Cannot index into `bytes` [bad-index]
- --> tests/unit_tests/controllers/console/auth/test_oauth_server.py:124:16
-ERROR Cannot index into `list[Any]` [bad-index]
- --> tests/unit_tests/controllers/console/auth/test_oauth_server.py:124:16
-ERROR Cannot index into `str` [bad-index]
- --> tests/unit_tests/controllers/console/auth/test_oauth_server.py:124:16
-ERROR Cannot index into `tuple[AsyncIterable[bytes] | AsyncIterable[str] | Iterator[bytes] | Iterator[str] | Mapping[str, Any] | Response | bytes | list[Any] | str, Headers | Mapping[str, list[str] | str | tuple[str, ...]] | Sequence[tuple[str, list[str] | str | tuple[str, ...]]]]` [bad-index]
- --> tests/unit_tests/controllers/console/auth/test_oauth_server.py:124:16
-ERROR Cannot index into `tuple[AsyncIterable[bytes] | AsyncIterable[str] | Iterator[bytes] | Iterator[str] | Mapping[str, Any] | Response | bytes | list[Any] | str, int]` [bad-index]
- --> tests/unit_tests/controllers/console/auth/test_oauth_server.py:124:16
-ERROR Cannot index into `tuple[AsyncIterable[bytes] | AsyncIterable[str] | Iterator[bytes] | Iterator[str] | Mapping[str, Any] | Response | bytes | list[Any] | str, int, Headers | Mapping[str, list[str] | str | tuple[str, ...]] | Sequence[tuple[str, list[str] | str | tuple[str, ...]]]]` [bad-index]
- --> tests/unit_tests/controllers/console/auth/test_oauth_server.py:124:16
-ERROR Cannot index into `Response` [bad-index]
- --> tests/unit_tests/controllers/console/auth/test_oauth_server.py:328:16
-ERROR Cannot index into `Response` [bad-index]
- --> tests/unit_tests/controllers/console/auth/test_oauth_server.py:329:16
-ERROR Cannot index into `Response` [bad-index]
- --> tests/unit_tests/controllers/console/auth/test_oauth_server.py:330:16
-ERROR `None` is not subscriptable [unsupported-operation]
- --> tests/unit_tests/controllers/console/auth/test_oauth_server.py:343:16
-ERROR `None` is not subscriptable [unsupported-operation]
- --> tests/unit_tests/controllers/console/auth/test_oauth_server.py:361:16
-ERROR `None` is not subscriptable [unsupported-operation]
- --> tests/unit_tests/controllers/console/auth/test_oauth_server.py:379:16
-ERROR `None` is not subscriptable [unsupported-operation]
- --> tests/unit_tests/controllers/console/auth/test_oauth_server.py:397:16
-ERROR `None` is not subscriptable [unsupported-operation]
- --> tests/unit_tests/controllers/console/auth/test_oauth_server.py:417:16
ERROR Object of class `tuple` has no attribute `json` [missing-attribute]
--> tests/unit_tests/controllers/console/auth/test_token_refresh.py:74:16
ERROR Type `Response` is not iterable [not-iterable]
|
Pyrefly Diffbase → PR--- /tmp/pyrefly_base.txt 2026-03-23 12:13:15.850993806 +0000
+++ /tmp/pyrefly_pr.txt 2026-03-23 12:13:06.988924958 +0000
@@ -794,6 +794,8 @@
ERROR Argument `Literal['normal']` is not assignable to parameter `status` with type `SQLCoreOperations[TenantStatus] | TenantStatus` in function `models.account.Tenant.__init__` [bad-argument-type]
--> tests/test_containers_integration_tests/controllers/console/app/test_chat_conversation_status_count_api.py:33:48
ERROR Argument `Literal['normal']` is not assignable to parameter `status` with type `SQLCoreOperations[TenantStatus] | TenantStatus` in function `models.account.Tenant.__init__` [bad-argument-type]
+ --> tests/test_containers_integration_tests/controllers/console/helpers.py:40:48
+ERROR Argument `Literal['normal']` is not assignable to parameter `status` with type `SQLCoreOperations[TenantStatus] | TenantStatus` in function `models.account.Tenant.__init__` [bad-argument-type]
--> tests/test_containers_integration_tests/core/app/layers/test_pause_state_persist_layer.py:97:20
ERROR Argument `Literal['active']` is not assignable to parameter `status` with type `AccountStatus | SQLCoreOperations[AccountStatus]` in function `models.account.Account.__init__` [bad-argument-type]
--> tests/test_containers_integration_tests/core/app/layers/test_pause_state_persist_layer.py:106:20
@@ -1807,18 +1809,6 @@
--> tests/unit_tests/controllers/console/app/test_workflow.py:26:40
ERROR Argument `SimpleNamespace` is not assignable to parameter `workflow` with type `Workflow` in function `controllers.console.app.workflow._parse_file` [bad-argument-type]
--> tests/unit_tests/controllers/console/app/test_workflow.py:44:42
-ERROR Object of class `NoneType` has no attribute `status_code` [missing-attribute]
- --> tests/unit_tests/controllers/console/app/test_workflow_draft_variable.py:164:16
-ERROR Object of class `NoneType` has no attribute `status_code` [missing-attribute]
- --> tests/unit_tests/controllers/console/app/test_workflow_draft_variable.py:202:16
-ERROR `None` is not subscriptable [unsupported-operation]
- --> tests/unit_tests/controllers/console/app/test_workflow_draft_variable.py:211:16
-ERROR `None` is not subscriptable [unsupported-operation]
- --> tests/unit_tests/controllers/console/app/test_workflow_draft_variable.py:235:16
-ERROR Object of class `NoneType` has no attribute `status_code` [missing-attribute]
- --> tests/unit_tests/controllers/console/app/test_workflow_draft_variable.py:245:16
-ERROR Object of class `NoneType` has no attribute `status_code` [missing-attribute]
- --> tests/unit_tests/controllers/console/app/test_workflow_draft_variable.py:263:16
ERROR Type `(dict[str, Any], StartResponse) -> Iterable[bytes]` is not iterable [not-iterable]
--> tests/unit_tests/controllers/console/app/test_workflow_pause_details_api.py:83:9
ERROR Type `AsyncIterable[bytes]` is not iterable [not-iterable]
@@ -1953,170 +1943,6 @@
--> tests/unit_tests/controllers/console/app/test_wraps.py:47:16
ERROR Cannot set item in `OrderedDict[str, bool | list[str] | str]` [unsupported-operation]
--> tests/unit_tests/controllers/console/app/workflow_draft_variables_test.py:134:47
-ERROR `in` is not supported between `Literal['sources']` and `bytes` [unsupported-operation]
- --> tests/unit_tests/controllers/console/auth/test_data_source_bearer_auth.py:58:16
-ERROR `in` is not supported between `Literal['sources']` and `(dict[str, Any], StartResponse) -> Iterable[bytes]` [not-iterable]
- --> tests/unit_tests/controllers/console/auth/test_data_source_bearer_auth.py:58:16
-ERROR `in` is not supported between `Literal['sources']` and `AsyncIterable[bytes]` [not-iterable]
- --> tests/unit_tests/controllers/console/auth/test_data_source_bearer_auth.py:58:16
-ERROR `in` is not supported between `Literal['sources']` and `AsyncIterable[str]` [not-iterable]
- --> tests/unit_tests/controllers/console/auth/test_data_source_bearer_auth.py:58:16
-ERROR `in` is not supported between `Literal['sources']` and `Iterator[bytes]` [unsupported-operation]
- --> tests/unit_tests/controllers/console/auth/test_data_source_bearer_auth.py:58:16
-ERROR `in` is not supported between `Literal['sources']` and `Response` [not-iterable]
- --> tests/unit_tests/controllers/console/auth/test_data_source_bearer_auth.py:58:16
-ERROR `(dict[str, Any], StartResponse) -> Iterable[bytes]` is not subscriptable [unsupported-operation]
- --> tests/unit_tests/controllers/console/auth/test_data_source_bearer_auth.py:59:20
-ERROR Cannot index into `AsyncIterable[bytes]` [bad-index]
- --> tests/unit_tests/controllers/console/auth/test_data_source_bearer_auth.py:59:20
-ERROR Cannot index into `AsyncIterable[str]` [bad-index]
- --> tests/unit_tests/controllers/console/auth/test_data_source_bearer_auth.py:59:20
-ERROR Cannot index into `Iterator[bytes]` [bad-index]
- --> tests/unit_tests/controllers/console/auth/test_data_source_bearer_auth.py:59:20
-ERROR Cannot index into `Iterator[str]` [bad-index]
- --> tests/unit_tests/controllers/console/auth/test_data_source_bearer_auth.py:59:20
-ERROR Cannot index into `Response` [bad-index]
- --> tests/unit_tests/controllers/console/auth/test_data_source_bearer_auth.py:59:20
-ERROR Cannot index into `bytes` [bad-index]
- --> tests/unit_tests/controllers/console/auth/test_data_source_bearer_auth.py:59:20
-ERROR Cannot index into `list[Any]` [bad-index]
- --> tests/unit_tests/controllers/console/auth/test_data_source_bearer_auth.py:59:20
-ERROR Cannot index into `str` [bad-index]
- --> tests/unit_tests/controllers/console/auth/test_data_source_bearer_auth.py:59:20
-ERROR Cannot index into `tuple[AsyncIterable[bytes] | AsyncIterable[str] | Iterator[bytes] | Iterator[str] | Mapping[str, Any] | Response | bytes | list[Any] | str, Headers | Mapping[str, list[str] | str | tuple[str, ...]] | Sequence[tuple[str, list[str] | str | tuple[str, ...]]]]` [bad-index]
- --> tests/unit_tests/controllers/console/auth/test_data_source_bearer_auth.py:59:20
-ERROR Cannot index into `tuple[AsyncIterable[bytes] | AsyncIterable[str] | Iterator[bytes] | Iterator[str] | Mapping[str, Any] | Response | bytes | list[Any] | str, int]` [bad-index]
- --> tests/unit_tests/controllers/console/auth/test_data_source_bearer_auth.py:59:20
-ERROR Cannot index into `tuple[AsyncIterable[bytes] | AsyncIterable[str] | Iterator[bytes] | Iterator[str] | Mapping[str, Any] | Response | bytes | list[Any] | str, int, Headers | Mapping[str, list[str] | str | tuple[str, ...]] | Sequence[tuple[str, list[str] | str | tuple[str, ...]]]]` [bad-index]
- --> tests/unit_tests/controllers/console/auth/test_data_source_bearer_auth.py:59:20
-ERROR `in` is not supported between `Literal['sources']` and `bytes` [unsupported-operation]
- --> tests/unit_tests/controllers/console/auth/test_data_source_bearer_auth.py:90:16
-ERROR `in` is not supported between `Literal['sources']` and `(dict[str, Any], StartResponse) -> Iterable[bytes]` [not-iterable]
- --> tests/unit_tests/controllers/console/auth/test_data_source_bearer_auth.py:90:16
-ERROR `in` is not supported between `Literal['sources']` and `AsyncIterable[bytes]` [not-iterable]
- --> tests/unit_tests/controllers/console/auth/test_data_source_bearer_auth.py:90:16
-ERROR `in` is not supported between `Literal['sources']` and `AsyncIterable[str]` [not-iterable]
- --> tests/unit_tests/controllers/console/auth/test_data_source_bearer_auth.py:90:16
-ERROR `in` is not supported between `Literal['sources']` and `Iterator[bytes]` [unsupported-operation]
- --> tests/unit_tests/controllers/console/auth/test_data_source_bearer_auth.py:90:16
-ERROR `in` is not supported between `Literal['sources']` and `Response` [not-iterable]
- --> tests/unit_tests/controllers/console/auth/test_data_source_bearer_auth.py:90:16
-ERROR `(dict[str, Any], StartResponse) -> Iterable[bytes]` is not subscriptable [unsupported-operation]
- --> tests/unit_tests/controllers/console/auth/test_data_source_bearer_auth.py:91:20
-ERROR Cannot index into `AsyncIterable[bytes]` [bad-index]
- --> tests/unit_tests/controllers/console/auth/test_data_source_bearer_auth.py:91:20
-ERROR Cannot index into `AsyncIterable[str]` [bad-index]
- --> tests/unit_tests/controllers/console/auth/test_data_source_bearer_auth.py:91:20
-ERROR Cannot index into `Iterator[bytes]` [bad-index]
- --> tests/unit_tests/controllers/console/auth/test_data_source_bearer_auth.py:91:20
-ERROR Cannot index into `Iterator[str]` [bad-index]
- --> tests/unit_tests/controllers/console/auth/test_data_source_bearer_auth.py:91:20
-ERROR Cannot index into `Response` [bad-index]
- --> tests/unit_tests/controllers/console/auth/test_data_source_bearer_auth.py:91:20
-ERROR Cannot index into `bytes` [bad-index]
- --> tests/unit_tests/controllers/console/auth/test_data_source_bearer_auth.py:91:20
-ERROR Cannot index into `list[Any]` [bad-index]
- --> tests/unit_tests/controllers/console/auth/test_data_source_bearer_auth.py:91:20
-ERROR Cannot index into `str` [bad-index]
- --> tests/unit_tests/controllers/console/auth/test_data_source_bearer_auth.py:91:20
-ERROR Cannot index into `tuple[AsyncIterable[bytes] | AsyncIterable[str] | Iterator[bytes] | Iterator[str] | Mapping[str, Any] | Response | bytes | list[Any] | str, Headers | Mapping[str, list[str] | str | tuple[str, ...]] | Sequence[tuple[str, list[str] | str | tuple[str, ...]]]]` [bad-index]
- --> tests/unit_tests/controllers/console/auth/test_data_source_bearer_auth.py:91:20
-ERROR Cannot index into `tuple[AsyncIterable[bytes] | AsyncIterable[str] | Iterator[bytes] | Iterator[str] | Mapping[str, Any] | Response | bytes | list[Any] | str, int]` [bad-index]
- --> tests/unit_tests/controllers/console/auth/test_data_source_bearer_auth.py:91:20
-ERROR Cannot index into `tuple[AsyncIterable[bytes] | AsyncIterable[str] | Iterator[bytes] | Iterator[str] | Mapping[str, Any] | Response | bytes | list[Any] | str, int, Headers | Mapping[str, list[str] | str | tuple[str, ...]] | Sequence[tuple[str, list[str] | str | tuple[str, ...]]]]` [bad-index]
- --> tests/unit_tests/controllers/console/auth/test_data_source_bearer_auth.py:91:20
-ERROR `(dict[str, Any], StartResponse) -> Iterable[bytes]` is not subscriptable [unsupported-operation]
- --> tests/unit_tests/controllers/console/auth/test_data_source_bearer_auth.py:133:16
-ERROR Cannot index into `AsyncIterable[bytes]` [bad-index]
- --> tests/unit_tests/controllers/console/auth/test_data_source_bearer_auth.py:133:16
-ERROR Cannot index into `AsyncIterable[str]` [bad-index]
- --> tests/unit_tests/controllers/console/auth/test_data_source_bearer_auth.py:133:16
-ERROR Cannot index into `Iterator[bytes]` [bad-index]
- --> tests/unit_tests/controllers/console/auth/test_data_source_bearer_auth.py:133:16
-ERROR Cannot index into `Iterator[str]` [bad-index]
- --> tests/unit_tests/controllers/console/auth/test_data_source_bearer_auth.py:133:16
-ERROR Cannot index into `Response` [bad-index]
- --> tests/unit_tests/controllers/console/auth/test_data_source_bearer_auth.py:133:16
-ERROR Cannot index into `AsyncIterable[bytes]` [bad-index]
- --> tests/unit_tests/controllers/console/auth/test_data_source_bearer_auth.py:133:16
-ERROR Cannot index into `AsyncIterable[str]` [bad-index]
- --> tests/unit_tests/controllers/console/auth/test_data_source_bearer_auth.py:133:16
-ERROR Cannot index into `Iterator[bytes]` [bad-index]
- --> tests/unit_tests/controllers/console/auth/test_data_source_bearer_auth.py:133:16
-ERROR Cannot index into `Iterator[str]` [bad-index]
- --> tests/unit_tests/controllers/console/auth/test_data_source_bearer_auth.py:133:16
-ERROR Cannot index into `Response` [bad-index]
- --> tests/unit_tests/controllers/console/auth/test_data_source_bearer_auth.py:133:16
-ERROR Cannot index into `bytes` [bad-index]
- --> tests/unit_tests/controllers/console/auth/test_data_source_bearer_auth.py:133:16
-ERROR Cannot index into `int` [bad-index]
- --> tests/unit_tests/controllers/console/auth/test_data_source_bearer_auth.py:133:16
-ERROR Cannot index into `list[Any]` [bad-index]
- --> tests/unit_tests/controllers/console/auth/test_data_source_bearer_auth.py:133:16
-ERROR Cannot index into `str` [bad-index]
- --> tests/unit_tests/controllers/console/auth/test_data_source_bearer_auth.py:133:16
-ERROR Cannot index into `Mapping[str, Any]` [bad-index]
- --> tests/unit_tests/controllers/console/auth/test_data_source_bearer_auth.py:133:25
-ERROR `(dict[str, Any], StartResponse) -> Iterable[bytes]` is not subscriptable [unsupported-operation]
- --> tests/unit_tests/controllers/console/auth/test_data_source_bearer_auth.py:134:16
-ERROR Cannot index into `AsyncIterable[bytes]` [bad-index]
- --> tests/unit_tests/controllers/console/auth/test_data_source_bearer_auth.py:134:16
-ERROR Cannot index into `AsyncIterable[str]` [bad-index]
- --> tests/unit_tests/controllers/console/auth/test_data_source_bearer_auth.py:134:16
-ERROR Cannot index into `Iterator[bytes]` [bad-index]
- --> tests/unit_tests/controllers/console/auth/test_data_source_bearer_auth.py:134:16
-ERROR Cannot index into `Iterator[str]` [bad-index]
- --> tests/unit_tests/controllers/console/auth/test_data_source_bearer_auth.py:134:16
-ERROR Cannot index into `Response` [bad-index]
- --> tests/unit_tests/controllers/console/auth/test_data_source_bearer_auth.py:134:16
-ERROR Cannot index into `Mapping[str, Any]` [bad-index]
- --> tests/unit_tests/controllers/console/auth/test_data_source_bearer_auth.py:134:25
-ERROR `(dict[str, Any], StartResponse) -> Iterable[bytes]` is not subscriptable [unsupported-operation]
- --> tests/unit_tests/controllers/console/auth/test_data_source_bearer_auth.py:207:16
-ERROR Cannot index into `AsyncIterable[bytes]` [bad-index]
- --> tests/unit_tests/controllers/console/auth/test_data_source_bearer_auth.py:207:16
-ERROR Cannot index into `AsyncIterable[str]` [bad-index]
- --> tests/unit_tests/controllers/console/auth/test_data_source_bearer_auth.py:207:16
-ERROR Cannot index into `Iterator[bytes]` [bad-index]
- --> tests/unit_tests/controllers/console/auth/test_data_source_bearer_auth.py:207:16
-ERROR Cannot index into `Iterator[str]` [bad-index]
- --> tests/unit_tests/controllers/console/auth/test_data_source_bearer_auth.py:207:16
-ERROR Cannot index into `Response` [bad-index]
- --> tests/unit_tests/controllers/console/auth/test_data_source_bearer_auth.py:207:16
-ERROR Cannot index into `AsyncIterable[bytes]` [bad-index]
- --> tests/unit_tests/controllers/console/auth/test_data_source_bearer_auth.py:207:16
-ERROR Cannot index into `AsyncIterable[str]` [bad-index]
- --> tests/unit_tests/controllers/console/auth/test_data_source_bearer_auth.py:207:16
-ERROR Cannot index into `Iterator[bytes]` [bad-index]
- --> tests/unit_tests/controllers/console/auth/test_data_source_bearer_auth.py:207:16
-ERROR Cannot index into `Iterator[str]` [bad-index]
- --> tests/unit_tests/controllers/console/auth/test_data_source_bearer_auth.py:207:16
-ERROR Cannot index into `Response` [bad-index]
- --> tests/unit_tests/controllers/console/auth/test_data_source_bearer_auth.py:207:16
-ERROR Cannot index into `bytes` [bad-index]
- --> tests/unit_tests/controllers/console/auth/test_data_source_bearer_auth.py:207:16
-ERROR Cannot index into `int` [bad-index]
- --> tests/unit_tests/controllers/console/auth/test_data_source_bearer_auth.py:207:16
-ERROR Cannot index into `list[Any]` [bad-index]
- --> tests/unit_tests/controllers/console/auth/test_data_source_bearer_auth.py:207:16
-ERROR Cannot index into `str` [bad-index]
- --> tests/unit_tests/controllers/console/auth/test_data_source_bearer_auth.py:207:16
-ERROR Cannot index into `Mapping[str, Any]` [bad-index]
- --> tests/unit_tests/controllers/console/auth/test_data_source_bearer_auth.py:207:25
-ERROR `(dict[str, Any], StartResponse) -> Iterable[bytes]` is not subscriptable [unsupported-operation]
- --> tests/unit_tests/controllers/console/auth/test_data_source_bearer_auth.py:208:16
-ERROR Cannot index into `AsyncIterable[bytes]` [bad-index]
- --> tests/unit_tests/controllers/console/auth/test_data_source_bearer_auth.py:208:16
-ERROR Cannot index into `AsyncIterable[str]` [bad-index]
- --> tests/unit_tests/controllers/console/auth/test_data_source_bearer_auth.py:208:16
-ERROR Cannot index into `Iterator[bytes]` [bad-index]
- --> tests/unit_tests/controllers/console/auth/test_data_source_bearer_auth.py:208:16
-ERROR Cannot index into `Iterator[str]` [bad-index]
- --> tests/unit_tests/controllers/console/auth/test_data_source_bearer_auth.py:208:16
-ERROR Cannot index into `Response` [bad-index]
- --> tests/unit_tests/controllers/console/auth/test_data_source_bearer_auth.py:208:16
-ERROR Cannot index into `Mapping[str, Any]` [bad-index]
- --> tests/unit_tests/controllers/console/auth/test_data_source_bearer_auth.py:208:25
ERROR `None` is not subscriptable [unsupported-operation]
--> tests/unit_tests/controllers/console/auth/test_login_logout.py:467:16
ERROR `None` is not subscriptable [unsupported-operation]
@@ -2125,46 +1951,6 @@
--> tests/unit_tests/controllers/console/auth/test_oauth.py:206:9
ERROR Object of class `RequestError` has no attribute `response` [missing-attribute]
--> tests/unit_tests/controllers/console/auth/test_oauth.py:207:9
-ERROR `(dict[str, Any], StartResponse) -> Iterable[bytes]` is not subscriptable [unsupported-operation]
- --> tests/unit_tests/controllers/console/auth/test_oauth_server.py:124:16
-ERROR Cannot index into `AsyncIterable[bytes]` [bad-index]
- --> tests/unit_tests/controllers/console/auth/test_oauth_server.py:124:16
-ERROR Cannot index into `AsyncIterable[str]` [bad-index]
- --> tests/unit_tests/controllers/console/auth/test_oauth_server.py:124:16
-ERROR Cannot index into `Iterator[bytes]` [bad-index]
- --> tests/unit_tests/controllers/console/auth/test_oauth_server.py:124:16
-ERROR Cannot index into `Iterator[str]` [bad-index]
- --> tests/unit_tests/controllers/console/auth/test_oauth_server.py:124:16
-ERROR Cannot index into `Response` [bad-index]
- --> tests/unit_tests/controllers/console/auth/test_oauth_server.py:124:16
-ERROR Cannot index into `bytes` [bad-index]
- --> tests/unit_tests/controllers/console/auth/test_oauth_server.py:124:16
-ERROR Cannot index into `list[Any]` [bad-index]
- --> tests/unit_tests/controllers/console/auth/test_oauth_server.py:124:16
-ERROR Cannot index into `str` [bad-index]
- --> tests/unit_tests/controllers/console/auth/test_oauth_server.py:124:16
-ERROR Cannot index into `tuple[AsyncIterable[bytes] | AsyncIterable[str] | Iterator[bytes] | Iterator[str] | Mapping[str, Any] | Response | bytes | list[Any] | str, Headers | Mapping[str, list[str] | str | tuple[str, ...]] | Sequence[tuple[str, list[str] | str | tuple[str, ...]]]]` [bad-index]
- --> tests/unit_tests/controllers/console/auth/test_oauth_server.py:124:16
-ERROR Cannot index into `tuple[AsyncIterable[bytes] | AsyncIterable[str] | Iterator[bytes] | Iterator[str] | Mapping[str, Any] | Response | bytes | list[Any] | str, int]` [bad-index]
- --> tests/unit_tests/controllers/console/auth/test_oauth_server.py:124:16
-ERROR Cannot index into `tuple[AsyncIterable[bytes] | AsyncIterable[str] | Iterator[bytes] | Iterator[str] | Mapping[str, Any] | Response | bytes | list[Any] | str, int, Headers | Mapping[str, list[str] | str | tuple[str, ...]] | Sequence[tuple[str, list[str] | str | tuple[str, ...]]]]` [bad-index]
- --> tests/unit_tests/controllers/console/auth/test_oauth_server.py:124:16
-ERROR Cannot index into `Response` [bad-index]
- --> tests/unit_tests/controllers/console/auth/test_oauth_server.py:328:16
-ERROR Cannot index into `Response` [bad-index]
- --> tests/unit_tests/controllers/console/auth/test_oauth_server.py:329:16
-ERROR Cannot index into `Response` [bad-index]
- --> tests/unit_tests/controllers/console/auth/test_oauth_server.py:330:16
-ERROR `None` is not subscriptable [unsupported-operation]
- --> tests/unit_tests/controllers/console/auth/test_oauth_server.py:343:16
-ERROR `None` is not subscriptable [unsupported-operation]
- --> tests/unit_tests/controllers/console/auth/test_oauth_server.py:361:16
-ERROR `None` is not subscriptable [unsupported-operation]
- --> tests/unit_tests/controllers/console/auth/test_oauth_server.py:379:16
-ERROR `None` is not subscriptable [unsupported-operation]
- --> tests/unit_tests/controllers/console/auth/test_oauth_server.py:397:16
-ERROR `None` is not subscriptable [unsupported-operation]
- --> tests/unit_tests/controllers/console/auth/test_oauth_server.py:417:16
ERROR Object of class `tuple` has no attribute `json` [missing-attribute]
--> tests/unit_tests/controllers/console/auth/test_token_refresh.py:74:16
ERROR Type `Response` is not iterable [not-iterable]
|
Important
Fixes #<issue number>.Summary
fix #33891
for reviewer: I port the flaky mock based test to real container based test so no more mock problems.
the diff is huge but only test updates.
Screenshots
Checklist
make lintandmake type-check(backend) andcd web && npx lint-staged(frontend) to appease the lint gods