A python library to test services like RESTful APIs
Project description
Welcome to the PyClinic
A library to test services in Python
Setup and Contribute
💡 Use Poetry
as the package manager to take advantage of the pyproject.toml
at the Workspace Root
⚠️ Python version 3.9 or higher is required
-
Clone/Fork this repo and open it in your favorite editor (VS Code, Pycharm, etc)
-
Open the Integrated Terminal and use Poetry to install all dependencies
# this also creates the virtual environment automatically poetry install
-
Configure your IDE
- Select Interpreter - Gives you autocomplete, intellisense, etc
- Configure Tests - We use
pytest
instead of the defaultunittest
library - Any other settings. This project uses a Formatter (
black
) and Linter (flake8
)
-
That's it! Run the tests to see it all work
poetry run poe test
-
Make your changes, then submit a Pull Request (PR) for review. This automatically triggers a pipeline that lints and runs tests. Once the pipeline is green, a Maintainer will review your PR! 😄
Shoutout to @sudomaze from Twitch 💪🏽🐍
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.