mirror of
https://github.com/himanshudongre/smriti.git
synced 2026-08-28 05:14:59 +00:00
First two steps of V3 Build 2 (the MCP server transport):
- Pin `mcp>=1.27.0,<2.0.0` in cli/pyproject.toml. FastMCP has been
the high-level API across the entire 1.x line and is what the
server will use for tool registration. Verified importable as
`from mcp.server.fastmcp import FastMCP`.
- Add `[project.optional-dependencies].dev` with pytest>=7.0 and
`[tool.pytest.ini_options]` so `pip install -e "./cli[dev]"`
gets the full dev loop. The cli package previously had no tests.
- Create cli/tests/ with __init__.py, an empty conftest.py (soon
to host the shared mock_client fixture), and a smoke test that
just confirms `smriti_cli` imports. Gives us a working `pytest`
command from the first commit.
The `smriti-mcp` entry point + actual MCP server code land in the
next commit alongside mcp_server.py so every commit leaves the
package in an installable state.
14 lines
479 B
Python
14 lines
479 B
Python
"""Minimal smoke test to prove the pytest harness is wired.
|
|
|
|
This file exists to ensure the dev tooling (pytest discovery, conftest
|
|
loading, package import paths) works from the first commit, before any
|
|
real tests land. It should stay passing as the test suite grows.
|
|
"""
|
|
from __future__ import annotations
|
|
|
|
|
|
def test_smriti_cli_package_imports():
|
|
"""The smriti_cli package imports cleanly in the test environment."""
|
|
import smriti_cli
|
|
|
|
assert smriti_cli.__version__
|