smriti/cli/tests/test_smoke.py
Himanshu Dongre e5db6d8116 Add mcp dependency and pytest harness skeleton
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.
2026-04-12 00:46:34 +05:30

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__