-
Notifications
You must be signed in to change notification settings - Fork 2.2k
🧹 Remove unused import in chat.py #11336
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Changes from all commits
6eb7ee0
9f0be63
8d8229c
710dd03
f843e47
2d2c5fe
266a50f
e8ec104
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,20 @@ | ||
| from fastapi.routing import APIRoute | ||
|
|
||
| from routers.chat import router | ||
|
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more.
In the file-isolated backend unit runner, collecting this test imports the full AGENTS.md reference: backend/AGENTS.md:L220-L220 Useful? React with 👍 / 👎. |
||
|
|
||
|
|
||
| def test_legacy_v1_chat_operation_ids_are_preserved_after_ruff_renames(): | ||
| operation_ids = { | ||
| (route.path, method): route.operation_id | ||
| for route in router.routes | ||
| if isinstance(route, APIRoute) | ||
| for method in route.methods | ||
| } | ||
|
|
||
| assert operation_ids[('/v1/files', 'POST')] == 'upload_file_chat_v1_files_post' | ||
| assert ( | ||
| operation_ids[('/v1/messages/{message_id}/report', 'POST')] | ||
| == 'report_message_v1_messages__message_id__report_post' | ||
| ) | ||
| assert operation_ids[('/v1/messages', 'DELETE')] == 'clear_chat_messages_v1_messages_delete' | ||
| assert operation_ids[('/v1/initial-message', 'POST')] == 'create_initial_message_v1_initial_message_post' | ||
Uh oh!
There was an error while loading. Please reload this page.