Skip to content

test: bootstrap live_tests conftest + fix requires-python - #2

Open
neoalienson wants to merge 1 commit into
hkopenai:mainfrom
neoalienson:test/live-bootstrap
Open

test: bootstrap live_tests conftest + fix requires-python#2
neoalienson wants to merge 1 commit into
hkopenai:mainfrom
neoalienson:test/live-bootstrap

Conversation

@neoalienson

Copy link
Copy Markdown
Member

Summary

  • Add live_tests/conftest.py with the autouse throttle fixture (default 1.5s, override via LIVE_TEST_THROTTLE_S) from the shared hkopenai/live-tests-template repo. The fixture is the prerequisite for any follow-up live integration test in this repo.
  • Bump requires-python from >=3.7 to >=3.10 in pyproject.toml. The pin was stale and caused uv sync to fail because fastmcp 3.x / 4.0.0b1 no longer resolves against 3.7; this aligns with hk-finance-mcp-server, hk-climate-mcp-server and hk-tech-mcp-server which already use >=3.10.

Why no live test in this PR

Each tool has its own upstream endpoint and schema, so the actual test bodies belong in per-tool follow-up PRs (see hk-tech-mcp-server #1 and hk-transportation-mcp-server #3 for prior art). This PR just gets the throttle fixture and the python-version fix in place so those follow-ups can drop tests in without touching shared files.

The live tests opt in via the RUN_LIVE_TESTS=true env var, and the autouse throttle fixture only fires when those tests actually run; the default uv run pytest invocation is unaffected.

Test plan

  • uv run pytest -- no live test files exist yet, so the conftest has no effect; unit tests run as before
  • RUN_LIVE_TESTS=true uv run pytest -- once follow-up PRs land, those live tests will run with the 1.5s throttle

- Add live_tests/conftest.py with the autouse `throttle`
  fixture (default 1.5s, override via LIVE_TEST_THROTTLE_S)
  from hkopenai/live-tests-template. The fixture is the
  prerequisite for any follow-up live integration test in
  this repo.
- Bump requires-python from >=3.7 to >=3.10 in
  pyproject.toml -- fastmcp 3.x / 4.0.0b1 no longer
  resolves against 3.7, and hk-finance-mcp-server,
  hk-climate-mcp-server and hk-tech-mcp-server already use
  >=3.10.
@neoalienson
neoalienson requested a review from AlexChanKF August 5, 2026 05:50
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant