-
Notifications
You must be signed in to change notification settings - Fork 6
feat: add SSE transport support and refactor CLI arg parsing #6
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
base: main
Are you sure you want to change the base?
Changes from all commits
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,107 @@ | ||||||||||||||||||||||||||||||||||||||
| """Tests for the main() entrypoint CLI argument parsing.""" | ||||||||||||||||||||||||||||||||||||||
|
|
||||||||||||||||||||||||||||||||||||||
| from __future__ import annotations | ||||||||||||||||||||||||||||||||||||||
|
|
||||||||||||||||||||||||||||||||||||||
| import argparse | ||||||||||||||||||||||||||||||||||||||
| from unittest.mock import MagicMock, patch | ||||||||||||||||||||||||||||||||||||||
|
|
||||||||||||||||||||||||||||||||||||||
| import pytest | ||||||||||||||||||||||||||||||||||||||
|
|
||||||||||||||||||||||||||||||||||||||
| from server import build_arg_parser | ||||||||||||||||||||||||||||||||||||||
|
|
||||||||||||||||||||||||||||||||||||||
|
|
||||||||||||||||||||||||||||||||||||||
| class TestMainArgParsing: | ||||||||||||||||||||||||||||||||||||||
| """Tests for CLI argument parsing in main().""" | ||||||||||||||||||||||||||||||||||||||
|
|
||||||||||||||||||||||||||||||||||||||
| def _parse_args(self, argv: list[str]) -> argparse.Namespace: | ||||||||||||||||||||||||||||||||||||||
| """Parse args using the real CLI parser from server.py.""" | ||||||||||||||||||||||||||||||||||||||
|
Comment on lines
+10
to
+17
|
||||||||||||||||||||||||||||||||||||||
| from server import build_arg_parser | |
| class TestMainArgParsing: | |
| """Tests for CLI argument parsing in main().""" | |
| def _parse_args(self, argv: list[str]) -> argparse.Namespace: | |
| """Parse args using the real CLI parser from server.py.""" | |
| class TestMainArgParsing: | |
| """Tests for CLI argument parsing in main().""" | |
| def _parse_args(self, argv: list[str]) -> argparse.Namespace: | |
| """Parse args using the real CLI parser from server.py.""" | |
| pytest.importorskip("sqlite_vec", reason="sqlite_vec not installed") | |
| from server import build_arg_parser |
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
The development code block is malformed:
uv build# Clone the repoconcatenates two commands, and the subsequent clone/install/run instructions duplicate the existing “From Source” section earlier in the README. This breaks the rendered docs and makes the quickstart instructions confusing; splituv buildonto its own line and move/remove the duplicated clone/setup steps (keep each set of instructions in one place).