Skip to main content

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

  1. Clone/Fork this repo and open it in your favorite editor (VS Code, Pycharm, etc)

  2. Open the Integrated Terminal and use Poetry to install all dependencies

    # this also creates the virtual environment automatically
    poetry install
    
  3. Configure your IDE

    • Select Interpreter - Gives you autocomplete, intellisense, etc
    • Configure Tests - We use pytest instead of the default unittest library
    • Any other settings. This project uses a Formatter (black) and Linter (flake8)
  4. That's it! Run the tests to see it all work

    poetry run poe test
    
  5. 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


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

pyclinic-0.1.2.tar.gz (9.5 kB view hashes)

Uploaded Source

Built Distribution

pyclinic-0.1.2-py3-none-any.whl (10.8 kB view hashes)

Uploaded Python 3

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page