modelcontextprotocol/create-python-server

Add tests to server

darinkishore opened this issue · 1 comments

Is your feature request related to a problem? Please describe.
It would be really nice to have an already existing testing structure set up using pytest for the notes app, so that we may easily validate that things are functioning properly as we build.

Describe the solution you'd like
Pytest and pytest-asyncio added to default dev dependencies. Test suite setup with pytest for the STDIO way of doing things.

Additional context
Kinda sucked having to set up tests myself. Wasn't sure how to ever test the end server, so I ended up writing tests for my business logic, but had runtime errors I had to iterate through and debug that would have been easily caught by tests on the server itself. Having that setup from the beginning would be amazing.

just noticed https://github.com/modelcontextprotocol/create-python-server/pull/7/files .

that's perfect . merging would be super cool.