Skip to content

armgit / dify

Public Imported from GitHub
0

Build Agentic workflows, RAG pipelines, with rich AI model and tool support on one collaborative workspace. Deploy on cloud, VPC, or self-hosted, so teams move from prototype to production without rebuilding the stack.

refactor(api): enable strict typing for OpenAPI controller tests (#43931)

Eddy ZHANG608723d4344f
diff --git a/api/tests/unit_tests/controllers/openapi/test_app_list_query.py b/api/tests/unit_tests/controllers/openapi/test_app_list_query.py
index b6376a08b9b..c6559e11684 100644
--- a/api/tests/unit_tests/controllers/openapi/test_app_list_query.py
+++ b/api/tests/unit_tests/controllers/openapi/test_app_list_query.py
@@ -22,7 +22,7 @@ from ._mode_constants import LISTABLE_MODES, NON_LISTABLE_MODES
WS_ID = "00000000-0000-0000-0000-000000000001"
-def test_defaults():
+def test_defaults() -> None:
q = AppListQuery.model_validate({"workspace_id": WS_ID})
assert q.workspace_id == WS_ID
assert q.page == 1
@@ -31,31 +31,31 @@ def test_defaults():
assert q.name is None
-def test_workspace_id_required():
+def test_workspace_id_required() -> None:
with pytest.raises(ValidationError):
AppListQuery.model_validate({})
-def test_page_must_be_positive():
+def test_page_must_be_positive() -> None:
with pytest.raises(ValidationError):
AppListQuery.model_validate({"workspace_id": WS_ID, "page": 0})
with pytest.raises(ValidationError):
AppListQuery.model_validate({"workspace_id": WS_ID, "page": -1})
-def test_page_rejects_non_integer_string():
+def test_page_rejects_non_integer_string() -> None:
with pytest.raises(ValidationError):
AppListQuery.model_validate({"workspace_id": WS_ID, "page": "abc"})
-def test_limit_must_be_positive():
+def test_limit_must_be_positive() -> None:
with pytest.raises(ValidationError):
AppListQuery.model_validate({"workspace_id": WS_ID, "limit": 0})
with pytest.raises(ValidationError):
AppListQuery.model_validate({"workspace_id": WS_ID, "limit": -1})
-def test_limit_caps_at_max_page_limit():
+def test_limit_caps_at_max_page_limit() -> None:
# Boundary accepts.
q = AppListQuery.model_validate({"workspace_id": WS_ID, "limit": MAX_PAGE_LIMIT})
assert q.limit == MAX_PAGE_LIMIT
@@ -66,32 +66,32 @@ def test_limit_caps_at_max_page_limit():
@pytest.mark.parametrize("mode", LISTABLE_MODES)
-def test_mode_accepts_listable_app_types(mode: str):
+def test_mode_accepts_listable_app_types(mode: str) -> None:
q = AppListQuery.model_validate({"workspace_id": WS_ID, "mode": mode})
assert q.mode is not None
assert q.mode.value == mode
-def test_mode_rejects_unknown_value():
+def test_mode_rejects_unknown_value() -> None:
with pytest.raises(ValidationError):
AppListQuery.model_validate({"workspace_id": WS_ID, "mode": "not-a-mode"})
@pytest.mark.parametrize("mode", NON_LISTABLE_MODES)
-def test_mode_rejects_non_listable_app_modes(mode: str):
+def test_mode_rejects_non_listable_app_modes(mode: str) -> None:
"""rag-pipeline (a knowledge Pipeline), channel (unused) and agent (roster-owned)
are AppMode members but not standalone listable apps — the `app` face rejects them."""
with pytest.raises(ValidationError):
AppListQuery.model_validate({"workspace_id": WS_ID, "mode": mode})
-def test_name_length_capped():
+def test_name_length_capped() -> None:
AppListQuery.model_validate({"workspace_id": WS_ID, "name": "x" * 200})
with pytest.raises(ValidationError):
AppListQuery.model_validate({"workspace_id": WS_ID, "name": "x" * 201})
-def test_all_fields_accept_valid_values():
+def test_all_fields_accept_valid_values() -> None:
"""Pin the happy-path acceptance for every field in one place."""
q = AppListQuery.model_validate(
{
@@ -110,6 +110,6 @@ def test_all_fields_accept_valid_values():
assert q.name == "search"
-def test_max_page_limit_is_accepted_by_the_app_service():
+def test_max_page_limit_is_accepted_by_the_app_service() -> None:
# The catalog advertises MAX_PAGE_LIMIT; the service model must not reject it.
assert AppListParams(limit=MAX_PAGE_LIMIT).limit == MAX_PAGE_LIMIT
diff --git a/api/tests/unit_tests/controllers/openapi/test_audit_app_run.py b/api/tests/unit_tests/controllers/openapi/test_audit_app_run.py
index 6e2b909e494..805fb3d848a 100644
--- a/api/tests/unit_tests/controllers/openapi/test_audit_app_run.py
+++ b/api/tests/unit_tests/controllers/openapi/test_audit_app_run.py
@@ -16,11 +16,11 @@ class _AuditLogRecord(Protocol):
surface: str
-def test_event_constant():
+def test_event_constant() -> None:
assert EVENT_APP_RUN_OPENAPI == "app.run.openapi"
-def test_emit_app_run_logs_with_audit_extra(caplog: pytest.LogCaptureFixture):
+def test_emit_app_run_logs_with_audit_extra(caplog: pytest.LogCaptureFixture) -> None:
with caplog.at_level(logging.INFO, logger="controllers.openapi._audit"):
emit_app_run(
app_id="app1",
diff --git a/api/tests/unit_tests/controllers/openapi/test_cors.py b/api/tests/unit_tests/controllers/openapi/test_cors.py
index fbeffa5ffea..f96d8d3af5c 100644
--- a/api/tests/unit_tests/controllers/openapi/test_cors.py
+++ b/api/tests/unit_tests/controllers/openapi/test_cors.py
@@ -33,7 +33,7 @@ def _make_app(allowed_origins: list[str], blueprint_name: str) -> Flask:
@api.route("/_health")
class _Health(Resource):
- def get(self):
+ def get(self) -> dict[str, bool]:
return {"ok": True}
CORS(
@@ -52,12 +52,12 @@ def _make_app(allowed_origins: list[str], blueprint_name: str) -> Flask:
return app
-def test_default_openapi_cors_allowlist_is_empty():
+def test_default_openapi_cors_allowlist_is_empty() -> None:
"""Default config admits no cross-origin until operator opts in."""
assert dify_config.OPENAPI_CORS_ALLOW_ORIGINS == []
-def test_preflight_allowed_origin_returns_cors_headers():
+def test_preflight_allowed_origin_returns_cors_headers() -> None:
app = _make_app(["https://app.example.com"], "openapi_t1")
client = app.test_client()
response = client.options(
@@ -72,7 +72,7 @@ def test_preflight_allowed_origin_returns_cors_headers():
assert response.headers.get("Access-Control-Max-Age") == str(OPENAPI_MAX_AGE_SECONDS)
-def test_preflight_disallowed_origin_omits_cors_headers():
+def test_preflight_disallowed_origin_omits_cors_headers() -> None:
app = _make_app(["https://app.example.com"], "openapi_t2")
client = app.test_client()
response = client.options(
@@ -87,7 +87,7 @@ def test_preflight_disallowed_origin_omits_cors_headers():
assert "Access-Control-Allow-Origin" not in response.headers
-def test_preflight_with_default_empty_allowlist_omits_cors_headers():
+def test_preflight_with_default_empty_allowlist_omits_cors_headers() -> None:
app = _make_app([], "openapi_t3")
client = app.test_client()
response = client.options(
@@ -101,7 +101,7 @@ def test_preflight_with_default_empty_allowlist_omits_cors_headers():
assert "Access-Control-Allow-Origin" not in response.headers
-def test_same_origin_request_succeeds_without_origin_header():
+def test_same_origin_request_succeeds_without_origin_header() -> None:
app = _make_app(["https://app.example.com"], "openapi_t4")
client = app.test_client()
# Browsers don't send Origin on same-origin GETs.
@@ -111,7 +111,7 @@ def test_same_origin_request_succeeds_without_origin_header():
assert response.get_json() == {"ok": True}
-def test_authorization_header_is_in_allow_headers():
+def test_authorization_header_is_in_allow_headers() -> None:
"""Bearer-authed routes need Authorization in the preflight response."""
app = _make_app(["https://app.example.com"], "openapi_t5")
client = app.test_client()
@@ -128,7 +128,7 @@ def test_authorization_header_is_in_allow_headers():
assert "authorization" in allow_headers
-def test_catalog_fingerprint_header_is_exposed():
+def test_catalog_fingerprint_header_is_exposed() -> None:
app = _make_app(["https://app.example.com"], "openapi_t6")
client = app.test_client()
response = client.get("/openapi/v1/_health", headers={"Origin": "https://app.example.com"})
@@ -137,7 +137,7 @@ def test_catalog_fingerprint_header_is_exposed():
assert HEADER_NAME_CATALOG in expose_headers
-def test_catalog_fingerprint_header_is_allowed_on_requests():
+def test_catalog_fingerprint_header_is_allowed_on_requests() -> None:
"""Every guarded route needs the fingerprint on the request, so preflight must admit it."""
app = _make_app(["https://app.example.com"], "openapi_t7")
client = app.test_client()
diff --git a/api/tests/unit_tests/controllers/openapi/test_device_code.py b/api/tests/unit_tests/controllers/openapi/test_device_code.py
index 821a4238050..da33292ed2c 100644
--- a/api/tests/unit_tests/controllers/openapi/test_device_code.py
+++ b/api/tests/unit_tests/controllers/openapi/test_device_code.py
@@ -26,22 +26,25 @@ def openapi_app() -> Flask:
return app
-def test_openapi_route_registered(openapi_app: Flask):
+def test_openapi_route_registered(openapi_app: Flask) -> None:
rules = {r.rule for r in openapi_app.url_map.iter_rules()}
assert "/openapi/v1/oauth/device/code" in rules
-def test_route_dispatches_to_class(openapi_app: Flask):
+def test_route_dispatches_to_class(openapi_app: Flask) -> None:
rule = next(r for r in openapi_app.url_map.iter_rules() if r.rule == "/openapi/v1/oauth/device/code")
- assert openapi_app.view_functions[rule.endpoint].view_class is OAuthDeviceCodeApi
+ view = openapi_app.view_functions[rule.endpoint]
+ assert hasattr(view, "view_class")
+ assert view.view_class is OAuthDeviceCodeApi
-def test_route_accepts_post(openapi_app: Flask):
+def test_route_accepts_post(openapi_app: Flask) -> None:
rule = next(r for r in openapi_app.url_map.iter_rules() if r.rule == "/openapi/v1/oauth/device/code")
+ assert rule.methods is not None
assert "POST" in rule.methods
-def test_known_client_ids_default_includes_difyctl():
+def test_known_client_ids_default_includes_difyctl() -> None:
from configs import dify_config
assert "difyctl" in dify_config.OPENAPI_KNOWN_CLIENT_IDS
diff --git a/api/tests/unit_tests/controllers/openapi/test_device_lookup.py b/api/tests/unit_tests/controllers/openapi/test_device_lookup.py
index 5907378a733..5af852fbd54 100644
--- a/api/tests/unit_tests/controllers/openapi/test_device_lookup.py
+++ b/api/tests/unit_tests/controllers/openapi/test_device_lookup.py
@@ -21,16 +21,19 @@ def openapi_app() -> Flask:
return app
-def test_openapi_route_registered(openapi_app: Flask):
+def test_openapi_route_registered(openapi_app: Flask) -> None:
rules = {r.rule for r in openapi_app.url_map.iter_rules()}
assert "/openapi/v1/oauth/device/lookup" in rules
-def test_route_dispatches_to_class(openapi_app: Flask):
+def test_route_dispatches_to_class(openapi_app: Flask) -> None:
rule = next(r for r in openapi_app.url_map.iter_rules() if r.rule == "/openapi/v1/oauth/device/lookup")
- assert openapi_app.view_functions[rule.endpoint].view_class is OAuthDeviceLookupApi
+ view = openapi_app.view_functions[rule.endpoint]
+ assert hasattr(view, "view_class")
+ assert view.view_class is OAuthDeviceLookupApi
-def test_route_accepts_get(openapi_app: Flask):
+def test_route_accepts_get(openapi_app: Flask) -> None:
rule = next(r for r in openapi_app.url_map.iter_rules() if r.rule == "/openapi/v1/oauth/device/lookup")
+ assert rule.methods is not None
assert "GET" in rule.methods
diff --git a/api/tests/unit_tests/controllers/openapi/test_device_sso.py b/api/tests/unit_tests/controllers/openapi/test_device_sso.py
index 0d5029cd173..fd0ebfb62e4 100644
--- a/api/tests/unit_tests/controllers/openapi/test_device_sso.py
+++ b/api/tests/unit_tests/controllers/openapi/test_device_sso.py
@@ -7,6 +7,7 @@ import pytest
from flask import Flask
from flask.views import MethodView
from werkzeug.exceptions import ServiceUnavailable
+from werkzeug.routing import Rule
from controllers.openapi import bp as openapi_bp
from controllers.openapi.oauth_device_sso import (
@@ -30,46 +31,46 @@ def openapi_app() -> Flask:
return app
-def _rule(app: Flask, path: str):
+def _rule(app: Flask, path: str) -> Rule:
return next(r for r in app.url_map.iter_rules() if r.rule == path)
-def test_sso_initiate_registered(openapi_app: Flask):
+def test_sso_initiate_registered(openapi_app: Flask) -> None:
rules = {r.rule for r in openapi_app.url_map.iter_rules()}
assert "/openapi/v1/oauth/device/sso-initiate" in rules
-def test_sso_complete_registered(openapi_app: Flask):
+def test_sso_complete_registered(openapi_app: Flask) -> None:
rules = {r.rule for r in openapi_app.url_map.iter_rules()}
assert "/openapi/v1/oauth/device/sso-complete" in rules
-def test_approval_context_registered(openapi_app: Flask):
+def test_approval_context_registered(openapi_app: Flask) -> None:
rules = {r.rule for r in openapi_app.url_map.iter_rules()}
assert "/openapi/v1/oauth/device/approval-context" in rules
-def test_approve_external_registered(openapi_app: Flask):
+def test_approve_external_registered(openapi_app: Flask) -> None:
rules = {r.rule for r in openapi_app.url_map.iter_rules()}
assert "/openapi/v1/oauth/device/approve-external" in rules
-def test_sso_initiate_dispatches_to_function(openapi_app: Flask):
+def test_sso_initiate_dispatches_to_function(openapi_app: Flask) -> None:
rule = _rule(openapi_app, "/openapi/v1/oauth/device/sso-initiate")
assert openapi_app.view_functions[rule.endpoint] is sso_initiate
-def test_sso_complete_dispatches_to_function(openapi_app: Flask):
+def test_sso_complete_dispatches_to_function(openapi_app: Flask) -> None:
rule = _rule(openapi_app, "/openapi/v1/oauth/device/sso-complete")
assert openapi_app.view_functions[rule.endpoint] is sso_complete
-def test_approval_context_dispatches_to_function(openapi_app: Flask):
+def test_approval_context_dispatches_to_function(openapi_app: Flask) -> None:
rule = _rule(openapi_app, "/openapi/v1/oauth/device/approval-context")
assert openapi_app.view_functions[rule.endpoint] is approval_context
-def test_approve_external_dispatches_to_function(openapi_app: Flask):
+def test_approve_external_dispatches_to_function(openapi_app: Flask) -> None:
rule = _rule(openapi_app, "/openapi/v1/oauth/device/approve-external")
assert openapi_app.view_functions[rule.endpoint] is approve_external
@@ -84,7 +85,7 @@ def test_unknown_external_approval_outcome_is_retryable() -> None:
# ---------------------------------------------------------------------------
-def test_device_error_redirect_builds_relative_location():
+def test_device_error_redirect_builds_relative_location() -> None:
from controllers.openapi import oauth_device_sso
app = Flask(__name__)
@@ -97,7 +98,7 @@ def test_device_error_redirect_builds_relative_location():
assert "user_code=ABCD-1234" in loc
-def test_device_error_redirect_clamps_unknown_code():
+def test_device_error_redirect_clamps_unknown_code() -> None:
from controllers.openapi import oauth_device_sso
app = Flask(__name__)
@@ -106,7 +107,7 @@ def test_device_error_redirect_clamps_unknown_code():
assert "sso_error=sso_failed" in resp.headers["Location"]
-def test_device_error_redirect_keeps_email_special_case():
+def test_device_error_redirect_keeps_email_special_case() -> None:
from controllers.openapi import oauth_device_sso
app = Flask(__name__)
@@ -115,7 +116,7 @@ def test_device_error_redirect_keeps_email_special_case():
assert "sso_error=email_belongs_to_dify_account" in resp.headers["Location"]
-def test_device_error_redirect_omits_empty_user_code():
+def test_device_error_redirect_omits_empty_user_code() -> None:
from controllers.openapi import oauth_device_sso
app = Flask(__name__)
@@ -124,7 +125,7 @@ def test_device_error_redirect_omits_empty_user_code():
assert "user_code=" not in resp.headers["Location"]
-def test_device_error_redirect_drops_malformed_user_code():
+def test_device_error_redirect_drops_malformed_user_code() -> None:
from controllers.openapi import oauth_device_sso
app = Flask(__name__)
@@ -142,7 +143,9 @@ def test_device_error_redirect_drops_malformed_user_code():
class _CompletionService:
- def complete_sso(self, _context, *, inbound_error, inbound_user_code, assertion):
+ def complete_sso(
+ self, _context: object, *, inbound_error: str | None, inbound_user_code: str | None, assertion: str | None
+ ) -> DeviceSSOCompletion:
_ = assertion
if inbound_error:
return DeviceSSOCompletion(error_code=inbound_error, user_code=inbound_user_code)
@@ -179,7 +182,7 @@ def admitted_sso(monkeypatch: pytest.MonkeyPatch) -> None:
_install_application_services(monkeypatch, valid_enterprise_license=True)
-def test_sso_complete_relays_inbound_sso_error(openapi_app, admitted_sso):
+def test_sso_complete_relays_inbound_sso_error(openapi_app: Flask, admitted_sso: None) -> None:
_ = admitted_sso
client = openapi_app.test_client()
resp = client.get(
@@ -193,7 +196,7 @@ def test_sso_complete_relays_inbound_sso_error(openapi_app, admitted_sso):
assert "user_code=ABCD-1234" in loc
-def test_sso_complete_missing_assertion_redirects_generic(openapi_app, admitted_sso):
+def test_sso_complete_missing_assertion_redirects_generic(openapi_app: Flask, admitted_sso: None) -> None:
_ = admitted_sso
client = openapi_app.test_client()
resp = client.get("/openapi/v1/oauth/device/sso-complete", follow_redirects=False)
@@ -201,7 +204,7 @@ def test_sso_complete_missing_assertion_redirects_generic(openapi_app, admitted_
assert "sso_error=sso_failed" in resp.headers["Location"]
-def test_sso_admission_rejects_inactive_license(openapi_app, monkeypatch: pytest.MonkeyPatch):
+def test_sso_admission_rejects_inactive_license(openapi_app: Flask, monkeypatch: pytest.MonkeyPatch) -> None:
_install_application_services(monkeypatch, valid_enterprise_license=False)
response = openapi_app.test_client().get("/openapi/v1/oauth/device/sso-complete")
diff --git a/api/tests/unit_tests/controllers/openapi/test_device_token.py b/api/tests/unit_tests/controllers/openapi/test_device_token.py
index 8b83068856e..abb28604523 100644
--- a/api/tests/unit_tests/controllers/openapi/test_device_token.py
+++ b/api/tests/unit_tests/controllers/openapi/test_device_token.py
@@ -21,11 +21,13 @@ def openapi_app() -> Flask:
return app
-def test_openapi_route_registered(openapi_app: Flask):
+def test_openapi_route_registered(openapi_app: Flask) -> None:
rules = {r.rule for r in openapi_app.url_map.iter_rules()}
assert "/openapi/v1/oauth/device/token" in rules
-def test_route_dispatches_to_class(openapi_app: Flask):
+def test_route_dispatches_to_class(openapi_app: Flask) -> None:
rule = next(r for r in openapi_app.url_map.iter_rules() if r.rule == "/openapi/v1/oauth/device/token")
- assert openapi_app.view_functions[rule.endpoint].view_class is OAuthDeviceTokenApi
+ view = openapi_app.view_functions[rule.endpoint]
+ assert hasattr(view, "view_class")
+ assert view.view_class is OAuthDeviceTokenApi
diff --git a/api/tests/unit_tests/controllers/openapi/test_health.py b/api/tests/unit_tests/controllers/openapi/test_health.py
index f59e4d9a970..83064692bb5 100644
--- a/api/tests/unit_tests/controllers/openapi/test_health.py
+++ b/api/tests/unit_tests/controllers/openapi/test_health.py
@@ -18,7 +18,7 @@ def app() -> Flask:
return app
-def test_health_returns_ok(app: Flask):
+def test_health_returns_ok(app: Flask) -> None:
client = app.test_client()
response = client.get("/openapi/v1/_health")
@@ -26,7 +26,7 @@ def test_health_returns_ok(app: Flask):
assert response.get_json() == {"ok": True}
-def test_health_path_is_under_openapi_v1_prefix(app: Flask):
+def test_health_path_is_under_openapi_v1_prefix(app: Flask) -> None:
client = app.test_client()
assert client.get("/_health").status_code == 404
assert client.get("/v1/_health").status_code == 404
diff --git a/api/tests/unit_tests/controllers/openapi/test_meta_version.py b/api/tests/unit_tests/controllers/openapi/test_meta_version.py
index 9befa1c9551..313f09a0ba6 100644
--- a/api/tests/unit_tests/controllers/openapi/test_meta_version.py
+++ b/api/tests/unit_tests/controllers/openapi/test_meta_version.py
@@ -3,12 +3,13 @@
from __future__ import annotations
import pytest
+from flask import Flask
from enums import DeploymentEdition
from tests.unit_tests.config_override import apply_config_overrides
-def test_version_endpoint_returns_200_without_auth(openapi_app):
+def test_version_endpoint_returns_200_without_auth(openapi_app: Flask) -> None:
client = openapi_app.test_client()
response = client.get("/openapi/v1/_version")
@@ -21,7 +22,7 @@ def test_version_endpoint_returns_200_without_auth(openapi_app):
assert payload["edition"] in {edition.value for edition in DeploymentEdition}
-def test_version_endpoint_ignores_bearer_header(openapi_app):
+def test_version_endpoint_ignores_bearer_header(openapi_app: Flask) -> None:
"""Endpoint is auth-free — a bogus bearer should not break it."""
client = openapi_app.test_client()
response = client.get(
@@ -35,7 +36,7 @@ def test_version_endpoint_ignores_bearer_header(openapi_app):
assert "edition" in payload
-def test_version_endpoint_reflects_edition_config(openapi_app, monkeypatch: pytest.MonkeyPatch):
+def test_version_endpoint_reflects_edition_config(openapi_app: Flask, monkeypatch: pytest.MonkeyPatch) -> None:
apply_config_overrides(monkeypatch, DEPLOYMENT_EDITION=DeploymentEdition.CLOUD)
client = openapi_app.test_client()
@@ -45,7 +46,7 @@ def test_version_endpoint_reflects_edition_config(openapi_app, monkeypatch: pyte
assert response.get_json()["edition"] == "CLOUD"
-def test_version_endpoint_reflects_enterprise_edition(openapi_app, monkeypatch: pytest.MonkeyPatch):
+def test_version_endpoint_reflects_enterprise_edition(openapi_app: Flask, monkeypatch: pytest.MonkeyPatch) -> None:
apply_config_overrides(monkeypatch, DEPLOYMENT_EDITION=DeploymentEdition.ENTERPRISE)
client = openapi_app.test_client()
diff --git a/api/tests/unit_tests/pyrefly.toml b/api/tests/unit_tests/pyrefly.toml
index d024d0e6c3d..ccd28799d73 100644
--- a/api/tests/unit_tests/pyrefly.toml
+++ b/api/tests/unit_tests/pyrefly.toml
@@ -127,29 +127,14 @@ project-excludes = [
"controllers/inner_api/test_runtime_credentials.py",
"controllers/mcp/test_mcp.py",
"controllers/openapi/test_account.py",
- "controllers/openapi/test_app_list_query.py",
- "controllers/openapi/test_app_run_dispatch.py",
"controllers/openapi/test_app_run_rate_limit.py",
"controllers/openapi/test_app_run_streaming.py",
- "controllers/openapi/test_audit_app_run.py",
"controllers/openapi/test_contract.py",
- "controllers/openapi/test_cors.py",
"controllers/openapi/test_device_approve_deny.py",
- "controllers/openapi/test_device_code.py",
- "controllers/openapi/test_device_lookup.py",
- "controllers/openapi/test_device_sso.py",
- "controllers/openapi/test_device_token.py",
"controllers/openapi/test_error_contract.py",
- "controllers/openapi/test_health.py",
"controllers/openapi/test_human_input_form.py",
- "controllers/openapi/test_meta_version.py",
"controllers/openapi/test_models.py",
- "controllers/openapi/test_oauth_sso_claims.py",
- "controllers/openapi/test_oauth_sso_csrf.py",
- "controllers/openapi/test_oauth_sso_host_header.py",
- "controllers/openapi/test_supported_app_type.py",
"controllers/openapi/test_workflow_events_openapi.py",
- "controllers/openapi/test_workspaces.py",
"controllers/openapi/test_workspaces_members.py",
"controllers/service_api/app/test_annotation.py",
"controllers/service_api/app/test_app.py",