Repository navigation
test(api): strictly type login code mail tests - #47080
asukaminato0721 merged 4 commits into
Conversation
There was a problem hiding this comment.
Copilot was unable to review this pull request because the user who requested the review has insufficient remaining quota. Try requesting a review at a lower effort level.
An organization owner can choose the repository organization as the billing source for reviews requested by members with a paid Copilot license. Learn about Copilot code review billing. Review the Copilot code review billing settings.
Pyrefly Diffbase → PR--- /tmp/pyrefly_base.txt 2026-11-27 06:42:16.059288649 +0000
+++ /tmp/pyrefly_pr.txt 2026-11-27 06:42:04.291226985 +0000
@@ -1502,10 +1502,6 @@
--> tests/e2e_tests/containers/tasks/test_mail_change_mail_task.py:50:20
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/e2e_tests/containers/tasks/test_mail_change_mail_task.py:58:20
-ERROR Argument `str | None` is not assignable to parameter `to` with type `str` in function `celery.app.task.Task.__call__` [bad-argument-type]
- --> tests/e2e_tests/containers/tasks/test_mail_email_code_login_task.py:384:20
-ERROR Argument `str | None` is not assignable to parameter `code` with type `str` in function `celery.app.task.Task.__call__` [bad-argument-type]
- --> tests/e2e_tests/containers/tasks/test_mail_email_code_login_task.py:385:22
ERROR Object of class `HumanInputNodeData` has no attribute `delivery_methods` [missing-attribute]
--> tests/e2e_tests/containers/tasks/test_mail_human_input_delivery_task.py:107:26
ERROR Argument `Literal['workflow']` is not assignable to parameter `mode` with type `AppMode | SQLCoreOperations[AppMode]` in function `models.model.App.__init__` [bad-argument-type]
|
Pyrefly Type Coverage
|
Codecov Report❌ Patch coverage is
Additional details and impacted files@@ Coverage Diff @@
## main #47080 +/- ##
==========================================
+ Coverage 90.42% 90.46% +0.04%
==========================================
Files 6558 6568 +10
Lines 409863 410704 +841
Branches 82236 82345 +109
==========================================
+ Hits 370615 371549 +934
+ Misses 32864 32760 -104
- Partials 6384 6395 +11
Flags with carried forward coverage won't be shown. Click here to find out more. ☔ View full report in Codecov by Harness. 🚀 New features to boost your workflow:
|
asukaminato0721
left a comment
There was a problem hiding this comment.
1 inline suggestion at eacf013a50, from a rule learned from earlier reviews in this repository. Reply on the comment if it is wrong.
dify-codereview
asukaminato0721
left a comment
There was a problem hiding this comment.
1 inline suggestion at eea2f15fe7, from a rule learned from earlier reviews in this repository. Reply on the comment if it is wrong.
dify-codereview
asukaminato0721
left a comment
There was a problem hiding this comment.
1 inline suggestion at ce55e7825e, from a rule learned from earlier reviews in this repository. Reply on the comment if it is wrong.
dify-codereview
asukaminato0721
left a comment
There was a problem hiding this comment.
Nothing to flag at 51357d13e7.
dify-codereview
Nothing left to flag at 51357d1.
Why
Include the login-code mail suite in the existing strict Pyrefly check so CI verifies the types of its fixtures and test functions.
Part of #36288.
Summary
Screenshots
Backend changes only.
Verification
76c33f30cd4, the target suite went from 12/34 to 49/49 typed symbols. Across the API, Pyrefly 1.5.0 measured 87.9175% to 87.9408% coverage on the prospective merge (47 more typed symbols, 23 fewer untyped).ce55e7825e9. The Linux integration artifact recorded all 10 original login-mail cases as passed, including the PostgreSQL and Redis cases.Checklist
make lint && make type-check(backend) andvp staged(frontend) to appease the lint godsFrom Codex