diff --git a/.devcontainer/Dockerfile b/.devcontainer/Dockerfile new file mode 100644 index 0000000..6f26ecc --- /dev/null +++ b/.devcontainer/Dockerfile @@ -0,0 +1,15 @@ +FROM python:3.13-slim + +# Install UV +COPY --from=ghcr.io/astral-sh/uv:latest /uv /uvx /bin/ + +# Install git +RUN apt-get update \ + && apt-get install -y --no-install-recommends git \ + && rm -rf /var/lib/apt/lists/* + +# Install Python dependencies +WORKDIR /workspaces/python-wiremock +COPY pyproject.toml uv.lock ./ +ENV UV_PROJECT_ENVIRONMENT=/usr/local +RUN uv sync --frozen \ No newline at end of file diff --git a/.devcontainer/devcontainer.json b/.devcontainer/devcontainer.json new file mode 100644 index 0000000..270fb99 --- /dev/null +++ b/.devcontainer/devcontainer.json @@ -0,0 +1,16 @@ +{ + "name": "Python Wiremock", + "build": { + "dockerfile": "Dockerfile", + "context": ".." + }, + "overrideCommand": true, + "customizations": { + "vscode": { + "extensions": [ + "ms-python.python", + "charliermarsh.ruff" + ] + } + } +} diff --git a/.flake8 b/.flake8 new file mode 100644 index 0000000..99bcbec --- /dev/null +++ b/.flake8 @@ -0,0 +1,4 @@ +[flake8] +ignore = E226,E302,E41 +max-line-length = 88 +max-complexity = 10 diff --git a/.gitattributes b/.gitattributes new file mode 100644 index 0000000..94f480d --- /dev/null +++ b/.gitattributes @@ -0,0 +1 @@ +* text=auto eol=lf \ No newline at end of file diff --git a/.github/FUNDING.yml b/.github/FUNDING.yml deleted file mode 100644 index f207109..0000000 --- a/.github/FUNDING.yml +++ /dev/null @@ -1,2 +0,0 @@ -github: [platinummonkey] -custom: https://www.paypal.com/cgi-bin/webscr?cmd=_donations&business=UV978FNAYLYZE&item_name=Github+Donations¤cy_code=USD&source=url diff --git a/.github/release-drafter.yml b/.github/release-drafter.yml new file mode 100644 index 0000000..45f2057 --- /dev/null +++ b/.github/release-drafter.yml @@ -0,0 +1,59 @@ +# Configuration for Release Drafter: https://github.com/toolmantim/release-drafter +name-template: $NEXT_MINOR_VERSION +tag-template: $NEXT_MINOR_VERSION + +# Emoji reference: https://gitmoji.carloscuesta.me/ +categories: + - title: πŸ’₯ Breaking changes + labels: + - breaking + - title: πŸš€ New features and improvements + labels: + - enhancement + - title: πŸ› Bug fixes + labels: + - bug + - title: πŸ“ Documentation updates + labels: + - documentation + - title: 🌐 Localization and translation + labels: + - localization + - title: 🌐 Community-related changes + labels: + - community + - title: πŸ‘» Maintenance + labels: + - chore + - maintenance + - title: 🚦 Tests + labels: + - test + - title: ✍ Other changes + # Default label used by Dependabot + - title: πŸ“¦ Dependency updates + labels: + - dependencies + collapse-after: 15 +exclude-labels: + - skip-changelog + - invalid + +template: | + + $CHANGES + +autolabeler: + - label: "documentation" + files: + - "*.md" + branch: + - '/docs{0,1}\/.+/' + - label: "bug" + branch: + - '/fix\/.+/' + title: + - "/fix/i" + - label: "enhancement" + branch: + - '/feature\/.+/' diff --git a/.github/workflows/lint-docs.yml b/.github/workflows/lint-docs.yml new file mode 100644 index 0000000..1041573 --- /dev/null +++ b/.github/workflows/lint-docs.yml @@ -0,0 +1,22 @@ +name: Verify documentation +on: + push: + branches: ["main", "master"] + pull_request: + branches: ["main", "master"] + +jobs: + verify-docs: + name: Check Documentation + runs-on: ubuntu-latest + steps: + - uses: actions/checkout@v4 + - name: Install uv and set the python version + uses: astral-sh/setup-uv@v6 + with: + python-version: '3.13' + enable-cache: true + - name: Install dependencies + run: uv sync --locked --group docs + - name: Build docs with MkDocs + run: make docs \ No newline at end of file diff --git a/.github/workflows/release-drafter.yml b/.github/workflows/release-drafter.yml new file mode 100644 index 0000000..342e222 --- /dev/null +++ b/.github/workflows/release-drafter.yml @@ -0,0 +1,27 @@ +name: Release Drafter + +on: + push: + branches: + - master + +jobs: + update_release_draft: + runs-on: ubuntu-latest + steps: + - uses: actions/checkout@v3 + - name: Set up Python + uses: actions/setup-python@v4 + with: + python-version: "3.13" + - name: Install uv + uses: astral-sh/setup-uv@v6 + - name: Get version from pyproject.toml + run: echo "VERSION=$(uv version --short)" >> $GITHUB_ENV + - uses: release-drafter/release-drafter@v5 + with: + name: ${{ env.VERSION }} + tag: ${{ env.VERSION }} + version: ${{ env.VERSION }} + env: + GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml new file mode 100644 index 0000000..bd8d18f --- /dev/null +++ b/.github/workflows/release.yml @@ -0,0 +1,28 @@ +name: Publish to PyPI + +on: + release: + types: [published] + +jobs: + build-and-publish: + runs-on: ubuntu-latest + environment: + name: pypi + url: https://pypi.org/p/wiremock + permissions: + id-token: write # IMPORTANT: this permission is mandatory for trusted publishing + steps: + - uses: actions/checkout@v3 + - name: Set up Python + uses: actions/setup-python@v4 + with: + python-version: "3.13" + - name: Install uv + uses: astral-sh/setup-uv@v6 + - name: Install dependencies + run: uv sync + - name: Build distributions + run: uv build + - name: Publish to PyPI + uses: pypa/gh-action-pypi-publish@release/v1 diff --git a/.github/workflows/tests.yml b/.github/workflows/tests.yml new file mode 100644 index 0000000..514af63 --- /dev/null +++ b/.github/workflows/tests.yml @@ -0,0 +1,46 @@ +name: CI + +on: + push: + branches: [master] + pull_request: + branches: [master] + +jobs: + unit-tests: + runs-on: ubuntu-latest + + strategy: + matrix: + python-version: ["3.9", "3.10", "3.11", "3.12", "3.13"] + + steps: + - uses: actions/checkout@v3 + - name: Set up Python ${{ matrix.python-version }} + uses: actions/setup-python@v5 + with: + python-version: ${{ matrix.python-version }} + + - name: Install uv + uses: astral-sh/setup-uv@v6 + + - name: Install dependencies + run: | + uv sync --extra testing + + - name: Test with pytest + run: | + uv run pytest tests/ + + integration-tests: + runs-on: ubuntu-latest + needs: [unit-tests] + + steps: + - uses: actions/checkout@v3 + + - name: Integration Tests + run: | + cd examples/intro/ + docker compose build overview_srv + docker compose run overview_srv pytest --tb=short diff --git a/.gitignore b/.gitignore index e1a98ef..41b0619 100644 --- a/.gitignore +++ b/.gitignore @@ -165,5 +165,6 @@ Network Trash Folder Temporary Items .apdisk -# Sphinx -html/ \ No newline at end of file +# Static docs +html/ +site/ diff --git a/.readthedocs.yaml b/.readthedocs.yaml new file mode 100644 index 0000000..bace288 --- /dev/null +++ b/.readthedocs.yaml @@ -0,0 +1,29 @@ +# .readthedocs.yaml +# Read the Docs configuration file +# See https://docs.readthedocs.io/en/stable/config-file/v2.html for details + +# Required +version: 2 + +formats: + - pdf + - epub + +# Build documentation with MkDocs +mkdocs: + configuration: mkdocs.yml + +# Set the version of Python and other tools you might need +build: + os: ubuntu-22.04 + tools: + python: "3.11" + jobs: + post_create_environment: + # Install uv + - pip install uv + # Tell uv to not use a virtual environment + - UV_PROJECT_ENVIRONMENT=$READTHEDOCS_VIRTUALENV_PATH + post_install: + # Install dependencies with 'docs' dependency group + - uv sync --group docs diff --git a/.travis.yml b/.travis.yml deleted file mode 100644 index 6230406..0000000 --- a/.travis.yml +++ /dev/null @@ -1,19 +0,0 @@ -language: python -python: -- '3.7' -install: -- pip install -r requirements.pip -- pip install tox-travis -script: tox -deploy: - provider: pypi - on: - branch: master - distributions: sdist bdist_wheel - skip_upload_docs: true - password: - secure: MuwWp+PrezNv3s60zJVdte8VE0bg3yDfI/Gw6ZnW/8I0Vhlir1ldvPysLTB+wMDjfAlt3FgbXQkGsI6bF19SOUDZaNeuXKIVJIJ9DJOHoIA4g7PAfOAoDTyQBPyYUPKIdpfP8cOwxfTqqDQWV0PCAB9KzNi8tMl+GSpC0pEW25FS2DKiaqWv56ERi9RaGhm0O/KEPZ73MSMmU+D6ZWu6GfzMp7TVBtltcOkt8+qUb6bMhB89/HldLOGlAWdoqpRLsrQpNIRp2vngT+FE2xpVzHgEe38SbKOgDGjnuI5GeiM2uHO0KUnK8/h8X39DBInDYfTT/unULhASVXqPsm8rIiUT2PyB2Z0whqMgCx+qNXszzZFcJHc5eo3QtB+GSipNG1fS/KOzV/mtziRacUdi7xEWmMgizf4cPYBW7WCNb5AxbVmFRGpaYfGt5xuQsg/LHrLIv80zHDqc918EvQUdrOvyQYmSq0Ydh/ElTPT/pzmM06gkhJfFB3vjUbz3O3YBR4Elie1rszeaOLcCuNVew5eneU7zksT/xqHl2b+4tgy04oFUZvbUXA4IOSYk4jmcHgzJLprNO9CrSINk2hhzZTFQ5ORIa2qCqsdXLNzKxMZxq4W/TlwmGEF4mt7csBEQ2h4gaHdHCCi4uHdMDi/9hsbt1pjrjjVhHruUnqr405k= - username: - secure: JhLffSYa/ES20jPiXmmEwEq6jLwpd2VEDe3KT+iqZ6LPygxCFjyoT8rI7LBz91PsjjBZa1jVFw7kAdtT6RvLOFHp3Pol87ULpmM8PBD++FIShxPFds2p+5UzEvQ/D3+6E9gxeHIwNQk6RGwYm4hF7kGaWQwhtD+Y3mXhL4pjvtGy+3rkXWHhe0LNvRdCUqogsv7EXBhRZunb/KqLW7rtn7NlTnBVz+Sf97GPuNtgmMG2UPnCcsip0V+hUgMcpMXqlVbPpFNfq2k901qKfRMgg4hjum6ML+oKCqiXFzH/cTCj9okNzK56yAkSN3lrfUPKHIVAfLAYDXexFCTDpbr970XnTtpFBlqzBnB8W4dYXrBb00j3vWy3yJrXZSQSwn8ETUBC4ObSKFJseIA0OFMlUoBHkVyLo0iH30VGGAlI0p3FXY+DBSQxIvyCIlbHbmHEcPlKyb6K5sEZgAT6mqPiPi0d6MnDNXF4R5+LAI0uZhr0EzXZkKoP0wH1DUoR72NJIyfGPKEvmY/os86UcvI9fGKCaqC15I2gMoKBWJ2s7xjiDvZ5Hi1vhK/kP2rQnGDrUd2wclhufMARiW0KYhJsfgMj4Q5ICQ4bMP3SWuXRc9A6toMLnH82z0r2sPLv8OFidbPW9wq4tnfZ0+WtJ2p+FARauEStHeVXdpfwkZds25I= -after_success: -- coveralls diff --git a/.vscode/settings.json b/.vscode/settings.json new file mode 100644 index 0000000..eaaa2db --- /dev/null +++ b/.vscode/settings.json @@ -0,0 +1,6 @@ +{ + "[python]": { + "editor.defaultFormatter": "charliermarsh.ruff" + }, + "editor.formatOnSave": true, +} \ No newline at end of file diff --git a/AUTHORS b/AUTHORS index 2c318bc..f9aaabe 100644 --- a/AUTHORS +++ b/AUTHORS @@ -1 +1,2 @@ Cody Lee +Mikey Waites diff --git a/Makefile b/Makefile index b3e33b7..a9463c8 100644 --- a/Makefile +++ b/Makefile @@ -44,4 +44,4 @@ clean: find . -name '.bak' -exec rm -f {} + docs: - sphinx-build docs html + uv run mkdocs build --site-dir=html diff --git a/README.md b/README.md index 7078398..c20b6fa 100644 --- a/README.md +++ b/README.md @@ -1,31 +1,58 @@ -Python WireMock Admin API Client -================================ +# Python WireMock -This is a python admin API client to a standalone WireMock server. +

+ + WireMock Logo + +

-[![Build Status](https://travis-ci.org/platinummonkey/python-wiremock.svg?branch=master)](https://travis-ci.org/platinummonkey/python-wiremock) -[![Coverage Status](https://coveralls.io/repos/github/platinummonkey/python-wiremock/badge.svg?branch=master)](https://coveralls.io/github/platinummonkey/python-wiremock?branch=master) -[![Docs](https://img.shields.io/badge/docs-latest-brightgreen.svg)](http://wiremock.readthedocs.org/) +--- + + + + +
+WireMock Cloud Logo +WireMock open source is supported by WireMock Cloud. Please consider trying it out if your team needs advanced capabilities such as OpenAPI, dynamic state, data sources and more. +
-Install as Dependency --------------------- +--- -To install: +Python WireMock is a library that allows users to interact with a WireMock instance from within a Python project. +Full documentation can be found at [wiremock.readthedocs.org](https://wiremock.readthedocs.org/). - pip install wiremock +[![a](https://img.shields.io/badge/slack-%23wiremock%2Fpython-brightgreen?style=flat&logo=slack)](https://slack.wiremock.org/) +[![Docs](https://img.shields.io/badge/docs-latest-brightgreen.svg)](https://wiremock.readthedocs.org/) + -Documentation -------------- +## Key Features -wiremock documentation can be found at http://wiremock.readthedocs.org/ +WireMock can run in unit tests, as a standalone process or a container. Key features include: +- [Testcontainers Python](https://github.com/testcontainers/testcontainers-python) module to easily start WireMock server for your tests +- REST API Client for a standalone WireMock Java server +- Support for most of major [WireMock features ](https://wiremock.org/docs) (more on their way soon) -Pull Requests -------------- +## References -General Rules: - - All Tests must pass - - Coverage shouldn't decrease - - All Pull Requests should be rebased against master **before** submitting the PR. +- [Quickstart Guide](./docs/quickstart.md) +- [Installation](./docs/install.md) +- [Full documentation](https://wiremock.readthedocs.org/) + +## Examples + +There are several [example projects](./examples/) included to demonstrate the different ways that WireMock can be used to mock +services in your tests and systems. The example test modules demonstrate different strategies for testing against +the same "product service" and act as a good demonstration of real world applications to help you get started. + +- [Testcontainers Python](examples/intro/tests/test_testcontainers.py) +- [Standalone Java Server Version](examples/intro/tests/test_java_server.py) + +## Contributing + +See the [Contributor Guide](./docs/CONTRIBUTING.md) diff --git a/RELEASING.md b/RELEASING.md new file mode 100644 index 0000000..3a262a3 --- /dev/null +++ b/RELEASING.md @@ -0,0 +1,29 @@ +# Checklist for releasing Python WireMock + +- [ ] Bump version number +- [ ] Publish the release note +- [ ] Announce on the WireMock Community Slack +- [ ] Announce on social + +## Pre-release - bump version number +Make sure the version number has been updated. Do this by updating the version in `./pyproject.toml`: + +```toml +[project] +name = "wiremock" +version = "2.7.0" +``` + +Commit and push the changes made. + +## Publish the release note +Release drafter should have created a draft release note called "next". Check it for sanity and edit it to add any +additional information and then set the tag to the version you have just added above. You can then publish the release. + +Publishing the release should trigger the release action to publish to PyPI + +## Post an announcement on the WireMock Community Slack +Announce in the #announcments channel then link to the message from #general. + +## Shout about it on as many social media platforms as possible +You know the drill. \ No newline at end of file diff --git a/deploy_to_pypi.sh b/deploy_to_pypi.sh index e74b002..40af4b7 100755 --- a/deploy_to_pypi.sh +++ b/deploy_to_pypi.sh @@ -3,6 +3,6 @@ # Deploy to PyPI for both source and wheel # rm -Rf build/ dist/ wiremock.egg-info/ || true -python3 setup.py sdist bdist_wheel +python3 -m build --sdist --wheel python3 -m twine upload dist/* rm -Rf build/ dist/ wiremock.egg-info/ || true diff --git a/doc_builder.sh b/doc_builder.sh deleted file mode 100755 index 72abace..0000000 --- a/doc_builder.sh +++ /dev/null @@ -1,4 +0,0 @@ -#!/bin/bash - -sphinx-build docs html -watchmedo shell-command -R --command 'sphinx-build docs html' ./docs/ diff --git a/docs/CONTRIBUTING.md b/docs/CONTRIBUTING.md new file mode 100644 index 0000000..6687e32 --- /dev/null +++ b/docs/CONTRIBUTING.md @@ -0,0 +1,64 @@ +# Contributing to Python WireMock + +[![a](https://img.shields.io/badge/slack-%23wiremock%2Fpython-brightgreen?style=flat&logo=slack)](https://slack.wiremock.org/) + +WireMock exists and continues to thrive due to the efforts of over 150 contributors, and we continue to welcome contributions to its evolution. Regardless of your expertise and time you could dedicate, there’re opportunities to participate and help the project! + +This page covers contributing to _Python WireMock_. +For generic guidelines and links to other technology stacks, +see [this page](https://wiremock.org/docs/participate/). + +## Get Started + +1. Join us ion the `#wiremock-python` channel on the [WireMock Slack](https://slack.wiremock.org/) +2. Check out the GitHub issues! + +## Pull Requests + +All patches to the repository are done via pull requests. +No special prerequisites exist, you can just submit the patches! +General expectations: + +- All Tests and static checkers must pass +- Code coverage shouldn't decrease +- All Pull Requests should be rebased against master **before** submitting the PR. +- The Pull Request titles represent the change well for users or developers + +## Development + +We use **VSCode Dev Containers** for development. + +If you'd like to contribute: + +1. Follow [this tutorial](https://code.visualstudio.com/docs/devcontainers/tutorial) to set up Dev Containers. +2. Once set up, open the `python-wiremock` folder in VSCode. +3. Use the **Dev Containers** extension to reopen the project inside the container. + +That's it - you'll have a ready-to-use development environment. + +## Contributing examples + +Please submit new examples as a pull requests to the +[examples directory](https://github.com/wiremock/python-wiremock/tree/master/examples). +You can also also add links to external examples and tutorials to the `README.md` +file in the directory. + +When adding new examples, +make sure to update the [documentation site page](./examples.md) too. + +## Working on Documentation + +The documentation is powered by [MkDocs](https://www.mkdocs.org/) and [ReadTheDocs](https://readthedocs.org/). +All the necessary dependencies are included into the pyproject definition. +To build the docs locally: + +```bash +uv run mkdocs build --site-dir=html +``` + +MkDocs also comes with a built-in dev-server that lets you preview your documentation as you work on it by running the `mkdocs serve` command. +By default, it will deploy the live documentation site to `http://localhost:8000`. + +## See also + +- [Contributing to WireMock](https://wiremock.org/docs/participate/) diff --git a/docs/Makefile b/docs/Makefile deleted file mode 100644 index 6707b88..0000000 --- a/docs/Makefile +++ /dev/null @@ -1,177 +0,0 @@ -# Makefile for Sphinx documentation -# - -# You can set these variables from the command line. -SPHINXOPTS = -SPHINXBUILD = sphinx-build -PAPER = -BUILDDIR = _build - -# User-friendly check for sphinx-build -ifeq ($(shell which $(SPHINXBUILD) >/dev/null 2>&1; echo $$?), 1) -$(error The '$(SPHINXBUILD)' command was not found. Make sure you have Sphinx installed, then set the SPHINXBUILD environment variable to point to the full path of the '$(SPHINXBUILD)' executable. Alternatively you can add the directory with the executable to your PATH. If you don't have Sphinx installed, grab it from http://sphinx-doc.org/) -endif - -# Internal variables. -PAPEROPT_a4 = -D latex_paper_size=a4 -PAPEROPT_letter = -D latex_paper_size=letter -ALLSPHINXOPTS = -d $(BUILDDIR)/doctrees $(PAPEROPT_$(PAPER)) $(SPHINXOPTS) . -# the i18n builder cannot share the environment and doctrees with the others -I18NSPHINXOPTS = $(PAPEROPT_$(PAPER)) $(SPHINXOPTS) . - -.PHONY: help clean html dirhtml singlehtml pickle json htmlhelp qthelp devhelp epub latex latexpdf text man changes linkcheck doctest gettext - -help: - @echo "Please use \`make ' where is one of" - @echo " html to make standalone HTML files" - @echo " dirhtml to make HTML files named index.html in directories" - @echo " singlehtml to make a single large HTML file" - @echo " pickle to make pickle files" - @echo " json to make JSON files" - @echo " htmlhelp to make HTML files and a HTML help project" - @echo " qthelp to make HTML files and a qthelp project" - @echo " devhelp to make HTML files and a Devhelp project" - @echo " epub to make an epub" - @echo " latex to make LaTeX files, you can set PAPER=a4 or PAPER=letter" - @echo " latexpdf to make LaTeX files and run them through pdflatex" - @echo " latexpdfja to make LaTeX files and run them through platex/dvipdfmx" - @echo " text to make text files" - @echo " man to make manual pages" - @echo " texinfo to make Texinfo files" - @echo " info to make Texinfo files and run them through makeinfo" - @echo " gettext to make PO message catalogs" - @echo " changes to make an overview of all changed/added/deprecated items" - @echo " xml to make Docutils-native XML files" - @echo " pseudoxml to make pseudoxml-XML files for display purposes" - @echo " linkcheck to check all external links for integrity" - @echo " doctest to run all doctests embedded in the documentation (if enabled)" - -clean: - rm -rf $(BUILDDIR)/* - -html: - $(SPHINXBUILD) -b html $(ALLSPHINXOPTS) $(BUILDDIR)/html - @echo - @echo "Build finished. The HTML pages are in $(BUILDDIR)/html." - -dirhtml: - $(SPHINXBUILD) -b dirhtml $(ALLSPHINXOPTS) $(BUILDDIR)/dirhtml - @echo - @echo "Build finished. The HTML pages are in $(BUILDDIR)/dirhtml." - -singlehtml: - $(SPHINXBUILD) -b singlehtml $(ALLSPHINXOPTS) $(BUILDDIR)/singlehtml - @echo - @echo "Build finished. The HTML page is in $(BUILDDIR)/singlehtml." - -pickle: - $(SPHINXBUILD) -b pickle $(ALLSPHINXOPTS) $(BUILDDIR)/pickle - @echo - @echo "Build finished; now you can process the pickle files." - -json: - $(SPHINXBUILD) -b json $(ALLSPHINXOPTS) $(BUILDDIR)/json - @echo - @echo "Build finished; now you can process the JSON files." - -htmlhelp: - $(SPHINXBUILD) -b htmlhelp $(ALLSPHINXOPTS) $(BUILDDIR)/htmlhelp - @echo - @echo "Build finished; now you can run HTML Help Workshop with the" \ - ".hhp project file in $(BUILDDIR)/htmlhelp." - -qthelp: - $(SPHINXBUILD) -b qthelp $(ALLSPHINXOPTS) $(BUILDDIR)/qthelp - @echo - @echo "Build finished; now you can run "qcollectiongenerator" with the" \ - ".qhcp project file in $(BUILDDIR)/qthelp, like this:" - @echo "# qcollectiongenerator $(BUILDDIR)/qthelp/wiremock.qhcp" - @echo "To view the help file:" - @echo "# assistant -collectionFile $(BUILDDIR)/qthelp/wiremock.qhc" - -devhelp: - $(SPHINXBUILD) -b devhelp $(ALLSPHINXOPTS) $(BUILDDIR)/devhelp - @echo - @echo "Build finished." - @echo "To view the help file:" - @echo "# mkdir -p $$HOME/.local/share/devhelp/wiremock" - @echo "# ln -s $(BUILDDIR)/devhelp $$HOME/.local/share/devhelp/wiremock" - @echo "# devhelp" - -epub: - $(SPHINXBUILD) -b epub $(ALLSPHINXOPTS) $(BUILDDIR)/epub - @echo - @echo "Build finished. The epub file is in $(BUILDDIR)/epub." - -latex: - $(SPHINXBUILD) -b latex $(ALLSPHINXOPTS) $(BUILDDIR)/latex - @echo - @echo "Build finished; the LaTeX files are in $(BUILDDIR)/latex." - @echo "Run \`make' in that directory to run these through (pdf)latex" \ - "(use \`make latexpdf' here to do that automatically)." - -latexpdf: - $(SPHINXBUILD) -b latex $(ALLSPHINXOPTS) $(BUILDDIR)/latex - @echo "Running LaTeX files through pdflatex..." - $(MAKE) -C $(BUILDDIR)/latex all-pdf - @echo "pdflatex finished; the PDF files are in $(BUILDDIR)/latex." - -latexpdfja: - $(SPHINXBUILD) -b latex $(ALLSPHINXOPTS) $(BUILDDIR)/latex - @echo "Running LaTeX files through platex and dvipdfmx..." - $(MAKE) -C $(BUILDDIR)/latex all-pdf-ja - @echo "pdflatex finished; the PDF files are in $(BUILDDIR)/latex." - -text: - $(SPHINXBUILD) -b text $(ALLSPHINXOPTS) $(BUILDDIR)/text - @echo - @echo "Build finished. The text files are in $(BUILDDIR)/text." - -man: - $(SPHINXBUILD) -b man $(ALLSPHINXOPTS) $(BUILDDIR)/man - @echo - @echo "Build finished. The manual pages are in $(BUILDDIR)/man." - -texinfo: - $(SPHINXBUILD) -b texinfo $(ALLSPHINXOPTS) $(BUILDDIR)/texinfo - @echo - @echo "Build finished. The Texinfo files are in $(BUILDDIR)/texinfo." - @echo "Run \`make' in that directory to run these through makeinfo" \ - "(use \`make info' here to do that automatically)." - -info: - $(SPHINXBUILD) -b texinfo $(ALLSPHINXOPTS) $(BUILDDIR)/texinfo - @echo "Running Texinfo files through makeinfo..." - make -C $(BUILDDIR)/texinfo info - @echo "makeinfo finished; the Info files are in $(BUILDDIR)/texinfo." - -gettext: - $(SPHINXBUILD) -b gettext $(I18NSPHINXOPTS) $(BUILDDIR)/locale - @echo - @echo "Build finished. The message catalogs are in $(BUILDDIR)/locale." - -changes: - $(SPHINXBUILD) -b changes $(ALLSPHINXOPTS) $(BUILDDIR)/changes - @echo - @echo "The overview file is in $(BUILDDIR)/changes." - -linkcheck: - $(SPHINXBUILD) -b linkcheck $(ALLSPHINXOPTS) $(BUILDDIR)/linkcheck - @echo - @echo "Link check complete; look for any errors in the above output " \ - "or in $(BUILDDIR)/linkcheck/output.txt." - -doctest: - $(SPHINXBUILD) -b doctest $(ALLSPHINXOPTS) $(BUILDDIR)/doctest - @echo "Testing of doctests in the sources finished, look at the " \ - "results in $(BUILDDIR)/doctest/output.txt." - -xml: - $(SPHINXBUILD) -b xml $(ALLSPHINXOPTS) $(BUILDDIR)/xml - @echo - @echo "Build finished. The XML files are in $(BUILDDIR)/xml." - -pseudoxml: - $(SPHINXBUILD) -b pseudoxml $(ALLSPHINXOPTS) $(BUILDDIR)/pseudoxml - @echo - @echo "Build finished. The pseudo-XML files are in $(BUILDDIR)/pseudoxml." diff --git a/docs/api-client.md b/docs/api-client.md new file mode 100644 index 0000000..05e5f74 --- /dev/null +++ b/docs/api-client.md @@ -0,0 +1,73 @@ +Using with a Standalone WireMock +=========== + +An example app: + +```python +from wiremock.constants import Config +from wiremock.client import * + +Config.base_url = 'https://mockserver.example.com/__admin/' +# Optionally set a custom cert path: +# Config.requests_cert = ... (See requests documentation) +# Optionally disable cert verification +# Config.requests_verify = False + +mapping = Mapping( + priority=100, + request=MappingRequest( + method=HttpMethods.GET, + url='/hello' + ), + response=MappingResponse( + status=200, + body='hi' + ), + persistent=False, +) + +mapping = Mappings.create_mapping(mapping=mapping) + +all_mappings = Mappings.retrieve_all_mappings() +``` + +### Starting WireMock server with a context manager + +```python +from wiremock.constants import Config +from wiremock.client import * +from wiremock.server.server import WireMockServer + +with WireMockServer() as wm: + Config.base_url = 'http://localhost:{}/__admin'.format(wm.port) + Mappings.create_mapping(...) # Set up stubs + requests.get(...) # Make API calls +``` + +### Starting WireMock server in a unittest.TestCase + +```python + +class MyTestClassBase(TestCase): + @classmethod + def setUpClass(cls): + wm = self.wiremock_server = WireMockServer() + wm.start() + Config.base_url = 'http://localhost:{}/__admin'.format(wm.port) + + @classmethod + def tearDownClass(cls): + self.wiremock_server.stop() +``` + +### Customizing the path to java + +```python +WireMockServer(java_path='/path/to/my/java') +``` + +### Customizing the WireMock server JAR file: + +```python +WireMockServer(jar_path='/my/secret/location/wiremock-standalone-2.35.1.jar') +``` diff --git a/docs/changelog.md b/docs/changelog.md new file mode 100644 index 0000000..e0bafed --- /dev/null +++ b/docs/changelog.md @@ -0,0 +1,132 @@ +ChangeLog +========= + +Changes to the library are recorded here. + +Newer version +------ + +See [GitHub Releases](https://github.com/wiremock/python-wiremock/releases) + +v2.4.0 +------ + +Enhancements: + +- Adds --root\_dir option (\#40) @dtwwolinski + +Maintenance: + +- Automates release documentation and pypi distribution (\#63) + @mikeywaites +- Removes setuptools dependency on build (\#62) @jmdacruz +- Uses assertEqual instead of assertEquals for Python 3.11 + compatibility. (\#45) @tirkarthi +- Updates to modern Python tooling (\#57) @mikeywaites +- Sets up working example of python-wiremock in the repo (\#59) + @mikeywaites +- Removes travis config file (\#61) @mikeywaites +- Adds imports to quickstart example (\#42) @jmendesky + +v2.3.1 +------ + +> - Adds support for --root\_dir option on startup thanks to +> @dtwwolinski + +v2.3.0 +------ + +> - Adds missing Metadata delete calls thanks to @andreroggeri + +v2.2.0 +------ + +> - Adds missing Metadata serde options thanks to @andreroggeri + +v2.1.3 +------ + +> - Fix on startup thanks to @Enforcer + +v2.1.2 +------ + +> - Python3.8 lint fixes thanks to @tirkarthi + +v2.1.1 +------ + +> - Fixes startup error on connection error thanks to @vasuarez + +v2.1.0 +------ + +> - Enables Templating thanks to @mauricioalarcon + +v2.0.0 +------ + +> - Fixes issue \#14 +> - Drops support for Python 2.x as this is EOL. + +v1.2.0 +------ + +> - Add custom cert/verification options to be passed normally through +> the singleton config +> - Upgrades minimum requests version to 2.20.0 for known +> CVE-2018-18074 + +v1.1.5 +------ + +> - Looser requirements everywhere, run free! + +v1.1.4 +------ + +> - Update links in setup.py and docs + +v1.1.3 +------ + +> - Looser dependency constraint in setup.py + +v1.1.2 +------ + +> - Allow looser dependency constraint for requests + +v1.1.1 +------ + +> - Fixed bug when wiremock jar not found. + +v1.1.0 +------ + +> - Added Ability to stand up wiremock server (requires standalone jar +> being available). + +v1.0.3 +------ + +> - Fix support for Python 3.4. + +v1.0.2 +------ + +> - Wiremock 2.6.x uses 201 response code instead. + +v1.0.1 +------ + +> - Bug Fix on dictionary klass deserialization fix. + +v1.0.0 +------ + +> - First Release - included admin feature set for wiremock 2.5.1 +> standalone + diff --git a/docs/changelog.rst b/docs/changelog.rst deleted file mode 100644 index 28681a0..0000000 --- a/docs/changelog.rst +++ /dev/null @@ -1,69 +0,0 @@ -.. _changelog: - -ChangeLog -========= - -Changes to the library are recorded here. - -v2.1.2 ------- - * Python3.8 lint fixes thanks to @tirkarthi - -v2.1.1 ------- - * Fixes startup error on connection error thanks to @vasuarez - -v2.1.0 ------- - * Enables Templating thanks to @mauricioalarcon - -v2.0.0 ------- - * Fixes issue #14 - * Drops support for Python 2.x as this is EOL. - -v1.2.0 ------- - * Add custom cert/verification options to be passed normally through the singleton config - * Upgrades minimum requests version to 2.20.0 for known CVE-2018-18074 - -v1.1.5 ------- - * Looser requirements everywhere, run free! - -v1.1.4 ------- - * Update links in setup.py and docs - -v1.1.3 ------- - * Looser dependency constraint in setup.py - -v1.1.2 ------- - * Allow looser dependency constraint for requests - -v1.1.1 ------- - * Fixed bug when wiremock jar not found. - -v1.1.0 ------- - * Added Ability to stand up wiremock server (requires standalone jar being available). - -v1.0.3 ------- - * Fix support for Python 3.4. - -v1.0.2 ------- - * Wiremock 2.6.x uses 201 response code instead. - -v1.0.1 ------- - * Bug Fix on dictionary klass deserialization fix. - -v1.0.0 ------- - * First Release - included admin feature set for wiremock 2.5.1 standalone - diff --git a/docs/conf.py b/docs/conf.py deleted file mode 100644 index 37a63cd..0000000 --- a/docs/conf.py +++ /dev/null @@ -1,271 +0,0 @@ -# -*- coding: utf-8 -*- -# -# wiremock documentation build configuration file, created by -# sphinx-quickstart on Wed Apr 23 11:58:40 2014. -# -# This file is execfile()d with the current directory set to its -# containing dir. -# -# Note that not all possible configuration values are present in this -# autogenerated file. -# -# All configuration values have a default; values that are commented out -# serve to show the default. - -import sys -import os - -#sys.path.append(os.path.abspath(os.path.join(os.path.dirname(__file__), '../'))) -sys.path.insert(0, os.path.abspath('../')) - -# Check if we're on ReadTheDocs or not -on_rtd = os.environ.get('READTHEDOCS', None) == 'True' - -# If extensions (or modules to document with autodoc) are in another directory, -# add these directories to sys.path here. If the directory is relative to the -# documentation root, use os.path.abspath to make it absolute, like shown here. -#sys.path.insert(0, os.path.abspath('.')) - -# -- General configuration ------------------------------------------------ - -# If your documentation needs a minimal Sphinx version, state it here. -#needs_sphinx = '1.0' - -# Add any Sphinx extension module names here, as strings. They can be -# extensions coming with Sphinx (named 'sphinx.ext.*') or your custom -# ones. -extensions = ['sphinx.ext.autodoc', 'sphinx.ext.autosummary'] - -autosummary_generate = True - -# Add any paths that contain templates here, relative to this directory. -templates_path = ['_templates'] - -# The suffix of source filenames. -source_suffix = '.rst' - -# The encoding of source files. -#source_encoding = 'utf-8-sig' - -# The master toctree document. -master_doc = 'index' - -# General information about the project. -project = u'wiremock' -copyright = u'2017, Cody Lee' - -# The version info for the project you're documenting, acts as replacement for -# |version| and |release|, also used in various other places throughout the -# built documents. -# -# The short X.Y version. -version = open('../wiremock/VERSION', 'r').readline().strip() -# The full version, including alpha/beta/rc tags. -release = version - -# The language for content autogenerated by Sphinx. Refer to documentation -# for a list of supported languages. -#language = None - -# There are two options for replacing |today|: either, you set today to some -# non-false value, then it is used: -#today = '' -# Else, today_fmt is used as the format for a strftime call. -#today_fmt = '%B %d, %Y' - -# List of patterns, relative to source directory, that match files and -# directories to ignore when looking for source files. -exclude_patterns = ['_build', '_templates'] - -# The reST default role (used for this markup: `text`) to use for all -# documents. -#default_role = None - -# If true, '()' will be appended to :func: etc. cross-reference text. -#add_function_parentheses = True - -# If true, the current module name will be prepended to all description -# unit titles (such as .. function::). -#add_module_names = True - -# If true, sectionauthor and moduleauthor directives will be shown in the -# output. They are ignored by default. -#show_authors = False - -# The name of the Pygments (syntax highlighting) style to use. -pygments_style = 'sphinx' - -# A list of ignored prefixes for module index sorting. -#modindex_common_prefix = [] - -# If true, keep warnings as "system message" paragraphs in the built documents. -#keep_warnings = False - - -# -- Options for HTML output ---------------------------------------------- - -# The theme to use for HTML and HTML Help pages. See the documentation for -# a list of builtin themes. -if on_rtd: - html_theme = 'default' -else: - import sphinx_rtd_theme - html_theme = 'sphinx_rtd_theme' - html_theme_path = [sphinx_rtd_theme.get_html_theme_path()] - -# Theme options are theme-specific and customize the look and feel of a theme -# further. For a list of options available for each theme, see the -# documentation. -#html_theme_options = {} - -# Add any paths that contain custom themes here, relative to this directory. -#html_theme_path = [] - -# The name for this set of Sphinx documents. If None, it defaults to -# " v documentation". -#html_title = None - -# A shorter title for the navigation bar. Default is the same as html_title. -#html_short_title = None - -# The name of an image file (relative to this directory) to place at the top -# of the sidebar. -#html_logo = None - -# The name of an image file (within the static path) to use as favicon of the -# docs. This file should be a Windows icon file (.ico) being 16x16 or 32x32 -# pixels large. -#html_favicon = None - -# Add any paths that contain custom static files (such as style sheets) here, -# relative to this directory. They are copied after the builtin static files, -# so a file named "default.css" will overwrite the builtin "default.css". -html_static_path = ['_static'] - -# Add any extra paths that contain custom files (such as robots.txt or -# .htaccess) here, relative to this directory. These files are copied -# directly to the root of the documentation. -#html_extra_path = [] - -# If not '', a 'Last updated on:' timestamp is inserted at every page bottom, -# using the given strftime format. -#html_last_updated_fmt = '%b %d, %Y' - -# If true, SmartyPants will be used to convert quotes and dashes to -# typographically correct entities. -#html_use_smartypants = True - -# Custom sidebar templates, maps document names to template names. -#html_sidebars = {} - -# Additional templates that should be rendered to pages, maps page names to -# template names. -#html_additional_pages = {} - -# If false, no module index is generated. -#html_domain_indices = True - -# If false, no index is generated. -#html_use_index = True - -# If true, the index is split into individual pages for each letter. -#html_split_index = False - -# If true, links to the reST sources are added to the pages. -#html_show_sourcelink = True - -# If true, "Created using Sphinx" is shown in the HTML footer. Default is True. -#html_show_sphinx = True - -# If true, "(C) Copyright ..." is shown in the HTML footer. Default is True. -#html_show_copyright = True - -# If true, an OpenSearch description file will be output, and all pages will -# contain a tag referring to it. The value of this option must be the -# base URL from which the finished HTML is served. -#html_use_opensearch = '' - -# This is the file name suffix for HTML files (e.g. ".xhtml"). -#html_file_suffix = None - -# Output file base name for HTML help builder. -htmlhelp_basename = 'wiremockdoc' - - -# -- Options for LaTeX output --------------------------------------------- - -latex_elements = { -# The paper size ('letterpaper' or 'a4paper'). -#'papersize': 'letterpaper', - -# The font size ('10pt', '11pt' or '12pt'). -#'pointsize': '10pt', - -# Additional stuff for the LaTeX preamble. -#'preamble': '', -} - -# Grouping the document tree into LaTeX files. List of tuples -# (source start file, target name, title, -# author, documentclass [howto, manual, or own class]). -latex_documents = [ - ('index', 'wiremock.tex', u'wiremock Documentation', - u'Cody Lee', 'manual'), -] - -# The name of an image file (relative to this directory) to place at the top of -# the title page. -#latex_logo = None - -# For "manual" documents, if this is true, then toplevel headings are parts, -# not chapters. -#latex_use_parts = False - -# If true, show page references after internal links. -#latex_show_pagerefs = False - -# If true, show URL addresses after external links. -#latex_show_urls = False - -# Documents to append as an appendix to all manuals. -#latex_appendices = [] - -# If false, no module index is generated. -#latex_domain_indices = True - - -# -- Options for manual page output --------------------------------------- - -# One entry per manual page. List of tuples -# (source start file, name, description, authors, manual section). -man_pages = [ - ('index', 'wiremock', u'wiremock Documentation', - [u'Cody Lee'], 1) -] - -# If true, show URL addresses after external links. -#man_show_urls = False - - -# -- Options for Texinfo output ------------------------------------------- - -# Grouping the document tree into Texinfo files. List of tuples -# (source start file, target name, title, author, -# dir menu entry, description, category) -texinfo_documents = [ - ('index', 'wiremock', u'wiremock Documentation', - u'Cody Lee', 'wiremock', 'One line description of project.', - 'Miscellaneous'), -] - -# Documents to append as an appendix to all manuals. -#texinfo_appendices = [] - -# If false, no module index is generated. -#texinfo_domain_indices = True - -# How to display URL addresses: 'footnote', 'no', or 'inline'. -#texinfo_show_urls = 'footnote' - -# If true, do not generate a @detailmenu in the "Top" node's menu. -#texinfo_no_detailmenu = False diff --git a/docs/examples.md b/docs/examples.md new file mode 100644 index 0000000..e434ad9 --- /dev/null +++ b/docs/examples.md @@ -0,0 +1,17 @@ +# Python WireMock examples + +- [quickstart](https://github.com/wiremock/python-wiremock/tree/master/examples/quickstart) - + example for the[Quick Start Guide](./quickstart.md) +- [intro](https://github.com/wiremock/python-wiremock/tree/master/examples/intro) - + End-to-End example for both Testcontainers module + and native `pytest` integration. + +## External examples + +No external examples are referenced at the moment. +Please be welcome to [contribute](./CONTRIBUTING.md)! + +## Contributing examples + +More examples are always welcome! +See the [Contributor Guide](./CONTRIBUTING.md). diff --git a/docs/images/python-wiremock-horizontal.png b/docs/images/python-wiremock-horizontal.png new file mode 100644 index 0000000..49ea347 Binary files /dev/null and b/docs/images/python-wiremock-horizontal.png differ diff --git a/docs/images/python-wiremock-logo.png b/docs/images/python-wiremock-logo.png new file mode 100644 index 0000000..e57ffc2 Binary files /dev/null and b/docs/images/python-wiremock-logo.png differ diff --git a/docs/images/python-wiremock-logo.svg b/docs/images/python-wiremock-logo.svg new file mode 100644 index 0000000..b1afff8 --- /dev/null +++ b/docs/images/python-wiremock-logo.svg @@ -0,0 +1,242 @@ + + + + + + + + image/svg+xml + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + diff --git a/docs/images/python-wiremock-opengraph.png b/docs/images/python-wiremock-opengraph.png new file mode 100644 index 0000000..96b5957 Binary files /dev/null and b/docs/images/python-wiremock-opengraph.png differ diff --git a/docs/index.md b/docs/index.md new file mode 100644 index 0000000..4bca325 --- /dev/null +++ b/docs/index.md @@ -0,0 +1,43 @@ +# Python WireMock + +Python WireMock is an HTTP client that allows users to interact with a WireMock instance from within a Python project. + +[![a](https://img.shields.io/badge/slack-%23wiremock%2Fpython-brightgreen?style=flat&logo=slack)](https://slack.wiremock.org/) + +## Key Features + +WireMock can run in unit tests, as a standalone process or a container, or in the cloud. +Python WireMock enables all these usage modes. +Key features include: + +- [Testcontainers Python](https://github.com/testcontainers/testcontainers-python) module to easily start WireMock server for your tests +- REST API Client for a standalone WireMock Java server +- Supports most of the major [Wiremock](https://wiremock.org/docs) features (more on their way soon) + +## Documentation + +- [Quickstart](./quickstart.md) +- [Installation](./install.md) +- [Testcontainers module](./testcontainers.md) +- [Using with standalone WireMock](./api-client.md) + +## Links + +- WireMock Standalone: +- Documentation: +- Official Repository: +- Package: + + diff --git a/docs/index.rst b/docs/index.rst deleted file mode 100644 index 4c8e2c0..0000000 --- a/docs/index.rst +++ /dev/null @@ -1,56 +0,0 @@ -.. _home: - -wiremock -======== - -wiremock is a HTTP client to the WireMock standalone admin API. - - -Links ------ - -* Documentation: https://wiremock.readthedocs.io/en/latest/ -* Official Repository: https://github.com/platinummonkey/python-wiremock.git -* Package: TODO - -wiremock is known to support Python 3.7. - - -.. _download: - -Download --------- - -PyPI: TODO - -.. code-block:: sh - - $ pip install wiremock - -Source: https://github.com/platinummonkey/python-wiremock.git - -.. code-block:: sh - - $ git clone TODO - $ python setup.py install - - -Contents --------- - -.. toctree:: - :maxdepth: 2 - - Home - quickstart - internals/index - changelog - - -Indices and tables -================== - -* :ref:`genindex` -* :ref:`modindex` -* :ref:`search` - diff --git a/docs/install.md b/docs/install.md new file mode 100644 index 0000000..3fefc2a --- /dev/null +++ b/docs/install.md @@ -0,0 +1,32 @@ +# Installation + +## Requirements + +Python WireMock is known to support Python 3.9 or above. + +## Pip + +To install: + + `pip install wiremock` + +To install with testing dependencies: + + `pip install wiremock[testing]` + +## Poetry + +To install via Poetry: + + `poetry add wiremock` + +Or: + +```bash +git clone [TODO](https://github.com/wiremock/python-wiremock.git) +poetry install +``` + +To install with testing dependencies: + + `poetry add --extras=testing wiremock` diff --git a/docs/internals/base.rst b/docs/internals/base.rst deleted file mode 100644 index c1e6b3f..0000000 --- a/docs/internals/base.rst +++ /dev/null @@ -1,15 +0,0 @@ -.. _internals_base: - -Base -==== - -.. automodule:: wiremock.base.base_entity - :members: - :inherited-members: - :undoc-members: - - -.. automodule:: wiremock.base.base_resource - :members: - :inherited-members: - :undoc-members: diff --git a/docs/internals/constants.rst b/docs/internals/constants.rst deleted file mode 100644 index e4b8b22..0000000 --- a/docs/internals/constants.rst +++ /dev/null @@ -1,9 +0,0 @@ -.. _internals_constants: - -Constants -========= - -.. automodule:: wiremock.constants - :members: - :inherited-members: - :undoc-members: diff --git a/docs/internals/exceptions.rst b/docs/internals/exceptions.rst deleted file mode 100644 index de669f4..0000000 --- a/docs/internals/exceptions.rst +++ /dev/null @@ -1,9 +0,0 @@ -.. _internals_exceptions: - -Exceptions -========== - -.. automodule:: wiremock.exceptions.api_exception - :members: - :inherited-members: - :undoc-members: diff --git a/docs/internals/index.rst b/docs/internals/index.rst deleted file mode 100644 index c38acf0..0000000 --- a/docs/internals/index.rst +++ /dev/null @@ -1,12 +0,0 @@ -.. _reference: - -Reference -========= - -.. toctree:: - :maxdepth: 2 - - base - constants - exceptions - resources diff --git a/docs/internals/resources.rst b/docs/internals/resources.rst deleted file mode 100644 index dfa9850..0000000 --- a/docs/internals/resources.rst +++ /dev/null @@ -1,13 +0,0 @@ -.. _internals_resources: - -Resources -========= - -.. toctree:: - :maxdepth: 2 - - resources/mappings - resources/nearmisses - resources/requests - resources/scenarios - resources/settings diff --git a/docs/internals/resources/mappings.rst b/docs/internals/resources/mappings.rst deleted file mode 100644 index 8d85cea..0000000 --- a/docs/internals/resources/mappings.rst +++ /dev/null @@ -1,14 +0,0 @@ -.. _internals_resources_mappings: - -Resources: Mappings -=================== - -.. automodule:: wiremock.resources.mappings.models - :members: - :inherited-members: - :undoc-members: - -.. automodule:: wiremock.resources.mappings.resource - :members: - :inherited-members: - :undoc-members: diff --git a/docs/internals/resources/nearmisses.rst b/docs/internals/resources/nearmisses.rst deleted file mode 100644 index defb91e..0000000 --- a/docs/internals/resources/nearmisses.rst +++ /dev/null @@ -1,14 +0,0 @@ -.. _internals_resources_nearmisses: - -Resources: Near Misses -====================== - -.. automodule:: wiremock.resources.near_misses.models - :members: - :inherited-members: - :undoc-members: - -.. automodule:: wiremock.resources.near_misses.resource - :members: - :inherited-members: - :undoc-members: diff --git a/docs/internals/resources/requests.rst b/docs/internals/resources/requests.rst deleted file mode 100644 index e7742ae..0000000 --- a/docs/internals/resources/requests.rst +++ /dev/null @@ -1,14 +0,0 @@ -.. _internals_resources_requests: - -Resources: Requests -=================== - -.. automodule:: wiremock.resources.requests.models - :members: - :inherited-members: - :undoc-members: - -.. automodule:: wiremock.resources.requests.resource - :members: - :inherited-members: - :undoc-members: diff --git a/docs/internals/resources/scenarios.rst b/docs/internals/resources/scenarios.rst deleted file mode 100644 index 322ded8..0000000 --- a/docs/internals/resources/scenarios.rst +++ /dev/null @@ -1,14 +0,0 @@ -.. _internals_resources_scenario: - -Resources: Scenarios -==================== - -.. automodule:: wiremock.resources.scenarios.models - :members: - :inherited-members: - :undoc-members: - -.. automodule:: wiremock.resources.scenarios.resource - :members: - :inherited-members: - :undoc-members: diff --git a/docs/internals/resources/settings.rst b/docs/internals/resources/settings.rst deleted file mode 100644 index 411d9ee..0000000 --- a/docs/internals/resources/settings.rst +++ /dev/null @@ -1,14 +0,0 @@ -.. _internals_resources_settings: - -Resources: Settings -=================== - -.. automodule:: wiremock.resources.settings.models - :members: - :inherited-members: - :undoc-members: - -.. automodule:: wiremock.resources.settings.resource - :members: - :inherited-members: - :undoc-members: diff --git a/docs/make.bat b/docs/make.bat deleted file mode 100644 index 2ebb176..0000000 --- a/docs/make.bat +++ /dev/null @@ -1,242 +0,0 @@ -@ECHO OFF - -REM Command file for Sphinx documentation - -if "%SPHINXBUILD%" == "" ( - set SPHINXBUILD=sphinx-build -) -set BUILDDIR=_build -set ALLSPHINXOPTS=-d %BUILDDIR%/doctrees %SPHINXOPTS% . -set I18NSPHINXOPTS=%SPHINXOPTS% . -if NOT "%PAPER%" == "" ( - set ALLSPHINXOPTS=-D latex_paper_size=%PAPER% %ALLSPHINXOPTS% - set I18NSPHINXOPTS=-D latex_paper_size=%PAPER% %I18NSPHINXOPTS% -) - -if "%1" == "" goto help - -if "%1" == "help" ( - :help - echo.Please use `make ^` where ^ is one of - echo. html to make standalone HTML files - echo. dirhtml to make HTML files named index.html in directories - echo. singlehtml to make a single large HTML file - echo. pickle to make pickle files - echo. json to make JSON files - echo. htmlhelp to make HTML files and a HTML help project - echo. qthelp to make HTML files and a qthelp project - echo. devhelp to make HTML files and a Devhelp project - echo. epub to make an epub - echo. latex to make LaTeX files, you can set PAPER=a4 or PAPER=letter - echo. text to make text files - echo. man to make manual pages - echo. texinfo to make Texinfo files - echo. gettext to make PO message catalogs - echo. changes to make an overview over all changed/added/deprecated items - echo. xml to make Docutils-native XML files - echo. pseudoxml to make pseudoxml-XML files for display purposes - echo. linkcheck to check all external links for integrity - echo. doctest to run all doctests embedded in the documentation if enabled - goto end -) - -if "%1" == "clean" ( - for /d %%i in (%BUILDDIR%\*) do rmdir /q /s %%i - del /q /s %BUILDDIR%\* - goto end -) - - -%SPHINXBUILD% 2> nul -if errorlevel 9009 ( - echo. - echo.The 'sphinx-build' command was not found. Make sure you have Sphinx - echo.installed, then set the SPHINXBUILD environment variable to point - echo.to the full path of the 'sphinx-build' executable. Alternatively you - echo.may add the Sphinx directory to PATH. - echo. - echo.If you don't have Sphinx installed, grab it from - echo.http://sphinx-doc.org/ - exit /b 1 -) - -if "%1" == "html" ( - %SPHINXBUILD% -b html %ALLSPHINXOPTS% %BUILDDIR%/html - if errorlevel 1 exit /b 1 - echo. - echo.Build finished. The HTML pages are in %BUILDDIR%/html. - goto end -) - -if "%1" == "dirhtml" ( - %SPHINXBUILD% -b dirhtml %ALLSPHINXOPTS% %BUILDDIR%/dirhtml - if errorlevel 1 exit /b 1 - echo. - echo.Build finished. The HTML pages are in %BUILDDIR%/dirhtml. - goto end -) - -if "%1" == "singlehtml" ( - %SPHINXBUILD% -b singlehtml %ALLSPHINXOPTS% %BUILDDIR%/singlehtml - if errorlevel 1 exit /b 1 - echo. - echo.Build finished. The HTML pages are in %BUILDDIR%/singlehtml. - goto end -) - -if "%1" == "pickle" ( - %SPHINXBUILD% -b pickle %ALLSPHINXOPTS% %BUILDDIR%/pickle - if errorlevel 1 exit /b 1 - echo. - echo.Build finished; now you can process the pickle files. - goto end -) - -if "%1" == "json" ( - %SPHINXBUILD% -b json %ALLSPHINXOPTS% %BUILDDIR%/json - if errorlevel 1 exit /b 1 - echo. - echo.Build finished; now you can process the JSON files. - goto end -) - -if "%1" == "htmlhelp" ( - %SPHINXBUILD% -b htmlhelp %ALLSPHINXOPTS% %BUILDDIR%/htmlhelp - if errorlevel 1 exit /b 1 - echo. - echo.Build finished; now you can run HTML Help Workshop with the ^ -.hhp project file in %BUILDDIR%/htmlhelp. - goto end -) - -if "%1" == "qthelp" ( - %SPHINXBUILD% -b qthelp %ALLSPHINXOPTS% %BUILDDIR%/qthelp - if errorlevel 1 exit /b 1 - echo. - echo.Build finished; now you can run "qcollectiongenerator" with the ^ -.qhcp project file in %BUILDDIR%/qthelp, like this: - echo.^> qcollectiongenerator %BUILDDIR%\qthelp\wiremock.qhcp - echo.To view the help file: - echo.^> assistant -collectionFile %BUILDDIR%\qthelp\wiremock.ghc - goto end -) - -if "%1" == "devhelp" ( - %SPHINXBUILD% -b devhelp %ALLSPHINXOPTS% %BUILDDIR%/devhelp - if errorlevel 1 exit /b 1 - echo. - echo.Build finished. - goto end -) - -if "%1" == "epub" ( - %SPHINXBUILD% -b epub %ALLSPHINXOPTS% %BUILDDIR%/epub - if errorlevel 1 exit /b 1 - echo. - echo.Build finished. The epub file is in %BUILDDIR%/epub. - goto end -) - -if "%1" == "latex" ( - %SPHINXBUILD% -b latex %ALLSPHINXOPTS% %BUILDDIR%/latex - if errorlevel 1 exit /b 1 - echo. - echo.Build finished; the LaTeX files are in %BUILDDIR%/latex. - goto end -) - -if "%1" == "latexpdf" ( - %SPHINXBUILD% -b latex %ALLSPHINXOPTS% %BUILDDIR%/latex - cd %BUILDDIR%/latex - make all-pdf - cd %BUILDDIR%/.. - echo. - echo.Build finished; the PDF files are in %BUILDDIR%/latex. - goto end -) - -if "%1" == "latexpdfja" ( - %SPHINXBUILD% -b latex %ALLSPHINXOPTS% %BUILDDIR%/latex - cd %BUILDDIR%/latex - make all-pdf-ja - cd %BUILDDIR%/.. - echo. - echo.Build finished; the PDF files are in %BUILDDIR%/latex. - goto end -) - -if "%1" == "text" ( - %SPHINXBUILD% -b text %ALLSPHINXOPTS% %BUILDDIR%/text - if errorlevel 1 exit /b 1 - echo. - echo.Build finished. The text files are in %BUILDDIR%/text. - goto end -) - -if "%1" == "man" ( - %SPHINXBUILD% -b man %ALLSPHINXOPTS% %BUILDDIR%/man - if errorlevel 1 exit /b 1 - echo. - echo.Build finished. The manual pages are in %BUILDDIR%/man. - goto end -) - -if "%1" == "texinfo" ( - %SPHINXBUILD% -b texinfo %ALLSPHINXOPTS% %BUILDDIR%/texinfo - if errorlevel 1 exit /b 1 - echo. - echo.Build finished. The Texinfo files are in %BUILDDIR%/texinfo. - goto end -) - -if "%1" == "gettext" ( - %SPHINXBUILD% -b gettext %I18NSPHINXOPTS% %BUILDDIR%/locale - if errorlevel 1 exit /b 1 - echo. - echo.Build finished. The message catalogs are in %BUILDDIR%/locale. - goto end -) - -if "%1" == "changes" ( - %SPHINXBUILD% -b changes %ALLSPHINXOPTS% %BUILDDIR%/changes - if errorlevel 1 exit /b 1 - echo. - echo.The overview file is in %BUILDDIR%/changes. - goto end -) - -if "%1" == "linkcheck" ( - %SPHINXBUILD% -b linkcheck %ALLSPHINXOPTS% %BUILDDIR%/linkcheck - if errorlevel 1 exit /b 1 - echo. - echo.Link check complete; look for any errors in the above output ^ -or in %BUILDDIR%/linkcheck/output.txt. - goto end -) - -if "%1" == "doctest" ( - %SPHINXBUILD% -b doctest %ALLSPHINXOPTS% %BUILDDIR%/doctest - if errorlevel 1 exit /b 1 - echo. - echo.Testing of doctests in the sources finished, look at the ^ -results in %BUILDDIR%/doctest/output.txt. - goto end -) - -if "%1" == "xml" ( - %SPHINXBUILD% -b xml %ALLSPHINXOPTS% %BUILDDIR%/xml - if errorlevel 1 exit /b 1 - echo. - echo.Build finished. The XML files are in %BUILDDIR%/xml. - goto end -) - -if "%1" == "pseudoxml" ( - %SPHINXBUILD% -b pseudoxml %ALLSPHINXOPTS% %BUILDDIR%/pseudoxml - if errorlevel 1 exit /b 1 - echo. - echo.Build finished. The pseudo-XML files are in %BUILDDIR%/pseudoxml. - goto end -) - -:end diff --git a/docs/quickstart.md b/docs/quickstart.md new file mode 100644 index 0000000..c2cd085 --- /dev/null +++ b/docs/quickstart.md @@ -0,0 +1,101 @@ +# Quickstart + +The preferred way of using WireMock to mock your services is by using the provided `WireMockContainer` +that uses [testcontainers-python](https://github.com/testcontainers/testcontainers-python) +and provisions WireMock as a test container on-demand. + +In this example we will use the [pytest](https://docs.pytest.org/) framework. + +## Prerequisites + +- Python 3.9 or above +- Pip 20.0.0 or above (use `apt install python3-pip`, for example) +- Pytest 7.3.0 or above (use `pip install pytest`) +- Testcontainers 3.5.0 or above (use `pip install testcontainers`) + +## Install Python WireMock + +To install the most recent version of the Python WireMock library, +use the following command: + +```bash +pip install wiremock +``` + +## Create the Test Fixture + +As a first step, we will need to provision a test WireMock server to be used in tests: + +1. Create an empty `test.py` file +2. In this file, create a pytest fixture to manage the container life-cycle. + Use fixture `scope` to control how often the container is created +3. Set the WireMock SDK config URL to the URL exposed by the container. + It will route all Admin API requests to + the mock server. +4. Create REST API stub mapping for the `/hello` endpoint using the Admin SDK. + +```python +import pytest +import requests + +from wiremock.testing.testcontainer import wiremock_container +from wiremock.constants import Config +from wiremock.client import * + +@pytest.fixture # (1) +def wiremock_server(): + with wiremock_container(secure=False) as wm: + Config.base_url = wm.get_url("__admin") # (2) + Mappings.create_mapping( + Mapping( + request=MappingRequest(method=HttpMethods.GET, url="/hello"), + response=MappingResponse(status=200, body="hello"), + persistent=False, + ) + ) # (3) + yield wm +``` + +## Write your first test with WireMock + +Use the `wiremock_server` fixture in your tests and make requests against the mock server. +Add the following test to the `test.py` file: + +```python +def test_get_hello_world(wiremock_server): # (4) + response = requests.get(wiremock_server.get_url("/hello")) + + assert response.status_code == 200 + assert response.content == b"hello" +``` + +## Run the test! + +Run the following command: + +```bash +pytest test.py -v +``` + +Sample output: + +``` +$ pytest test.py -v +================ test session starts ================ +platform linux -- Python 3.8.10, pytest-7.4.0, pluggy-1.2.0 -- /usr/bin/python3 +cachedir: .pytest_cache +rootdir: /c/Users/Oleg/Documents/opensource/wiremock/python-wiremock +configfile: pyproject.toml +plugins: anyio-3.7.1 +collected 1 item + +test.py::test_get_hello_world PASSED [100%] +``` + +## Read More + +You can read more about Testcontainers support in Python WireMock [here](./testcontainers.md). + +## More examples + +See [this page](./examples.md) for more example references diff --git a/docs/quickstart.py b/docs/quickstart.py deleted file mode 100644 index 5ef186a..0000000 --- a/docs/quickstart.py +++ /dev/null @@ -1,25 +0,0 @@ -from wiremock.constants import Config -from wiremock.client import * - -Config.base_url = 'https://mockserver.example.com/__admin/' -# Optionally set a custom cert path: -# Config.requests_cert = ... (See requests documentation) -# Optionally disable cert verification -# Config.requests_verify = False - -mapping = Mapping( - priority=100, - request=MappingRequest( - method=HttpMethods.GET, - url='/hello' - ), - response=MappingResponse( - status=200, - body='hi' - ), - persistent=False, -) - -mapping = Mappings.create_mapping(mapping=mapping) - -all_mappings = Mappings.retrieve_all_mappings() diff --git a/docs/quickstart.rst b/docs/quickstart.rst deleted file mode 100644 index 8610127..0000000 --- a/docs/quickstart.rst +++ /dev/null @@ -1,33 +0,0 @@ -.. _quickstart: - -Quick Start -=========== - -An example app: - -.. literalinclude:: quickstart.py - :language: python - :linenos: - -An example of starting WireMock server with a context manager: - -.. literalinclude:: server_cm.py - :language: python - :linenos: - - -An example of starting WireMock server in a unittest.TestCase: - -.. literalinclude:: server_ut.py - :language: python - :linenos: - -Customizing the path to java: - - WireMockServer(java_path='/path/to/my/java') - -Customizing the WireMock server JAR file: - - WireMockServer(jar_path='/my/secret/location/wiremock-standalone-2.0.0.jar') - - diff --git a/docs/server_cm.py b/docs/server_cm.py deleted file mode 100644 index 2d66763..0000000 --- a/docs/server_cm.py +++ /dev/null @@ -1,4 +0,0 @@ -with WireMockServer() as wm: - Config.base_url = 'http://localhost:{}/__admin'.format(wm.port) - Mappings.create_mapping(...) # Set up stubs - requests.get(...) # Make API calls diff --git a/docs/server_ut.py b/docs/server_ut.py deleted file mode 100644 index e71432e..0000000 --- a/docs/server_ut.py +++ /dev/null @@ -1,13 +0,0 @@ - -class MyTestClassBase(TestCase): - @classmethod - def setUpClass(cls): - wm = self.wiremock_server = WireMockServer() - wm.start() - Config.base_url = 'http://localhost:{}/__admin'.format(wm.port) - - @classmethod - def tearDownClass(cls): - self.wiremock_server.stop() - - diff --git a/docs/testcontainers.md b/docs/testcontainers.md new file mode 100644 index 0000000..3447c51 --- /dev/null +++ b/docs/testcontainers.md @@ -0,0 +1,141 @@ +# Testcontainers module + +Python WireMock ships with support for [testcontainers-wiremock](https://github.com/testcontainers/testcontainers-python) to easily start WireMock server from your test suite using Python. + +## Using the context manager + +The simplest way to integrate the WireMock container into your test suite is to use the `wiremock_container` context manager. For pytest users this can be +used in conjuction with a pytest fixture to easily manage the life-cycle of the container. + +```python +import pytest + +from wiremock.testing.testcontainer import wiremock_container + +@pytest.fixture(scope="session") # (1) +def wm_server(): + with wiremock_container(secure=False) as wm: + + Config.base_url = wm.get_url("__admin") # (2) + + Mappings.create_mapping( + Mapping( + request=MappingRequest(method=HttpMethods.GET, url="/hello"), + response=MappingResponse(status=200, body="hello"), + persistent=False, + ) + ) # (3) + yield wm + + +def test_get_hello_world(wm_server): # (4) + + resp1 = requests.get(wm_server.get_url("/hello"), verify=False) + + assert resp1.status_code == 200 + assert resp1.content == b"hello" +``` + +1. Create a pytest fixture to manage the container life-cycle. use fixture `scope` to control how often the container is created + +2. Set the wiremock sdk config url to the url exposed by the container + +3. Create response and request mappings using the Admin SDK. + +4. Use the `wm_server` fixture in your tests and make requests against the mock server. + +The context manager will automatically start the container. This is typically what you want as any attempts to generate urls to the contianer when it's not running will result in errors. + +If you do need to start the container manually yourself, you can pass `start=False` to the context manager and the context manager will simply yield the instance of the container without starting it. + +The `wiremock_container` also supports generating mapping request and response files for you via the mappings kwarg. + +```python + +@pytest.mark.container_test +def test_configure_via_wiremock_container_context_manager(): + + mappings = [ + ( + "hello-world.json", + { + "request": {"method": "GET", "url": "/hello"}, + "response": {"status": 200, "body": "hello"}, + }, + ) + ] + + with wiremock_container(mappings=mappings, verify_ssl_certs=False) as wm: + + resp1 = requests.get(wm.get_url("/hello"), verify=False) + assert resp1.status_code == 200 + assert resp1.content == b"hello" +``` + +The `wiremock_container` context manager offers a number of other useful options to help to configure the container. See the `wirewmock.testing.testcontainer.wiremock_container` method for the full description +of options. + +## Using the WireMockContainer directly + +You can also instantiate the container instance yourself using `WireMockContainer`. The container itself provides methods for creating mapping files and stubs on the container instance which can be used as an alternative +if you maintain your request and response stubs as files. + +```python +WireMockContainer(verify_ssl_certs=False) + .with_mapping( + "hello-world.json", + { + "request": {"method": "GET", "url": "/hello"}, + "response": {"status": 200, "body": "hello"}, + }, + ) + .with_mapping( + "hello-world-file.json", + { + "request": {"method": "GET", "url": "/hello2"}, + "response": {"status": 200, "bodyFileName": "hello.json"}, + }, + ) + .with_file("hello.json", {"message": "Hello World !"}) + .with_cli_arg("--verbose", "") + .with_cli_arg("--root-dir", "/home/wiremock") + .with_env("JAVA_OPTS", "-Djava.net.preferIPv4Stack=true") +) +``` + +## Using WireMockContainer inside Docker (dind) + +It's common that you might need to start Testcontainers from inside of another container. The example project in `example/docker-compose.yml` actually does this. + +When running spawning testcontainer inside of another container you will need to set the `WIREMOCK_DIND` config variable to true. When this env var is set the host of the wiremock container +will explicitly be set to `host.docker.internal`. + +Let's take a look at the example docker-compose.yaml the example products service uses. + +```yaml +version: "3" + +services: + overview_srv: + build: + context: ../ + dockerfile: examples/intro/Dockerfile + ports: + - "5001:5001" + environment: + - WIREMOCK_DIND=true # (1) Set the env var + extra_hosts: + - "host.docker.internal:host-gateway" # (2) + volumes: + - /var/run/docker.sock:/var/run/docker.sock # (3) + - ..:/app/ + - .:/app/example/ + command: uvicorn product_mock.overview_service:app --host=0.0.0.0 --port=5001 +``` + +1. Set the environment variable to instruct WireMockContainer that we're running in `DIND` mode. + +2. Map the host.docker.internal to host-gateway. Docker will magically replace the host-gateway value with the ip of the container. + This mapping is required when using dind on certain CI system like github actions. + +3. Mount the docker binary into the container diff --git a/examples/README.md b/examples/README.md new file mode 100644 index 0000000..a4829d1 --- /dev/null +++ b/examples/README.md @@ -0,0 +1,15 @@ +# Python WireMock examples + +- [Quick Start Guide](./quickstart/) +- [End-to-End Example](./intro/) for + both Testcontainers module and native + pytest integration. + +## External examples + +No external examples are referenced at the moment. +Please be welcome to [contribute](../docs/CONTRIBUTING.md)! + +## Contributing + +Feel free to contribute the examples! diff --git a/examples/intro/.flake8 b/examples/intro/.flake8 new file mode 100644 index 0000000..02c7814 --- /dev/null +++ b/examples/intro/.flake8 @@ -0,0 +1,5 @@ +[flake8] +ignore = E203, E266, E501, W503, F403 +max-line-length = 88 +max-complexity = 18 +select = B,C,E,F,W,T4,B9 diff --git a/examples/intro/Dockerfile b/examples/intro/Dockerfile new file mode 100644 index 0000000..b06aa66 --- /dev/null +++ b/examples/intro/Dockerfile @@ -0,0 +1,33 @@ +# vim: set filetype=Dockerfile: +FROM python:3.11-slim-bookworm + +ENV POETRY_HOME="/opt/poetry" \ + POETRY_VIRTUALENVS_CREATE=false \ + POETRY_NO_INTERACTION=1 + +# Prepend poetry and venv to path +ENV PATH="$POETRY_HOME/bin:$VENV_PATH/bin:$PATH" + +RUN apt-get update && apt-get install --no-install-recommends -y curl default-jre-headless \ + && curl -sSL https://install.python-poetry.org | python + +# Update poetry to latest version +RUN poetry self update + +WORKDIR /app/example + +# Install dependencies +COPY . /app +COPY ./examples/intro/pyproject.toml ./examples/intro/poetry.lock /app/example/ +RUN poetry config virtualenvs.create false \ + && poetry install --no-root --no-interaction --no-ansi + + +# Copy the rest of the application code +COPY ./examples/intro /app/example + +# Expose the port that the FastAPI app will listen on +EXPOSE 5001 +EXPOSE 5002 + +CMD ["python"] diff --git a/examples/intro/README.md b/examples/intro/README.md new file mode 100644 index 0000000..cdc054a --- /dev/null +++ b/examples/intro/README.md @@ -0,0 +1,51 @@ +# Python Wiremock End-to-End Example + +## Introduction + +This example code demonstrates usage of python wiremock. The example code demonstrates a fictional set of microservices +where the `overview_service` depends on the display of products returned from the `products_service`. + +When the services are run normally the Overview service makes a request to the Products services and the list of +products returned by the Product Service is displayed to the user. + +``` ++-----------------+ +-----------------+ +| Overview Service| | Products Service| ++-----------------+ +-----------------+ + | | + | GET /products | + |--------------------------------->| + | | + | List of products | + |<---------------------------------| + | | + | Display products to user | + |--------------------------------->| + | | +``` + +When we are writing tests to ensure that the Overview Service works correctly, we do not want to have the overview service +have to depend on real requests being made to the products services. This normally leads to the code being mocked, and other approaches that +are hard to maintain and dont allow us to test the code closer to real world conditions. + +Ultimately, we want a real http request to happen under test conditions so that the tests and the code operate as if the products +services is running and returning actual http responses. In tests we also need to be able to control what this system returns +so that we can assert the code acts in certain ways when it gets certain responses from the server. + +This is what python-wiremock helps to solve. + +The example code demonstrates how to use python-wiremock to run a test server directly from our tests that give us +full control over how the mock service should handle our requests. We can generate respones directly from the tests +to allow us to write solid integration tests that dont involved mockig the code we're trying to test. + +## Running the tests + +To run the tests use docker-compose to create the necessary containers. + +`docker compose run overview_srv pytest --tb=short` + +## How we use this example code base + +As well as serving as a working example of how to work with python wiremock, this example code base is also used as a "e2e" test suite of sorts. +The docker-compose configuration bundles the python-wiremock code directly into the container so that we can actually iterate on changes against a +real world example. diff --git a/examples/intro/docker-compose.yml b/examples/intro/docker-compose.yml new file mode 100644 index 0000000..0192c5e --- /dev/null +++ b/examples/intro/docker-compose.yml @@ -0,0 +1,29 @@ +version: "3" + +services: + overview_srv: + build: + context: ../../ + dockerfile: examples/intro/Dockerfile + ports: + - "5001:5001" + environment: + - WIREMOCK_DIND=true + extra_hosts: + - "host.docker.internal:host-gateway" + volumes: + - /var/run/docker.sock:/var/run/docker.sock + - ../../:/app/ + - .:/app/example/ + command: uvicorn product_mock.overview_service:app --host=0.0.0.0 --port=5001 + + products_srv: + build: + context: ../../ + dockerfile: examples/intro/Dockerfile + ports: + - "5002:5002" + volumes: + - ../../:/app/ + - .:/app/example/ + command: uvicorn product_mock.products_service:app --host=0.0.0.0 --port=5002 diff --git a/examples/intro/poetry.lock b/examples/intro/poetry.lock new file mode 100644 index 0000000..409322c --- /dev/null +++ b/examples/intro/poetry.lock @@ -0,0 +1,870 @@ +# This file is automatically @generated by Poetry 1.4.0 and should not be changed by hand. + +[[package]] +name = "anyio" +version = "3.6.2" +description = "High level compatibility layer for multiple asynchronous event loop implementations" +category = "main" +optional = false +python-versions = ">=3.6.2" +files = [ + {file = "anyio-3.6.2-py3-none-any.whl", hash = "sha256:fbbe32bd270d2a2ef3ed1c5d45041250284e31fc0a4df4a5a6071842051a51e3"}, + {file = "anyio-3.6.2.tar.gz", hash = "sha256:25ea0d673ae30af41a0c442f81cf3b38c7e79fdc7b60335a4c14e05eb0947421"}, +] + +[package.dependencies] +idna = ">=2.8" +sniffio = ">=1.1" + +[package.extras] +doc = ["packaging", "sphinx-autodoc-typehints (>=1.2.0)", "sphinx-rtd-theme"] +test = ["contextlib2", "coverage[toml] (>=4.5)", "hypothesis (>=4.0)", "mock (>=4)", "pytest (>=7.0)", "pytest-mock (>=3.6.1)", "trustme", "uvloop (<0.15)", "uvloop (>=0.15)"] +trio = ["trio (>=0.16,<0.22)"] + +[[package]] +name = "black" +version = "23.3.0" +description = "The uncompromising code formatter." +category = "dev" +optional = false +python-versions = ">=3.7" +files = [ + {file = "black-23.3.0-cp310-cp310-macosx_10_16_arm64.whl", hash = "sha256:0945e13506be58bf7db93ee5853243eb368ace1c08a24c65ce108986eac65915"}, + {file = "black-23.3.0-cp310-cp310-macosx_10_16_universal2.whl", hash = "sha256:67de8d0c209eb5b330cce2469503de11bca4085880d62f1628bd9972cc3366b9"}, + {file = "black-23.3.0-cp310-cp310-macosx_10_16_x86_64.whl", hash = "sha256:7c3eb7cea23904399866c55826b31c1f55bbcd3890ce22ff70466b907b6775c2"}, + {file = "black-23.3.0-cp310-cp310-manylinux_2_17_x86_64.manylinux2014_x86_64.whl", hash = "sha256:32daa9783106c28815d05b724238e30718f34155653d4d6e125dc7daec8e260c"}, + {file = "black-23.3.0-cp310-cp310-win_amd64.whl", hash = "sha256:35d1381d7a22cc5b2be2f72c7dfdae4072a3336060635718cc7e1ede24221d6c"}, + {file = "black-23.3.0-cp311-cp311-macosx_10_16_arm64.whl", hash = "sha256:a8a968125d0a6a404842fa1bf0b349a568634f856aa08ffaff40ae0dfa52e7c6"}, + {file = "black-23.3.0-cp311-cp311-macosx_10_16_universal2.whl", hash = "sha256:c7ab5790333c448903c4b721b59c0d80b11fe5e9803d8703e84dcb8da56fec1b"}, + {file = "black-23.3.0-cp311-cp311-macosx_10_16_x86_64.whl", hash = "sha256:a6f6886c9869d4daae2d1715ce34a19bbc4b95006d20ed785ca00fa03cba312d"}, + {file = "black-23.3.0-cp311-cp311-manylinux_2_17_x86_64.manylinux2014_x86_64.whl", hash = "sha256:6f3c333ea1dd6771b2d3777482429864f8e258899f6ff05826c3a4fcc5ce3f70"}, + {file = "black-23.3.0-cp311-cp311-win_amd64.whl", hash = "sha256:11c410f71b876f961d1de77b9699ad19f939094c3a677323f43d7a29855fe326"}, + {file = "black-23.3.0-cp37-cp37m-macosx_10_16_x86_64.whl", hash = "sha256:1d06691f1eb8de91cd1b322f21e3bfc9efe0c7ca1f0e1eb1db44ea367dff656b"}, + {file = "black-23.3.0-cp37-cp37m-manylinux_2_17_x86_64.manylinux2014_x86_64.whl", hash = "sha256:50cb33cac881766a5cd9913e10ff75b1e8eb71babf4c7104f2e9c52da1fb7de2"}, + {file = "black-23.3.0-cp37-cp37m-win_amd64.whl", hash = "sha256:e114420bf26b90d4b9daa597351337762b63039752bdf72bf361364c1aa05925"}, + {file = "black-23.3.0-cp38-cp38-macosx_10_16_arm64.whl", hash = "sha256:48f9d345675bb7fbc3dd85821b12487e1b9a75242028adad0333ce36ed2a6d27"}, + {file = "black-23.3.0-cp38-cp38-macosx_10_16_universal2.whl", hash = "sha256:714290490c18fb0126baa0fca0a54ee795f7502b44177e1ce7624ba1c00f2331"}, + {file = "black-23.3.0-cp38-cp38-macosx_10_16_x86_64.whl", hash = "sha256:064101748afa12ad2291c2b91c960be28b817c0c7eaa35bec09cc63aa56493c5"}, + {file = "black-23.3.0-cp38-cp38-manylinux_2_17_x86_64.manylinux2014_x86_64.whl", hash = "sha256:562bd3a70495facf56814293149e51aa1be9931567474993c7942ff7d3533961"}, + {file = "black-23.3.0-cp38-cp38-win_amd64.whl", hash = "sha256:e198cf27888ad6f4ff331ca1c48ffc038848ea9f031a3b40ba36aced7e22f2c8"}, + {file = "black-23.3.0-cp39-cp39-macosx_10_16_arm64.whl", hash = "sha256:3238f2aacf827d18d26db07524e44741233ae09a584273aa059066d644ca7b30"}, + {file = "black-23.3.0-cp39-cp39-macosx_10_16_universal2.whl", hash = "sha256:f0bd2f4a58d6666500542b26354978218a9babcdc972722f4bf90779524515f3"}, + {file = "black-23.3.0-cp39-cp39-macosx_10_16_x86_64.whl", hash = "sha256:92c543f6854c28a3c7f39f4d9b7694f9a6eb9d3c5e2ece488c327b6e7ea9b266"}, + {file = "black-23.3.0-cp39-cp39-manylinux_2_17_x86_64.manylinux2014_x86_64.whl", hash = "sha256:3a150542a204124ed00683f0db1f5cf1c2aaaa9cc3495b7a3b5976fb136090ab"}, + {file = "black-23.3.0-cp39-cp39-win_amd64.whl", hash = "sha256:6b39abdfb402002b8a7d030ccc85cf5afff64ee90fa4c5aebc531e3ad0175ddb"}, + {file = "black-23.3.0-py3-none-any.whl", hash = "sha256:ec751418022185b0c1bb7d7736e6933d40bbb14c14a0abcf9123d1b159f98dd4"}, + {file = "black-23.3.0.tar.gz", hash = "sha256:1c7b8d606e728a41ea1ccbd7264677e494e87cf630e399262ced92d4a8dac940"}, +] + +[package.dependencies] +click = ">=8.0.0" +mypy-extensions = ">=0.4.3" +packaging = ">=22.0" +pathspec = ">=0.9.0" +platformdirs = ">=2" +tomli = {version = ">=1.1.0", markers = "python_version < \"3.11\""} + +[package.extras] +colorama = ["colorama (>=0.4.3)"] +d = ["aiohttp (>=3.7.4)"] +jupyter = ["ipython (>=7.8.0)", "tokenize-rt (>=3.2.0)"] +uvloop = ["uvloop (>=0.15.2)"] + +[[package]] +name = "certifi" +version = "2022.12.7" +description = "Python package for providing Mozilla's CA Bundle." +category = "main" +optional = false +python-versions = ">=3.6" +files = [ + {file = "certifi-2022.12.7-py3-none-any.whl", hash = "sha256:4ad3232f5e926d6718ec31cfc1fcadfde020920e278684144551c91769c7bc18"}, + {file = "certifi-2022.12.7.tar.gz", hash = "sha256:35824b4c3a97115964b408844d64aa14db1cc518f6562e8d7261699d1350a9e3"}, +] + +[[package]] +name = "charset-normalizer" +version = "3.1.0" +description = "The Real First Universal Charset Detector. Open, modern and actively maintained alternative to Chardet." +category = "main" +optional = false +python-versions = ">=3.7.0" +files = [ + {file = "charset-normalizer-3.1.0.tar.gz", hash = "sha256:34e0a2f9c370eb95597aae63bf85eb5e96826d81e3dcf88b8886012906f509b5"}, + {file = "charset_normalizer-3.1.0-cp310-cp310-macosx_10_9_universal2.whl", hash = "sha256:e0ac8959c929593fee38da1c2b64ee9778733cdf03c482c9ff1d508b6b593b2b"}, + {file = "charset_normalizer-3.1.0-cp310-cp310-macosx_10_9_x86_64.whl", hash = "sha256:d7fc3fca01da18fbabe4625d64bb612b533533ed10045a2ac3dd194bfa656b60"}, + {file = "charset_normalizer-3.1.0-cp310-cp310-macosx_11_0_arm64.whl", hash = "sha256:04eefcee095f58eaabe6dc3cc2262f3bcd776d2c67005880894f447b3f2cb9c1"}, + {file = "charset_normalizer-3.1.0-cp310-cp310-manylinux_2_17_aarch64.manylinux2014_aarch64.whl", hash = "sha256:20064ead0717cf9a73a6d1e779b23d149b53daf971169289ed2ed43a71e8d3b0"}, + {file = "charset_normalizer-3.1.0-cp310-cp310-manylinux_2_17_ppc64le.manylinux2014_ppc64le.whl", hash = "sha256:1435ae15108b1cb6fffbcea2af3d468683b7afed0169ad718451f8db5d1aff6f"}, + {file = "charset_normalizer-3.1.0-cp310-cp310-manylinux_2_17_s390x.manylinux2014_s390x.whl", hash = "sha256:c84132a54c750fda57729d1e2599bb598f5fa0344085dbde5003ba429a4798c0"}, + {file = "charset_normalizer-3.1.0-cp310-cp310-manylinux_2_17_x86_64.manylinux2014_x86_64.whl", hash = "sha256:75f2568b4189dda1c567339b48cba4ac7384accb9c2a7ed655cd86b04055c795"}, + {file = "charset_normalizer-3.1.0-cp310-cp310-manylinux_2_5_i686.manylinux1_i686.manylinux_2_17_i686.manylinux2014_i686.whl", hash = "sha256:11d3bcb7be35e7b1bba2c23beedac81ee893ac9871d0ba79effc7fc01167db6c"}, + {file = "charset_normalizer-3.1.0-cp310-cp310-musllinux_1_1_aarch64.whl", hash = "sha256:891cf9b48776b5c61c700b55a598621fdb7b1e301a550365571e9624f270c203"}, + {file = "charset_normalizer-3.1.0-cp310-cp310-musllinux_1_1_i686.whl", hash = "sha256:5f008525e02908b20e04707a4f704cd286d94718f48bb33edddc7d7b584dddc1"}, + {file = "charset_normalizer-3.1.0-cp310-cp310-musllinux_1_1_ppc64le.whl", hash = "sha256:b06f0d3bf045158d2fb8837c5785fe9ff9b8c93358be64461a1089f5da983137"}, + {file = "charset_normalizer-3.1.0-cp310-cp310-musllinux_1_1_s390x.whl", hash = "sha256:49919f8400b5e49e961f320c735388ee686a62327e773fa5b3ce6721f7e785ce"}, + {file = "charset_normalizer-3.1.0-cp310-cp310-musllinux_1_1_x86_64.whl", hash = "sha256:22908891a380d50738e1f978667536f6c6b526a2064156203d418f4856d6e86a"}, + {file = "charset_normalizer-3.1.0-cp310-cp310-win32.whl", hash = "sha256:12d1a39aa6b8c6f6248bb54550efcc1c38ce0d8096a146638fd4738e42284448"}, + {file = "charset_normalizer-3.1.0-cp310-cp310-win_amd64.whl", hash = "sha256:65ed923f84a6844de5fd29726b888e58c62820e0769b76565480e1fdc3d062f8"}, + {file = "charset_normalizer-3.1.0-cp311-cp311-macosx_10_9_universal2.whl", hash = "sha256:9a3267620866c9d17b959a84dd0bd2d45719b817245e49371ead79ed4f710d19"}, + {file = "charset_normalizer-3.1.0-cp311-cp311-macosx_10_9_x86_64.whl", hash = "sha256:6734e606355834f13445b6adc38b53c0fd45f1a56a9ba06c2058f86893ae8017"}, + {file = "charset_normalizer-3.1.0-cp311-cp311-macosx_11_0_arm64.whl", hash = "sha256:f8303414c7b03f794347ad062c0516cee0e15f7a612abd0ce1e25caf6ceb47df"}, + {file = "charset_normalizer-3.1.0-cp311-cp311-manylinux_2_17_aarch64.manylinux2014_aarch64.whl", hash = "sha256:aaf53a6cebad0eae578f062c7d462155eada9c172bd8c4d250b8c1d8eb7f916a"}, + {file = "charset_normalizer-3.1.0-cp311-cp311-manylinux_2_17_ppc64le.manylinux2014_ppc64le.whl", hash = "sha256:3dc5b6a8ecfdc5748a7e429782598e4f17ef378e3e272eeb1340ea57c9109f41"}, + {file = "charset_normalizer-3.1.0-cp311-cp311-manylinux_2_17_s390x.manylinux2014_s390x.whl", hash = "sha256:e1b25e3ad6c909f398df8921780d6a3d120d8c09466720226fc621605b6f92b1"}, + {file = "charset_normalizer-3.1.0-cp311-cp311-manylinux_2_17_x86_64.manylinux2014_x86_64.whl", hash = "sha256:0ca564606d2caafb0abe6d1b5311c2649e8071eb241b2d64e75a0d0065107e62"}, + {file = "charset_normalizer-3.1.0-cp311-cp311-manylinux_2_5_i686.manylinux1_i686.manylinux_2_17_i686.manylinux2014_i686.whl", hash = "sha256:b82fab78e0b1329e183a65260581de4375f619167478dddab510c6c6fb04d9b6"}, + {file = "charset_normalizer-3.1.0-cp311-cp311-musllinux_1_1_aarch64.whl", hash = "sha256:bd7163182133c0c7701b25e604cf1611c0d87712e56e88e7ee5d72deab3e76b5"}, + {file = "charset_normalizer-3.1.0-cp311-cp311-musllinux_1_1_i686.whl", hash = "sha256:11d117e6c63e8f495412d37e7dc2e2fff09c34b2d09dbe2bee3c6229577818be"}, + {file = "charset_normalizer-3.1.0-cp311-cp311-musllinux_1_1_ppc64le.whl", hash = "sha256:cf6511efa4801b9b38dc5546d7547d5b5c6ef4b081c60b23e4d941d0eba9cbeb"}, + {file = "charset_normalizer-3.1.0-cp311-cp311-musllinux_1_1_s390x.whl", hash = "sha256:abc1185d79f47c0a7aaf7e2412a0eb2c03b724581139193d2d82b3ad8cbb00ac"}, + {file = "charset_normalizer-3.1.0-cp311-cp311-musllinux_1_1_x86_64.whl", hash = "sha256:cb7b2ab0188829593b9de646545175547a70d9a6e2b63bf2cd87a0a391599324"}, + {file = "charset_normalizer-3.1.0-cp311-cp311-win32.whl", hash = "sha256:c36bcbc0d5174a80d6cccf43a0ecaca44e81d25be4b7f90f0ed7bcfbb5a00909"}, + {file = "charset_normalizer-3.1.0-cp311-cp311-win_amd64.whl", hash = "sha256:cca4def576f47a09a943666b8f829606bcb17e2bc2d5911a46c8f8da45f56755"}, + {file = "charset_normalizer-3.1.0-cp37-cp37m-macosx_10_9_x86_64.whl", hash = "sha256:0c95f12b74681e9ae127728f7e5409cbbef9cd914d5896ef238cc779b8152373"}, + {file = "charset_normalizer-3.1.0-cp37-cp37m-manylinux_2_17_aarch64.manylinux2014_aarch64.whl", hash = "sha256:fca62a8301b605b954ad2e9c3666f9d97f63872aa4efcae5492baca2056b74ab"}, + {file = "charset_normalizer-3.1.0-cp37-cp37m-manylinux_2_17_ppc64le.manylinux2014_ppc64le.whl", hash = "sha256:ac0aa6cd53ab9a31d397f8303f92c42f534693528fafbdb997c82bae6e477ad9"}, + {file = "charset_normalizer-3.1.0-cp37-cp37m-manylinux_2_17_s390x.manylinux2014_s390x.whl", hash = "sha256:c3af8e0f07399d3176b179f2e2634c3ce9c1301379a6b8c9c9aeecd481da494f"}, + {file = "charset_normalizer-3.1.0-cp37-cp37m-manylinux_2_17_x86_64.manylinux2014_x86_64.whl", hash = "sha256:3a5fc78f9e3f501a1614a98f7c54d3969f3ad9bba8ba3d9b438c3bc5d047dd28"}, + {file = "charset_normalizer-3.1.0-cp37-cp37m-manylinux_2_5_i686.manylinux1_i686.manylinux_2_17_i686.manylinux2014_i686.whl", hash = "sha256:628c985afb2c7d27a4800bfb609e03985aaecb42f955049957814e0491d4006d"}, + {file = "charset_normalizer-3.1.0-cp37-cp37m-musllinux_1_1_aarch64.whl", hash = "sha256:74db0052d985cf37fa111828d0dd230776ac99c740e1a758ad99094be4f1803d"}, + {file = "charset_normalizer-3.1.0-cp37-cp37m-musllinux_1_1_i686.whl", hash = "sha256:1e8fcdd8f672a1c4fc8d0bd3a2b576b152d2a349782d1eb0f6b8e52e9954731d"}, + {file = "charset_normalizer-3.1.0-cp37-cp37m-musllinux_1_1_ppc64le.whl", hash = "sha256:04afa6387e2b282cf78ff3dbce20f0cc071c12dc8f685bd40960cc68644cfea6"}, + {file = "charset_normalizer-3.1.0-cp37-cp37m-musllinux_1_1_s390x.whl", hash = "sha256:dd5653e67b149503c68c4018bf07e42eeed6b4e956b24c00ccdf93ac79cdff84"}, + {file = "charset_normalizer-3.1.0-cp37-cp37m-musllinux_1_1_x86_64.whl", hash = "sha256:d2686f91611f9e17f4548dbf050e75b079bbc2a82be565832bc8ea9047b61c8c"}, + {file = "charset_normalizer-3.1.0-cp37-cp37m-win32.whl", hash = "sha256:4155b51ae05ed47199dc5b2a4e62abccb274cee6b01da5b895099b61b1982974"}, + {file = "charset_normalizer-3.1.0-cp37-cp37m-win_amd64.whl", hash = "sha256:322102cdf1ab682ecc7d9b1c5eed4ec59657a65e1c146a0da342b78f4112db23"}, + {file = "charset_normalizer-3.1.0-cp38-cp38-macosx_10_9_universal2.whl", hash = "sha256:e633940f28c1e913615fd624fcdd72fdba807bf53ea6925d6a588e84e1151531"}, + {file = "charset_normalizer-3.1.0-cp38-cp38-macosx_10_9_x86_64.whl", hash = "sha256:3a06f32c9634a8705f4ca9946d667609f52cf130d5548881401f1eb2c39b1e2c"}, + {file = "charset_normalizer-3.1.0-cp38-cp38-macosx_11_0_arm64.whl", hash = "sha256:7381c66e0561c5757ffe616af869b916c8b4e42b367ab29fedc98481d1e74e14"}, + {file = "charset_normalizer-3.1.0-cp38-cp38-manylinux_2_17_aarch64.manylinux2014_aarch64.whl", hash = "sha256:3573d376454d956553c356df45bb824262c397c6e26ce43e8203c4c540ee0acb"}, + {file = "charset_normalizer-3.1.0-cp38-cp38-manylinux_2_17_ppc64le.manylinux2014_ppc64le.whl", hash = "sha256:e89df2958e5159b811af9ff0f92614dabf4ff617c03a4c1c6ff53bf1c399e0e1"}, + {file = "charset_normalizer-3.1.0-cp38-cp38-manylinux_2_17_s390x.manylinux2014_s390x.whl", hash = "sha256:78cacd03e79d009d95635e7d6ff12c21eb89b894c354bd2b2ed0b4763373693b"}, + {file = "charset_normalizer-3.1.0-cp38-cp38-manylinux_2_17_x86_64.manylinux2014_x86_64.whl", hash = "sha256:de5695a6f1d8340b12a5d6d4484290ee74d61e467c39ff03b39e30df62cf83a0"}, + {file = "charset_normalizer-3.1.0-cp38-cp38-manylinux_2_5_i686.manylinux1_i686.manylinux_2_17_i686.manylinux2014_i686.whl", hash = "sha256:1c60b9c202d00052183c9be85e5eaf18a4ada0a47d188a83c8f5c5b23252f649"}, + {file = "charset_normalizer-3.1.0-cp38-cp38-musllinux_1_1_aarch64.whl", hash = "sha256:f645caaf0008bacf349875a974220f1f1da349c5dbe7c4ec93048cdc785a3326"}, + {file = "charset_normalizer-3.1.0-cp38-cp38-musllinux_1_1_i686.whl", hash = "sha256:ea9f9c6034ea2d93d9147818f17c2a0860d41b71c38b9ce4d55f21b6f9165a11"}, + {file = "charset_normalizer-3.1.0-cp38-cp38-musllinux_1_1_ppc64le.whl", hash = "sha256:80d1543d58bd3d6c271b66abf454d437a438dff01c3e62fdbcd68f2a11310d4b"}, + {file = "charset_normalizer-3.1.0-cp38-cp38-musllinux_1_1_s390x.whl", hash = "sha256:73dc03a6a7e30b7edc5b01b601e53e7fc924b04e1835e8e407c12c037e81adbd"}, + {file = "charset_normalizer-3.1.0-cp38-cp38-musllinux_1_1_x86_64.whl", hash = "sha256:6f5c2e7bc8a4bf7c426599765b1bd33217ec84023033672c1e9a8b35eaeaaaf8"}, + {file = "charset_normalizer-3.1.0-cp38-cp38-win32.whl", hash = "sha256:12a2b561af122e3d94cdb97fe6fb2bb2b82cef0cdca131646fdb940a1eda04f0"}, + {file = "charset_normalizer-3.1.0-cp38-cp38-win_amd64.whl", hash = "sha256:3160a0fd9754aab7d47f95a6b63ab355388d890163eb03b2d2b87ab0a30cfa59"}, + {file = "charset_normalizer-3.1.0-cp39-cp39-macosx_10_9_universal2.whl", hash = "sha256:38e812a197bf8e71a59fe55b757a84c1f946d0ac114acafaafaf21667a7e169e"}, + {file = "charset_normalizer-3.1.0-cp39-cp39-macosx_10_9_x86_64.whl", hash = "sha256:6baf0baf0d5d265fa7944feb9f7451cc316bfe30e8df1a61b1bb08577c554f31"}, + {file = "charset_normalizer-3.1.0-cp39-cp39-macosx_11_0_arm64.whl", hash = "sha256:8f25e17ab3039b05f762b0a55ae0b3632b2e073d9c8fc88e89aca31a6198e88f"}, + {file = "charset_normalizer-3.1.0-cp39-cp39-manylinux_2_17_aarch64.manylinux2014_aarch64.whl", hash = "sha256:3747443b6a904001473370d7810aa19c3a180ccd52a7157aacc264a5ac79265e"}, + {file = "charset_normalizer-3.1.0-cp39-cp39-manylinux_2_17_ppc64le.manylinux2014_ppc64le.whl", hash = "sha256:b116502087ce8a6b7a5f1814568ccbd0e9f6cfd99948aa59b0e241dc57cf739f"}, + {file = "charset_normalizer-3.1.0-cp39-cp39-manylinux_2_17_s390x.manylinux2014_s390x.whl", hash = "sha256:d16fd5252f883eb074ca55cb622bc0bee49b979ae4e8639fff6ca3ff44f9f854"}, + {file = "charset_normalizer-3.1.0-cp39-cp39-manylinux_2_17_x86_64.manylinux2014_x86_64.whl", hash = "sha256:21fa558996782fc226b529fdd2ed7866c2c6ec91cee82735c98a197fae39f706"}, + {file = "charset_normalizer-3.1.0-cp39-cp39-manylinux_2_5_i686.manylinux1_i686.manylinux_2_17_i686.manylinux2014_i686.whl", hash = "sha256:6f6c7a8a57e9405cad7485f4c9d3172ae486cfef1344b5ddd8e5239582d7355e"}, + {file = "charset_normalizer-3.1.0-cp39-cp39-musllinux_1_1_aarch64.whl", hash = "sha256:ac3775e3311661d4adace3697a52ac0bab17edd166087d493b52d4f4f553f9f0"}, + {file = "charset_normalizer-3.1.0-cp39-cp39-musllinux_1_1_i686.whl", hash = "sha256:10c93628d7497c81686e8e5e557aafa78f230cd9e77dd0c40032ef90c18f2230"}, + {file = "charset_normalizer-3.1.0-cp39-cp39-musllinux_1_1_ppc64le.whl", hash = "sha256:6f4f4668e1831850ebcc2fd0b1cd11721947b6dc7c00bf1c6bd3c929ae14f2c7"}, + {file = "charset_normalizer-3.1.0-cp39-cp39-musllinux_1_1_s390x.whl", hash = "sha256:0be65ccf618c1e7ac9b849c315cc2e8a8751d9cfdaa43027d4f6624bd587ab7e"}, + {file = "charset_normalizer-3.1.0-cp39-cp39-musllinux_1_1_x86_64.whl", hash = "sha256:53d0a3fa5f8af98a1e261de6a3943ca631c526635eb5817a87a59d9a57ebf48f"}, + {file = "charset_normalizer-3.1.0-cp39-cp39-win32.whl", hash = "sha256:a04f86f41a8916fe45ac5024ec477f41f886b3c435da2d4e3d2709b22ab02af1"}, + {file = "charset_normalizer-3.1.0-cp39-cp39-win_amd64.whl", hash = "sha256:830d2948a5ec37c386d3170c483063798d7879037492540f10a475e3fd6f244b"}, + {file = "charset_normalizer-3.1.0-py3-none-any.whl", hash = "sha256:3d9098b479e78c85080c98e1e35ff40b4a31d8953102bb0fd7d1b6f8a2111a3d"}, +] + +[[package]] +name = "click" +version = "8.1.3" +description = "Composable command line interface toolkit" +category = "main" +optional = false +python-versions = ">=3.7" +files = [ + {file = "click-8.1.3-py3-none-any.whl", hash = "sha256:bb4d8133cb15a609f44e8213d9b391b0809795062913b383c62be0ee95b1db48"}, + {file = "click-8.1.3.tar.gz", hash = "sha256:7682dc8afb30297001674575ea00d1814d808d6a36af415a82bd481d37ba7b8e"}, +] + +[package.dependencies] +colorama = {version = "*", markers = "platform_system == \"Windows\""} + +[[package]] +name = "colorama" +version = "0.4.6" +description = "Cross-platform colored terminal text." +category = "main" +optional = false +python-versions = "!=3.0.*,!=3.1.*,!=3.2.*,!=3.3.*,!=3.4.*,!=3.5.*,!=3.6.*,>=2.7" +files = [ + {file = "colorama-0.4.6-py2.py3-none-any.whl", hash = "sha256:4f1d9991f5acc0ca119f9d443620b77f9d6b33703e51011c16baf57afb285fc6"}, + {file = "colorama-0.4.6.tar.gz", hash = "sha256:08695f5cb7ed6e0531a20572697297273c47b8cae5a63ffc6d6ed5c201be6e44"}, +] + +[[package]] +name = "deprecation" +version = "2.1.0" +description = "A library to handle automated deprecations" +category = "main" +optional = false +python-versions = "*" +files = [ + {file = "deprecation-2.1.0-py2.py3-none-any.whl", hash = "sha256:a10811591210e1fb0e768a8c25517cabeabcba6f0bf96564f8ff45189f90b14a"}, + {file = "deprecation-2.1.0.tar.gz", hash = "sha256:72b3bde64e5d778694b0cf68178aed03d15e15477116add3fb773e581f9518ff"}, +] + +[package.dependencies] +packaging = "*" + +[[package]] +name = "docker" +version = "6.1.0" +description = "A Python library for the Docker Engine API." +category = "main" +optional = false +python-versions = ">=3.7" +files = [ + {file = "docker-6.1.0-py3-none-any.whl", hash = "sha256:b65c999f87cb5c31700b6944dc17a631071170d1aab3ad6e23506068579f885d"}, + {file = "docker-6.1.0.tar.gz", hash = "sha256:cb697eccfeff55d232f7a7f4f88cd3770d27327c38d6c266b8f55c9f14a8491e"}, +] + +[package.dependencies] +packaging = ">=14.0" +pywin32 = {version = ">=304", markers = "sys_platform == \"win32\""} +requests = ">=2.26.0" +urllib3 = ">=1.26.0" +websocket-client = ">=0.32.0" + +[package.extras] +ssh = ["paramiko (>=2.4.3)"] + +[[package]] +name = "exceptiongroup" +version = "1.1.1" +description = "Backport of PEP 654 (exception groups)" +category = "dev" +optional = false +python-versions = ">=3.7" +files = [ + {file = "exceptiongroup-1.1.1-py3-none-any.whl", hash = "sha256:232c37c63e4f682982c8b6459f33a8981039e5fb8756b2074364e5055c498c9e"}, + {file = "exceptiongroup-1.1.1.tar.gz", hash = "sha256:d484c3090ba2889ae2928419117447a14daf3c1231d5e30d0aae34f354f01785"}, +] + +[package.extras] +test = ["pytest (>=6)"] + +[[package]] +name = "fastapi" +version = "0.95.1" +description = "FastAPI framework, high performance, easy to learn, fast to code, ready for production" +category = "main" +optional = false +python-versions = ">=3.7" +files = [ + {file = "fastapi-0.95.1-py3-none-any.whl", hash = "sha256:a870d443e5405982e1667dfe372663abf10754f246866056336d7f01c21dab07"}, + {file = "fastapi-0.95.1.tar.gz", hash = "sha256:9569f0a381f8a457ec479d90fa01005cfddaae07546eb1f3fa035bc4797ae7d5"}, +] + +[package.dependencies] +pydantic = ">=1.6.2,<1.7 || >1.7,<1.7.1 || >1.7.1,<1.7.2 || >1.7.2,<1.7.3 || >1.7.3,<1.8 || >1.8,<1.8.1 || >1.8.1,<2.0.0" +starlette = ">=0.26.1,<0.27.0" + +[package.extras] +all = ["email-validator (>=1.1.1)", "httpx (>=0.23.0)", "itsdangerous (>=1.1.0)", "jinja2 (>=2.11.2)", "orjson (>=3.2.1)", "python-multipart (>=0.0.5)", "pyyaml (>=5.3.1)", "ujson (>=4.0.1,!=4.0.2,!=4.1.0,!=4.2.0,!=4.3.0,!=5.0.0,!=5.1.0)", "uvicorn[standard] (>=0.12.0)"] +dev = ["pre-commit (>=2.17.0,<3.0.0)", "ruff (==0.0.138)", "uvicorn[standard] (>=0.12.0,<0.21.0)"] +doc = ["mdx-include (>=1.4.1,<2.0.0)", "mkdocs (>=1.1.2,<2.0.0)", "mkdocs-markdownextradata-plugin (>=0.1.7,<0.3.0)", "mkdocs-material (>=8.1.4,<9.0.0)", "pyyaml (>=5.3.1,<7.0.0)", "typer-cli (>=0.0.13,<0.0.14)", "typer[all] (>=0.6.1,<0.8.0)"] +test = ["anyio[trio] (>=3.2.1,<4.0.0)", "black (==23.1.0)", "coverage[toml] (>=6.5.0,<8.0)", "databases[sqlite] (>=0.3.2,<0.7.0)", "email-validator (>=1.1.1,<2.0.0)", "flask (>=1.1.2,<3.0.0)", "httpx (>=0.23.0,<0.24.0)", "isort (>=5.0.6,<6.0.0)", "mypy (==0.982)", "orjson (>=3.2.1,<4.0.0)", "passlib[bcrypt] (>=1.7.2,<2.0.0)", "peewee (>=3.13.3,<4.0.0)", "pytest (>=7.1.3,<8.0.0)", "python-jose[cryptography] (>=3.3.0,<4.0.0)", "python-multipart (>=0.0.5,<0.0.7)", "pyyaml (>=5.3.1,<7.0.0)", "ruff (==0.0.138)", "sqlalchemy (>=1.3.18,<1.4.43)", "types-orjson (==3.6.2)", "types-ujson (==5.7.0.1)", "ujson (>=4.0.1,!=4.0.2,!=4.1.0,!=4.2.0,!=4.3.0,!=5.0.0,!=5.1.0,<6.0.0)"] + +[[package]] +name = "h11" +version = "0.14.0" +description = "A pure-Python, bring-your-own-I/O implementation of HTTP/1.1" +category = "main" +optional = false +python-versions = ">=3.7" +files = [ + {file = "h11-0.14.0-py3-none-any.whl", hash = "sha256:e3fe4ac4b851c468cc8363d500db52c2ead036020723024a109d37346efaa761"}, + {file = "h11-0.14.0.tar.gz", hash = "sha256:8f19fbbe99e72420ff35c00b27a34cb9937e902a8b810e2c88300c6f0a3b699d"}, +] + +[[package]] +name = "httpcore" +version = "0.17.0" +description = "A minimal low-level HTTP client." +category = "main" +optional = false +python-versions = ">=3.7" +files = [ + {file = "httpcore-0.17.0-py3-none-any.whl", hash = "sha256:0fdfea45e94f0c9fd96eab9286077f9ff788dd186635ae61b312693e4d943599"}, + {file = "httpcore-0.17.0.tar.gz", hash = "sha256:cc045a3241afbf60ce056202301b4d8b6af08845e3294055eb26b09913ef903c"}, +] + +[package.dependencies] +anyio = ">=3.0,<5.0" +certifi = "*" +h11 = ">=0.13,<0.15" +sniffio = ">=1.0.0,<2.0.0" + +[package.extras] +http2 = ["h2 (>=3,<5)"] +socks = ["socksio (>=1.0.0,<2.0.0)"] + +[[package]] +name = "httpx" +version = "0.24.0" +description = "The next generation HTTP client." +category = "main" +optional = false +python-versions = ">=3.7" +files = [ + {file = "httpx-0.24.0-py3-none-any.whl", hash = "sha256:447556b50c1921c351ea54b4fe79d91b724ed2b027462ab9a329465d147d5a4e"}, + {file = "httpx-0.24.0.tar.gz", hash = "sha256:507d676fc3e26110d41df7d35ebd8b3b8585052450f4097401c9be59d928c63e"}, +] + +[package.dependencies] +certifi = "*" +httpcore = ">=0.15.0,<0.18.0" +idna = "*" +sniffio = "*" + +[package.extras] +brotli = ["brotli", "brotlicffi"] +cli = ["click (>=8.0.0,<9.0.0)", "pygments (>=2.0.0,<3.0.0)", "rich (>=10,<14)"] +http2 = ["h2 (>=3,<5)"] +socks = ["socksio (>=1.0.0,<2.0.0)"] + +[[package]] +name = "idna" +version = "3.4" +description = "Internationalized Domain Names in Applications (IDNA)" +category = "main" +optional = false +python-versions = ">=3.5" +files = [ + {file = "idna-3.4-py3-none-any.whl", hash = "sha256:90b77e79eaa3eba6de819a0c442c0b4ceefc341a7a2ab77d7562bf49f425c5c2"}, + {file = "idna-3.4.tar.gz", hash = "sha256:814f528e8dead7d329833b91c5faa87d60bf71824cd12a7530b5526063d02cb4"}, +] + +[[package]] +name = "importlib-resources" +version = "5.12.0" +description = "Read resources from Python packages" +category = "main" +optional = false +python-versions = ">=3.7" +files = [ + {file = "importlib_resources-5.12.0-py3-none-any.whl", hash = "sha256:7b1deeebbf351c7578e09bf2f63fa2ce8b5ffec296e0d349139d43cca061a81a"}, + {file = "importlib_resources-5.12.0.tar.gz", hash = "sha256:4be82589bf5c1d7999aedf2a45159d10cb3ca4f19b2271f8792bc8e6da7b22f6"}, +] + +[package.extras] +docs = ["furo", "jaraco.packaging (>=9)", "jaraco.tidelift (>=1.4)", "rst.linker (>=1.9)", "sphinx (>=3.5)", "sphinx-lint"] +testing = ["flake8 (<5)", "pytest (>=6)", "pytest-black (>=0.3.7)", "pytest-checkdocs (>=2.4)", "pytest-cov", "pytest-enabler (>=1.3)", "pytest-flake8", "pytest-mypy (>=0.9.1)"] + +[[package]] +name = "iniconfig" +version = "2.0.0" +description = "brain-dead simple config-ini parsing" +category = "dev" +optional = false +python-versions = ">=3.7" +files = [ + {file = "iniconfig-2.0.0-py3-none-any.whl", hash = "sha256:b6a85871a79d2e3b22d2d1b94ac2824226a63c6b741c88f7ae975f18b6778374"}, + {file = "iniconfig-2.0.0.tar.gz", hash = "sha256:2d91e135bf72d31a410b17c16da610a82cb55f6b0477d1a902134b24a455b8b3"}, +] + +[[package]] +name = "isort" +version = "5.12.0" +description = "A Python utility / library to sort Python imports." +category = "dev" +optional = false +python-versions = ">=3.8.0" +files = [ + {file = "isort-5.12.0-py3-none-any.whl", hash = "sha256:f84c2818376e66cf843d497486ea8fed8700b340f308f076c6fb1229dff318b6"}, + {file = "isort-5.12.0.tar.gz", hash = "sha256:8bef7dde241278824a6d83f44a544709b065191b95b6e50894bdc722fcba0504"}, +] + +[package.extras] +colors = ["colorama (>=0.4.3)"] +pipfile-deprecated-finder = ["pip-shims (>=0.5.2)", "pipreqs", "requirementslib"] +plugins = ["setuptools"] +requirements-deprecated-finder = ["pip-api", "pipreqs"] + +[[package]] +name = "mypy" +version = "1.2.0" +description = "Optional static typing for Python" +category = "dev" +optional = false +python-versions = ">=3.7" +files = [ + {file = "mypy-1.2.0-cp310-cp310-macosx_10_9_x86_64.whl", hash = "sha256:701189408b460a2ff42b984e6bd45c3f41f0ac9f5f58b8873bbedc511900086d"}, + {file = "mypy-1.2.0-cp310-cp310-macosx_11_0_arm64.whl", hash = "sha256:fe91be1c51c90e2afe6827601ca14353bbf3953f343c2129fa1e247d55fd95ba"}, + {file = "mypy-1.2.0-cp310-cp310-manylinux_2_17_x86_64.manylinux2014_x86_64.whl", hash = "sha256:8d26b513225ffd3eacece727f4387bdce6469192ef029ca9dd469940158bc89e"}, + {file = "mypy-1.2.0-cp310-cp310-musllinux_1_1_x86_64.whl", hash = "sha256:3a2d219775a120581a0ae8ca392b31f238d452729adbcb6892fa89688cb8306a"}, + {file = "mypy-1.2.0-cp310-cp310-win_amd64.whl", hash = "sha256:2e93a8a553e0394b26c4ca683923b85a69f7ccdc0139e6acd1354cc884fe0128"}, + {file = "mypy-1.2.0-cp311-cp311-macosx_10_9_x86_64.whl", hash = "sha256:3efde4af6f2d3ccf58ae825495dbb8d74abd6d176ee686ce2ab19bd025273f41"}, + {file = "mypy-1.2.0-cp311-cp311-macosx_11_0_arm64.whl", hash = "sha256:695c45cea7e8abb6f088a34a6034b1d273122e5530aeebb9c09626cea6dca4cb"}, + {file = "mypy-1.2.0-cp311-cp311-manylinux_2_17_x86_64.manylinux2014_x86_64.whl", hash = "sha256:d0e9464a0af6715852267bf29c9553e4555b61f5904a4fc538547a4d67617937"}, + {file = "mypy-1.2.0-cp311-cp311-musllinux_1_1_x86_64.whl", hash = "sha256:8293a216e902ac12779eb7a08f2bc39ec6c878d7c6025aa59464e0c4c16f7eb9"}, + {file = "mypy-1.2.0-cp311-cp311-win_amd64.whl", hash = "sha256:f46af8d162f3d470d8ffc997aaf7a269996d205f9d746124a179d3abe05ac602"}, + {file = "mypy-1.2.0-cp37-cp37m-macosx_10_9_x86_64.whl", hash = "sha256:031fc69c9a7e12bcc5660b74122ed84b3f1c505e762cc4296884096c6d8ee140"}, + {file = "mypy-1.2.0-cp37-cp37m-manylinux_2_17_x86_64.manylinux2014_x86_64.whl", hash = "sha256:390bc685ec209ada4e9d35068ac6988c60160b2b703072d2850457b62499e336"}, + {file = "mypy-1.2.0-cp37-cp37m-musllinux_1_1_x86_64.whl", hash = "sha256:4b41412df69ec06ab141808d12e0bf2823717b1c363bd77b4c0820feaa37249e"}, + {file = "mypy-1.2.0-cp37-cp37m-win_amd64.whl", hash = "sha256:4e4a682b3f2489d218751981639cffc4e281d548f9d517addfd5a2917ac78119"}, + {file = "mypy-1.2.0-cp38-cp38-macosx_10_9_x86_64.whl", hash = "sha256:a197ad3a774f8e74f21e428f0de7f60ad26a8d23437b69638aac2764d1e06a6a"}, + {file = "mypy-1.2.0-cp38-cp38-macosx_11_0_arm64.whl", hash = "sha256:c9a084bce1061e55cdc0493a2ad890375af359c766b8ac311ac8120d3a472950"}, + {file = "mypy-1.2.0-cp38-cp38-manylinux_2_17_x86_64.manylinux2014_x86_64.whl", hash = "sha256:eaeaa0888b7f3ccb7bcd40b50497ca30923dba14f385bde4af78fac713d6d6f6"}, + {file = "mypy-1.2.0-cp38-cp38-musllinux_1_1_x86_64.whl", hash = "sha256:bea55fc25b96c53affab852ad94bf111a3083bc1d8b0c76a61dd101d8a388cf5"}, + {file = "mypy-1.2.0-cp38-cp38-win_amd64.whl", hash = "sha256:4c8d8c6b80aa4a1689f2a179d31d86ae1367ea4a12855cc13aa3ba24bb36b2d8"}, + {file = "mypy-1.2.0-cp39-cp39-macosx_10_9_x86_64.whl", hash = "sha256:70894c5345bea98321a2fe84df35f43ee7bb0feec117a71420c60459fc3e1eed"}, + {file = "mypy-1.2.0-cp39-cp39-macosx_11_0_arm64.whl", hash = "sha256:4a99fe1768925e4a139aace8f3fb66db3576ee1c30b9c0f70f744ead7e329c9f"}, + {file = "mypy-1.2.0-cp39-cp39-manylinux_2_17_x86_64.manylinux2014_x86_64.whl", hash = "sha256:023fe9e618182ca6317ae89833ba422c411469156b690fde6a315ad10695a521"}, + {file = "mypy-1.2.0-cp39-cp39-musllinux_1_1_x86_64.whl", hash = "sha256:4d19f1a239d59f10fdc31263d48b7937c585810288376671eaf75380b074f238"}, + {file = "mypy-1.2.0-cp39-cp39-win_amd64.whl", hash = "sha256:2de7babe398cb7a85ac7f1fd5c42f396c215ab3eff731b4d761d68d0f6a80f48"}, + {file = "mypy-1.2.0-py3-none-any.whl", hash = "sha256:d8e9187bfcd5ffedbe87403195e1fc340189a68463903c39e2b63307c9fa0394"}, + {file = "mypy-1.2.0.tar.gz", hash = "sha256:f70a40410d774ae23fcb4afbbeca652905a04de7948eaf0b1789c8d1426b72d1"}, +] + +[package.dependencies] +mypy-extensions = ">=1.0.0" +tomli = {version = ">=1.1.0", markers = "python_version < \"3.11\""} +typing-extensions = ">=3.10" + +[package.extras] +dmypy = ["psutil (>=4.0)"] +install-types = ["pip"] +python2 = ["typed-ast (>=1.4.0,<2)"] +reports = ["lxml"] + +[[package]] +name = "mypy-extensions" +version = "1.0.0" +description = "Type system extensions for programs checked with the mypy type checker." +category = "dev" +optional = false +python-versions = ">=3.5" +files = [ + {file = "mypy_extensions-1.0.0-py3-none-any.whl", hash = "sha256:4392f6c0eb8a5668a69e23d168ffa70f0be9ccfd32b5cc2d26a34ae5b844552d"}, + {file = "mypy_extensions-1.0.0.tar.gz", hash = "sha256:75dbf8955dc00442a438fc4d0666508a9a97b6bd41aa2f0ffe9d2f2725af0782"}, +] + +[[package]] +name = "packaging" +version = "23.1" +description = "Core utilities for Python packages" +category = "main" +optional = false +python-versions = ">=3.7" +files = [ + {file = "packaging-23.1-py3-none-any.whl", hash = "sha256:994793af429502c4ea2ebf6bf664629d07c1a9fe974af92966e4b8d2df7edc61"}, + {file = "packaging-23.1.tar.gz", hash = "sha256:a392980d2b6cffa644431898be54b0045151319d1e7ec34f0cfed48767dd334f"}, +] + +[[package]] +name = "pathspec" +version = "0.11.1" +description = "Utility library for gitignore style pattern matching of file paths." +category = "dev" +optional = false +python-versions = ">=3.7" +files = [ + {file = "pathspec-0.11.1-py3-none-any.whl", hash = "sha256:d8af70af76652554bd134c22b3e8a1cc46ed7d91edcdd721ef1a0c51a84a5293"}, + {file = "pathspec-0.11.1.tar.gz", hash = "sha256:2798de800fa92780e33acca925945e9a19a133b715067cf165b8866c15a31687"}, +] + +[[package]] +name = "platformdirs" +version = "3.5.0" +description = "A small Python package for determining appropriate platform-specific dirs, e.g. a \"user data dir\"." +category = "dev" +optional = false +python-versions = ">=3.7" +files = [ + {file = "platformdirs-3.5.0-py3-none-any.whl", hash = "sha256:47692bc24c1958e8b0f13dd727307cff1db103fca36399f457da8e05f222fdc4"}, + {file = "platformdirs-3.5.0.tar.gz", hash = "sha256:7954a68d0ba23558d753f73437c55f89027cf8f5108c19844d4b82e5af396335"}, +] + +[package.extras] +docs = ["furo (>=2023.3.27)", "proselint (>=0.13)", "sphinx (>=6.1.3)", "sphinx-autodoc-typehints (>=1.23,!=1.23.4)"] +test = ["appdirs (==1.4.4)", "covdefaults (>=2.3)", "pytest (>=7.3.1)", "pytest-cov (>=4)", "pytest-mock (>=3.10)"] + +[[package]] +name = "pluggy" +version = "1.0.0" +description = "plugin and hook calling mechanisms for python" +category = "dev" +optional = false +python-versions = ">=3.6" +files = [ + {file = "pluggy-1.0.0-py2.py3-none-any.whl", hash = "sha256:74134bbf457f031a36d68416e1509f34bd5ccc019f0bcc952c7b909d06b37bd3"}, + {file = "pluggy-1.0.0.tar.gz", hash = "sha256:4224373bacce55f955a878bf9cfa763c1e360858e330072059e10bad68531159"}, +] + +[package.extras] +dev = ["pre-commit", "tox"] +testing = ["pytest", "pytest-benchmark"] + +[[package]] +name = "pydantic" +version = "1.10.7" +description = "Data validation and settings management using python type hints" +category = "main" +optional = false +python-versions = ">=3.7" +files = [ + {file = "pydantic-1.10.7-cp310-cp310-macosx_10_9_x86_64.whl", hash = "sha256:e79e999e539872e903767c417c897e729e015872040e56b96e67968c3b918b2d"}, + {file = "pydantic-1.10.7-cp310-cp310-macosx_11_0_arm64.whl", hash = "sha256:01aea3a42c13f2602b7ecbbea484a98169fb568ebd9e247593ea05f01b884b2e"}, + {file = "pydantic-1.10.7-cp310-cp310-manylinux_2_17_x86_64.manylinux2014_x86_64.whl", hash = "sha256:516f1ed9bc2406a0467dd777afc636c7091d71f214d5e413d64fef45174cfc7a"}, + {file = "pydantic-1.10.7-cp310-cp310-manylinux_2_5_i686.manylinux1_i686.manylinux_2_17_i686.manylinux2014_i686.whl", hash = "sha256:ae150a63564929c675d7f2303008d88426a0add46efd76c3fc797cd71cb1b46f"}, + {file = "pydantic-1.10.7-cp310-cp310-musllinux_1_1_i686.whl", hash = "sha256:ecbbc51391248116c0a055899e6c3e7ffbb11fb5e2a4cd6f2d0b93272118a209"}, + {file = "pydantic-1.10.7-cp310-cp310-musllinux_1_1_x86_64.whl", hash = "sha256:f4a2b50e2b03d5776e7f21af73e2070e1b5c0d0df255a827e7c632962f8315af"}, + {file = "pydantic-1.10.7-cp310-cp310-win_amd64.whl", hash = "sha256:a7cd2251439988b413cb0a985c4ed82b6c6aac382dbaff53ae03c4b23a70e80a"}, + {file = "pydantic-1.10.7-cp311-cp311-macosx_10_9_x86_64.whl", hash = "sha256:68792151e174a4aa9e9fc1b4e653e65a354a2fa0fed169f7b3d09902ad2cb6f1"}, + {file = "pydantic-1.10.7-cp311-cp311-macosx_11_0_arm64.whl", hash = "sha256:dfe2507b8ef209da71b6fb5f4e597b50c5a34b78d7e857c4f8f3115effaef5fe"}, + {file = "pydantic-1.10.7-cp311-cp311-manylinux_2_17_x86_64.manylinux2014_x86_64.whl", hash = "sha256:10a86d8c8db68086f1e30a530f7d5f83eb0685e632e411dbbcf2d5c0150e8dcd"}, + {file = "pydantic-1.10.7-cp311-cp311-manylinux_2_5_i686.manylinux1_i686.manylinux_2_17_i686.manylinux2014_i686.whl", hash = "sha256:d75ae19d2a3dbb146b6f324031c24f8a3f52ff5d6a9f22f0683694b3afcb16fb"}, + {file = "pydantic-1.10.7-cp311-cp311-musllinux_1_1_i686.whl", hash = "sha256:464855a7ff7f2cc2cf537ecc421291b9132aa9c79aef44e917ad711b4a93163b"}, + {file = "pydantic-1.10.7-cp311-cp311-musllinux_1_1_x86_64.whl", hash = "sha256:193924c563fae6ddcb71d3f06fa153866423ac1b793a47936656e806b64e24ca"}, + {file = "pydantic-1.10.7-cp311-cp311-win_amd64.whl", hash = "sha256:b4a849d10f211389502059c33332e91327bc154acc1845f375a99eca3afa802d"}, + {file = "pydantic-1.10.7-cp37-cp37m-macosx_10_9_x86_64.whl", hash = "sha256:cc1dde4e50a5fc1336ee0581c1612215bc64ed6d28d2c7c6f25d2fe3e7c3e918"}, + {file = "pydantic-1.10.7-cp37-cp37m-manylinux_2_17_x86_64.manylinux2014_x86_64.whl", hash = "sha256:e0cfe895a504c060e5d36b287ee696e2fdad02d89e0d895f83037245218a87fe"}, + {file = "pydantic-1.10.7-cp37-cp37m-manylinux_2_5_i686.manylinux1_i686.manylinux_2_17_i686.manylinux2014_i686.whl", hash = "sha256:670bb4683ad1e48b0ecb06f0cfe2178dcf74ff27921cdf1606e527d2617a81ee"}, + {file = "pydantic-1.10.7-cp37-cp37m-musllinux_1_1_i686.whl", hash = "sha256:950ce33857841f9a337ce07ddf46bc84e1c4946d2a3bba18f8280297157a3fd1"}, + {file = "pydantic-1.10.7-cp37-cp37m-musllinux_1_1_x86_64.whl", hash = "sha256:c15582f9055fbc1bfe50266a19771bbbef33dd28c45e78afbe1996fd70966c2a"}, + {file = "pydantic-1.10.7-cp37-cp37m-win_amd64.whl", hash = "sha256:82dffb306dd20bd5268fd6379bc4bfe75242a9c2b79fec58e1041fbbdb1f7914"}, + {file = "pydantic-1.10.7-cp38-cp38-macosx_10_9_x86_64.whl", hash = "sha256:8c7f51861d73e8b9ddcb9916ae7ac39fb52761d9ea0df41128e81e2ba42886cd"}, + {file = "pydantic-1.10.7-cp38-cp38-macosx_11_0_arm64.whl", hash = "sha256:6434b49c0b03a51021ade5c4daa7d70c98f7a79e95b551201fff682fc1661245"}, + {file = "pydantic-1.10.7-cp38-cp38-manylinux_2_17_x86_64.manylinux2014_x86_64.whl", hash = "sha256:64d34ab766fa056df49013bb6e79921a0265204c071984e75a09cbceacbbdd5d"}, + {file = "pydantic-1.10.7-cp38-cp38-manylinux_2_5_i686.manylinux1_i686.manylinux_2_17_i686.manylinux2014_i686.whl", hash = "sha256:701daea9ffe9d26f97b52f1d157e0d4121644f0fcf80b443248434958fd03dc3"}, + {file = "pydantic-1.10.7-cp38-cp38-musllinux_1_1_i686.whl", hash = "sha256:cf135c46099ff3f919d2150a948ce94b9ce545598ef2c6c7bf55dca98a304b52"}, + {file = "pydantic-1.10.7-cp38-cp38-musllinux_1_1_x86_64.whl", hash = "sha256:b0f85904f73161817b80781cc150f8b906d521fa11e3cdabae19a581c3606209"}, + {file = "pydantic-1.10.7-cp38-cp38-win_amd64.whl", hash = "sha256:9f6f0fd68d73257ad6685419478c5aece46432f4bdd8d32c7345f1986496171e"}, + {file = "pydantic-1.10.7-cp39-cp39-macosx_10_9_x86_64.whl", hash = "sha256:c230c0d8a322276d6e7b88c3f7ce885f9ed16e0910354510e0bae84d54991143"}, + {file = "pydantic-1.10.7-cp39-cp39-macosx_11_0_arm64.whl", hash = "sha256:976cae77ba6a49d80f461fd8bba183ff7ba79f44aa5cfa82f1346b5626542f8e"}, + {file = "pydantic-1.10.7-cp39-cp39-manylinux_2_17_x86_64.manylinux2014_x86_64.whl", hash = "sha256:7d45fc99d64af9aaf7e308054a0067fdcd87ffe974f2442312372dfa66e1001d"}, + {file = "pydantic-1.10.7-cp39-cp39-manylinux_2_5_i686.manylinux1_i686.manylinux_2_17_i686.manylinux2014_i686.whl", hash = "sha256:d2a5ebb48958754d386195fe9e9c5106f11275867051bf017a8059410e9abf1f"}, + {file = "pydantic-1.10.7-cp39-cp39-musllinux_1_1_i686.whl", hash = "sha256:abfb7d4a7cd5cc4e1d1887c43503a7c5dd608eadf8bc615413fc498d3e4645cd"}, + {file = "pydantic-1.10.7-cp39-cp39-musllinux_1_1_x86_64.whl", hash = "sha256:80b1fab4deb08a8292d15e43a6edccdffa5377a36a4597bb545b93e79c5ff0a5"}, + {file = "pydantic-1.10.7-cp39-cp39-win_amd64.whl", hash = "sha256:d71e69699498b020ea198468e2480a2f1e7433e32a3a99760058c6520e2bea7e"}, + {file = "pydantic-1.10.7-py3-none-any.whl", hash = "sha256:0cd181f1d0b1d00e2b705f1bf1ac7799a2d938cce3376b8007df62b29be3c2c6"}, + {file = "pydantic-1.10.7.tar.gz", hash = "sha256:cfc83c0678b6ba51b0532bea66860617c4cd4251ecf76e9846fa5a9f3454e97e"}, +] + +[package.dependencies] +typing-extensions = ">=4.2.0" + +[package.extras] +dotenv = ["python-dotenv (>=0.10.4)"] +email = ["email-validator (>=1.0.3)"] + +[[package]] +name = "pytest" +version = "7.3.1" +description = "pytest: simple powerful testing with Python" +category = "dev" +optional = false +python-versions = ">=3.7" +files = [ + {file = "pytest-7.3.1-py3-none-any.whl", hash = "sha256:3799fa815351fea3a5e96ac7e503a96fa51cc9942c3753cda7651b93c1cfa362"}, + {file = "pytest-7.3.1.tar.gz", hash = "sha256:434afafd78b1d78ed0addf160ad2b77a30d35d4bdf8af234fe621919d9ed15e3"}, +] + +[package.dependencies] +colorama = {version = "*", markers = "sys_platform == \"win32\""} +exceptiongroup = {version = ">=1.0.0rc8", markers = "python_version < \"3.11\""} +iniconfig = "*" +packaging = "*" +pluggy = ">=0.12,<2.0" +tomli = {version = ">=1.0.0", markers = "python_version < \"3.11\""} + +[package.extras] +testing = ["argcomplete", "attrs (>=19.2.0)", "hypothesis (>=3.56)", "mock", "nose", "pygments (>=2.7.2)", "requests", "xmlschema"] + +[[package]] +name = "pywin32" +version = "306" +description = "Python for Window Extensions" +category = "main" +optional = false +python-versions = "*" +files = [ + {file = "pywin32-306-cp310-cp310-win32.whl", hash = "sha256:06d3420a5155ba65f0b72f2699b5bacf3109f36acbe8923765c22938a69dfc8d"}, + {file = "pywin32-306-cp310-cp310-win_amd64.whl", hash = "sha256:84f4471dbca1887ea3803d8848a1616429ac94a4a8d05f4bc9c5dcfd42ca99c8"}, + {file = "pywin32-306-cp311-cp311-win32.whl", hash = "sha256:e65028133d15b64d2ed8f06dd9fbc268352478d4f9289e69c190ecd6818b6407"}, + {file = "pywin32-306-cp311-cp311-win_amd64.whl", hash = "sha256:a7639f51c184c0272e93f244eb24dafca9b1855707d94c192d4a0b4c01e1100e"}, + {file = "pywin32-306-cp311-cp311-win_arm64.whl", hash = "sha256:70dba0c913d19f942a2db25217d9a1b726c278f483a919f1abfed79c9cf64d3a"}, + {file = "pywin32-306-cp312-cp312-win32.whl", hash = "sha256:383229d515657f4e3ed1343da8be101000562bf514591ff383ae940cad65458b"}, + {file = "pywin32-306-cp312-cp312-win_amd64.whl", hash = "sha256:37257794c1ad39ee9be652da0462dc2e394c8159dfd913a8a4e8eb6fd346da0e"}, + {file = "pywin32-306-cp312-cp312-win_arm64.whl", hash = "sha256:5821ec52f6d321aa59e2db7e0a35b997de60c201943557d108af9d4ae1ec7040"}, + {file = "pywin32-306-cp37-cp37m-win32.whl", hash = "sha256:1c73ea9a0d2283d889001998059f5eaaba3b6238f767c9cf2833b13e6a685f65"}, + {file = "pywin32-306-cp37-cp37m-win_amd64.whl", hash = "sha256:72c5f621542d7bdd4fdb716227be0dd3f8565c11b280be6315b06ace35487d36"}, + {file = "pywin32-306-cp38-cp38-win32.whl", hash = "sha256:e4c092e2589b5cf0d365849e73e02c391c1349958c5ac3e9d5ccb9a28e017b3a"}, + {file = "pywin32-306-cp38-cp38-win_amd64.whl", hash = "sha256:e8ac1ae3601bee6ca9f7cb4b5363bf1c0badb935ef243c4733ff9a393b1690c0"}, + {file = "pywin32-306-cp39-cp39-win32.whl", hash = "sha256:e25fd5b485b55ac9c057f67d94bc203f3f6595078d1fb3b458c9c28b7153a802"}, + {file = "pywin32-306-cp39-cp39-win_amd64.whl", hash = "sha256:39b61c15272833b5c329a2989999dcae836b1eed650252ab1b7bfbe1d59f30f4"}, +] + +[[package]] +name = "requests" +version = "2.29.0" +description = "Python HTTP for Humans." +category = "main" +optional = false +python-versions = ">=3.7" +files = [ + {file = "requests-2.29.0-py3-none-any.whl", hash = "sha256:e8f3c9be120d3333921d213eef078af392fba3933ab7ed2d1cba3b56f2568c3b"}, + {file = "requests-2.29.0.tar.gz", hash = "sha256:f2e34a75f4749019bb0e3effb66683630e4ffeaf75819fb51bebef1bf5aef059"}, +] + +[package.dependencies] +certifi = ">=2017.4.17" +charset-normalizer = ">=2,<4" +idna = ">=2.5,<4" +urllib3 = ">=1.21.1,<1.27" + +[package.extras] +socks = ["PySocks (>=1.5.6,!=1.5.7)"] +use-chardet-on-py3 = ["chardet (>=3.0.2,<6)"] + +[[package]] +name = "sniffio" +version = "1.3.0" +description = "Sniff out which async library your code is running under" +category = "main" +optional = false +python-versions = ">=3.7" +files = [ + {file = "sniffio-1.3.0-py3-none-any.whl", hash = "sha256:eecefdce1e5bbfb7ad2eeaabf7c1eeb404d7757c379bd1f7e5cce9d8bf425384"}, + {file = "sniffio-1.3.0.tar.gz", hash = "sha256:e60305c5e5d314f5389259b7f22aaa33d8f7dee49763119234af3755c55b9101"}, +] + +[[package]] +name = "starlette" +version = "0.26.1" +description = "The little ASGI library that shines." +category = "main" +optional = false +python-versions = ">=3.7" +files = [ + {file = "starlette-0.26.1-py3-none-any.whl", hash = "sha256:e87fce5d7cbdde34b76f0ac69013fd9d190d581d80681493016666e6f96c6d5e"}, + {file = "starlette-0.26.1.tar.gz", hash = "sha256:41da799057ea8620e4667a3e69a5b1923ebd32b1819c8fa75634bbe8d8bea9bd"}, +] + +[package.dependencies] +anyio = ">=3.4.0,<5" + +[package.extras] +full = ["httpx (>=0.22.0)", "itsdangerous", "jinja2", "python-multipart", "pyyaml"] + +[[package]] +name = "testcontainers" +version = "3.7.1" +description = "Library provides lightweight, throwaway instances of common databases, Selenium web browsers, or anything else that can run in a Docker container" +category = "main" +optional = false +python-versions = ">=3.7" +files = [ + {file = "testcontainers-3.7.1-py2.py3-none-any.whl", hash = "sha256:7f48cef4bf0ccd78f1a4534d4b701a003a3bace851f24eae58a32f9e3f0aeba0"}, +] + +[package.dependencies] +deprecation = "*" +docker = ">=4.0.0" +wrapt = "*" + +[package.extras] +arangodb = ["python-arango"] +azurite = ["azure-storage-blob"] +clickhouse = ["clickhouse-driver"] +docker-compose = ["docker-compose"] +google-cloud-pubsub = ["google-cloud-pubsub (<2)"] +kafka = ["kafka-python"] +keycloak = ["python-keycloak"] +mongo = ["pymongo"] +mssqlserver = ["pymssql"] +mysql = ["pymysql", "sqlalchemy"] +neo4j = ["neo4j"] +oracle = ["cx-Oracle", "sqlalchemy"] +postgresql = ["psycopg2-binary", "sqlalchemy"] +rabbitmq = ["pika"] +redis = ["redis"] +selenium = ["selenium"] + +[[package]] +name = "tomli" +version = "2.0.1" +description = "A lil' TOML parser" +category = "dev" +optional = false +python-versions = ">=3.7" +files = [ + {file = "tomli-2.0.1-py3-none-any.whl", hash = "sha256:939de3e7a6161af0c887ef91b7d41a53e7c5a1ca976325f429cb46ea9bc30ecc"}, + {file = "tomli-2.0.1.tar.gz", hash = "sha256:de526c12914f0c550d15924c62d72abc48d6fe7364aa87328337a31007fe8a4f"}, +] + +[[package]] +name = "typing-extensions" +version = "4.5.0" +description = "Backported and Experimental Type Hints for Python 3.7+" +category = "main" +optional = false +python-versions = ">=3.7" +files = [ + {file = "typing_extensions-4.5.0-py3-none-any.whl", hash = "sha256:fb33085c39dd998ac16d1431ebc293a8b3eedd00fd4a32de0ff79002c19511b4"}, + {file = "typing_extensions-4.5.0.tar.gz", hash = "sha256:5cb5f4a79139d699607b3ef622a1dedafa84e115ab0024e0d9c044a9479ca7cb"}, +] + +[[package]] +name = "urllib3" +version = "1.26.15" +description = "HTTP library with thread-safe connection pooling, file post, and more." +category = "main" +optional = false +python-versions = ">=2.7, !=3.0.*, !=3.1.*, !=3.2.*, !=3.3.*, !=3.4.*, !=3.5.*" +files = [ + {file = "urllib3-1.26.15-py2.py3-none-any.whl", hash = "sha256:aa751d169e23c7479ce47a0cb0da579e3ede798f994f5816a74e4f4500dcea42"}, + {file = "urllib3-1.26.15.tar.gz", hash = "sha256:8a388717b9476f934a21484e8c8e61875ab60644d29b9b39e11e4b9dc1c6b305"}, +] + +[package.extras] +brotli = ["brotli (>=1.0.9)", "brotlicffi (>=0.8.0)", "brotlipy (>=0.6.0)"] +secure = ["certifi", "cryptography (>=1.3.4)", "idna (>=2.0.0)", "ipaddress", "pyOpenSSL (>=0.14)", "urllib3-secure-extra"] +socks = ["PySocks (>=1.5.6,!=1.5.7,<2.0)"] + +[[package]] +name = "uvicorn" +version = "0.22.0" +description = "The lightning-fast ASGI server." +category = "main" +optional = false +python-versions = ">=3.7" +files = [ + {file = "uvicorn-0.22.0-py3-none-any.whl", hash = "sha256:e9434d3bbf05f310e762147f769c9f21235ee118ba2d2bf1155a7196448bd996"}, + {file = "uvicorn-0.22.0.tar.gz", hash = "sha256:79277ae03db57ce7d9aa0567830bbb51d7a612f54d6e1e3e92da3ef24c2c8ed8"}, +] + +[package.dependencies] +click = ">=7.0" +h11 = ">=0.8" + +[package.extras] +standard = ["colorama (>=0.4)", "httptools (>=0.5.0)", "python-dotenv (>=0.13)", "pyyaml (>=5.1)", "uvloop (>=0.14.0,!=0.15.0,!=0.15.1)", "watchfiles (>=0.13)", "websockets (>=10.4)"] + +[[package]] +name = "websocket-client" +version = "1.5.1" +description = "WebSocket client for Python with low level API options" +category = "main" +optional = false +python-versions = ">=3.7" +files = [ + {file = "websocket-client-1.5.1.tar.gz", hash = "sha256:3f09e6d8230892547132177f575a4e3e73cfdf06526e20cc02aa1c3b47184d40"}, + {file = "websocket_client-1.5.1-py3-none-any.whl", hash = "sha256:cdf5877568b7e83aa7cf2244ab56a3213de587bbe0ce9d8b9600fc77b455d89e"}, +] + +[package.extras] +docs = ["Sphinx (>=3.4)", "sphinx-rtd-theme (>=0.5)"] +optional = ["python-socks", "wsaccel"] +test = ["websockets"] + +[[package]] +name = "wiremock" +version = "2.3.1" +description = "Wiremock Admin API Client" +category = "main" +optional = false +python-versions = "^3.7 | ^3.8 | ^3.9 | ^3.10 | ^3.11" +files = [] +develop = true + +[package.dependencies] +requests = "^2.20.0" + +[package.source] +type = "directory" +url = ".." + +[[package]] +name = "wrapt" +version = "1.15.0" +description = "Module for decorators, wrappers and monkey patching." +category = "main" +optional = false +python-versions = "!=3.0.*,!=3.1.*,!=3.2.*,!=3.3.*,!=3.4.*,>=2.7" +files = [ + {file = "wrapt-1.15.0-cp27-cp27m-macosx_10_9_x86_64.whl", hash = "sha256:ca1cccf838cd28d5a0883b342474c630ac48cac5df0ee6eacc9c7290f76b11c1"}, + {file = "wrapt-1.15.0-cp27-cp27m-manylinux1_i686.whl", hash = "sha256:e826aadda3cae59295b95343db8f3d965fb31059da7de01ee8d1c40a60398b29"}, + {file = "wrapt-1.15.0-cp27-cp27m-manylinux1_x86_64.whl", hash = "sha256:5fc8e02f5984a55d2c653f5fea93531e9836abbd84342c1d1e17abc4a15084c2"}, + {file = "wrapt-1.15.0-cp27-cp27m-manylinux2010_i686.whl", hash = "sha256:96e25c8603a155559231c19c0349245eeb4ac0096fe3c1d0be5c47e075bd4f46"}, + {file = "wrapt-1.15.0-cp27-cp27m-manylinux2010_x86_64.whl", hash = "sha256:40737a081d7497efea35ab9304b829b857f21558acfc7b3272f908d33b0d9d4c"}, + {file = "wrapt-1.15.0-cp27-cp27mu-manylinux1_i686.whl", hash = "sha256:f87ec75864c37c4c6cb908d282e1969e79763e0d9becdfe9fe5473b7bb1e5f09"}, + {file = "wrapt-1.15.0-cp27-cp27mu-manylinux1_x86_64.whl", hash = "sha256:1286eb30261894e4c70d124d44b7fd07825340869945c79d05bda53a40caa079"}, + {file = "wrapt-1.15.0-cp27-cp27mu-manylinux2010_i686.whl", hash = "sha256:493d389a2b63c88ad56cdc35d0fa5752daac56ca755805b1b0c530f785767d5e"}, + {file = "wrapt-1.15.0-cp27-cp27mu-manylinux2010_x86_64.whl", hash = "sha256:58d7a75d731e8c63614222bcb21dd992b4ab01a399f1f09dd82af17bbfc2368a"}, + {file = "wrapt-1.15.0-cp310-cp310-macosx_10_9_x86_64.whl", hash = "sha256:21f6d9a0d5b3a207cdf7acf8e58d7d13d463e639f0c7e01d82cdb671e6cb7923"}, + {file = "wrapt-1.15.0-cp310-cp310-macosx_11_0_arm64.whl", hash = "sha256:ce42618f67741d4697684e501ef02f29e758a123aa2d669e2d964ff734ee00ee"}, + {file = "wrapt-1.15.0-cp310-cp310-manylinux_2_17_aarch64.manylinux2014_aarch64.whl", hash = "sha256:41d07d029dd4157ae27beab04d22b8e261eddfc6ecd64ff7000b10dc8b3a5727"}, + {file = "wrapt-1.15.0-cp310-cp310-manylinux_2_5_i686.manylinux1_i686.manylinux_2_17_i686.manylinux2014_i686.whl", hash = "sha256:54accd4b8bc202966bafafd16e69da9d5640ff92389d33d28555c5fd4f25ccb7"}, + {file = "wrapt-1.15.0-cp310-cp310-manylinux_2_5_x86_64.manylinux1_x86_64.manylinux_2_17_x86_64.manylinux2014_x86_64.whl", hash = "sha256:2fbfbca668dd15b744418265a9607baa970c347eefd0db6a518aaf0cfbd153c0"}, + {file = "wrapt-1.15.0-cp310-cp310-musllinux_1_1_aarch64.whl", hash = "sha256:76e9c727a874b4856d11a32fb0b389afc61ce8aaf281ada613713ddeadd1cfec"}, + {file = "wrapt-1.15.0-cp310-cp310-musllinux_1_1_i686.whl", hash = "sha256:e20076a211cd6f9b44a6be58f7eeafa7ab5720eb796975d0c03f05b47d89eb90"}, + {file = "wrapt-1.15.0-cp310-cp310-musllinux_1_1_x86_64.whl", hash = "sha256:a74d56552ddbde46c246b5b89199cb3fd182f9c346c784e1a93e4dc3f5ec9975"}, + {file = "wrapt-1.15.0-cp310-cp310-win32.whl", hash = "sha256:26458da5653aa5b3d8dc8b24192f574a58984c749401f98fff994d41d3f08da1"}, + {file = "wrapt-1.15.0-cp310-cp310-win_amd64.whl", hash = "sha256:75760a47c06b5974aa5e01949bf7e66d2af4d08cb8c1d6516af5e39595397f5e"}, + {file = "wrapt-1.15.0-cp311-cp311-macosx_10_9_x86_64.whl", hash = "sha256:ba1711cda2d30634a7e452fc79eabcadaffedf241ff206db2ee93dd2c89a60e7"}, + {file = "wrapt-1.15.0-cp311-cp311-macosx_11_0_arm64.whl", hash = "sha256:56374914b132c702aa9aa9959c550004b8847148f95e1b824772d453ac204a72"}, + {file = "wrapt-1.15.0-cp311-cp311-manylinux_2_17_aarch64.manylinux2014_aarch64.whl", hash = "sha256:a89ce3fd220ff144bd9d54da333ec0de0399b52c9ac3d2ce34b569cf1a5748fb"}, + {file = "wrapt-1.15.0-cp311-cp311-manylinux_2_5_i686.manylinux1_i686.manylinux_2_17_i686.manylinux2014_i686.whl", hash = "sha256:3bbe623731d03b186b3d6b0d6f51865bf598587c38d6f7b0be2e27414f7f214e"}, + {file = "wrapt-1.15.0-cp311-cp311-manylinux_2_5_x86_64.manylinux1_x86_64.manylinux_2_17_x86_64.manylinux2014_x86_64.whl", hash = "sha256:3abbe948c3cbde2689370a262a8d04e32ec2dd4f27103669a45c6929bcdbfe7c"}, + {file = "wrapt-1.15.0-cp311-cp311-musllinux_1_1_aarch64.whl", hash = "sha256:b67b819628e3b748fd3c2192c15fb951f549d0f47c0449af0764d7647302fda3"}, + {file = "wrapt-1.15.0-cp311-cp311-musllinux_1_1_i686.whl", hash = "sha256:7eebcdbe3677e58dd4c0e03b4f2cfa346ed4049687d839adad68cc38bb559c92"}, + {file = "wrapt-1.15.0-cp311-cp311-musllinux_1_1_x86_64.whl", hash = "sha256:74934ebd71950e3db69960a7da29204f89624dde411afbfb3b4858c1409b1e98"}, + {file = "wrapt-1.15.0-cp311-cp311-win32.whl", hash = "sha256:bd84395aab8e4d36263cd1b9308cd504f6cf713b7d6d3ce25ea55670baec5416"}, + {file = "wrapt-1.15.0-cp311-cp311-win_amd64.whl", hash = "sha256:a487f72a25904e2b4bbc0817ce7a8de94363bd7e79890510174da9d901c38705"}, + {file = "wrapt-1.15.0-cp35-cp35m-manylinux1_i686.whl", hash = "sha256:4ff0d20f2e670800d3ed2b220d40984162089a6e2c9646fdb09b85e6f9a8fc29"}, + {file = "wrapt-1.15.0-cp35-cp35m-manylinux1_x86_64.whl", hash = "sha256:9ed6aa0726b9b60911f4aed8ec5b8dd7bf3491476015819f56473ffaef8959bd"}, + {file = "wrapt-1.15.0-cp35-cp35m-manylinux2010_i686.whl", hash = "sha256:896689fddba4f23ef7c718279e42f8834041a21342d95e56922e1c10c0cc7afb"}, + {file = "wrapt-1.15.0-cp35-cp35m-manylinux2010_x86_64.whl", hash = "sha256:75669d77bb2c071333417617a235324a1618dba66f82a750362eccbe5b61d248"}, + {file = "wrapt-1.15.0-cp35-cp35m-win32.whl", hash = "sha256:fbec11614dba0424ca72f4e8ba3c420dba07b4a7c206c8c8e4e73f2e98f4c559"}, + {file = "wrapt-1.15.0-cp35-cp35m-win_amd64.whl", hash = "sha256:fd69666217b62fa5d7c6aa88e507493a34dec4fa20c5bd925e4bc12fce586639"}, + {file = "wrapt-1.15.0-cp36-cp36m-macosx_10_9_x86_64.whl", hash = "sha256:b0724f05c396b0a4c36a3226c31648385deb6a65d8992644c12a4963c70326ba"}, + {file = "wrapt-1.15.0-cp36-cp36m-manylinux_2_17_aarch64.manylinux2014_aarch64.whl", hash = "sha256:bbeccb1aa40ab88cd29e6c7d8585582c99548f55f9b2581dfc5ba68c59a85752"}, + {file = "wrapt-1.15.0-cp36-cp36m-manylinux_2_5_i686.manylinux1_i686.manylinux_2_17_i686.manylinux2014_i686.whl", hash = "sha256:38adf7198f8f154502883242f9fe7333ab05a5b02de7d83aa2d88ea621f13364"}, + {file = "wrapt-1.15.0-cp36-cp36m-manylinux_2_5_x86_64.manylinux1_x86_64.manylinux_2_17_x86_64.manylinux2014_x86_64.whl", hash = "sha256:578383d740457fa790fdf85e6d346fda1416a40549fe8db08e5e9bd281c6a475"}, + {file = "wrapt-1.15.0-cp36-cp36m-musllinux_1_1_aarch64.whl", hash = "sha256:a4cbb9ff5795cd66f0066bdf5947f170f5d63a9274f99bdbca02fd973adcf2a8"}, + {file = "wrapt-1.15.0-cp36-cp36m-musllinux_1_1_i686.whl", hash = "sha256:af5bd9ccb188f6a5fdda9f1f09d9f4c86cc8a539bd48a0bfdc97723970348418"}, + {file = "wrapt-1.15.0-cp36-cp36m-musllinux_1_1_x86_64.whl", hash = "sha256:b56d5519e470d3f2fe4aa7585f0632b060d532d0696c5bdfb5e8319e1d0f69a2"}, + {file = "wrapt-1.15.0-cp36-cp36m-win32.whl", hash = "sha256:77d4c1b881076c3ba173484dfa53d3582c1c8ff1f914c6461ab70c8428b796c1"}, + {file = "wrapt-1.15.0-cp36-cp36m-win_amd64.whl", hash = "sha256:077ff0d1f9d9e4ce6476c1a924a3332452c1406e59d90a2cf24aeb29eeac9420"}, + {file = "wrapt-1.15.0-cp37-cp37m-macosx_10_9_x86_64.whl", hash = "sha256:5c5aa28df055697d7c37d2099a7bc09f559d5053c3349b1ad0c39000e611d317"}, + {file = "wrapt-1.15.0-cp37-cp37m-manylinux_2_17_aarch64.manylinux2014_aarch64.whl", hash = "sha256:3a8564f283394634a7a7054b7983e47dbf39c07712d7b177b37e03f2467a024e"}, + {file = "wrapt-1.15.0-cp37-cp37m-manylinux_2_5_i686.manylinux1_i686.manylinux_2_17_i686.manylinux2014_i686.whl", hash = "sha256:780c82a41dc493b62fc5884fb1d3a3b81106642c5c5c78d6a0d4cbe96d62ba7e"}, + {file = "wrapt-1.15.0-cp37-cp37m-manylinux_2_5_x86_64.manylinux1_x86_64.manylinux_2_17_x86_64.manylinux2014_x86_64.whl", hash = "sha256:e169e957c33576f47e21864cf3fc9ff47c223a4ebca8960079b8bd36cb014fd0"}, + {file = "wrapt-1.15.0-cp37-cp37m-musllinux_1_1_aarch64.whl", hash = "sha256:b02f21c1e2074943312d03d243ac4388319f2456576b2c6023041c4d57cd7019"}, + {file = "wrapt-1.15.0-cp37-cp37m-musllinux_1_1_i686.whl", hash = "sha256:f2e69b3ed24544b0d3dbe2c5c0ba5153ce50dcebb576fdc4696d52aa22db6034"}, + {file = "wrapt-1.15.0-cp37-cp37m-musllinux_1_1_x86_64.whl", hash = "sha256:d787272ed958a05b2c86311d3a4135d3c2aeea4fc655705f074130aa57d71653"}, + {file = "wrapt-1.15.0-cp37-cp37m-win32.whl", hash = "sha256:02fce1852f755f44f95af51f69d22e45080102e9d00258053b79367d07af39c0"}, + {file = "wrapt-1.15.0-cp37-cp37m-win_amd64.whl", hash = "sha256:abd52a09d03adf9c763d706df707c343293d5d106aea53483e0ec8d9e310ad5e"}, + {file = "wrapt-1.15.0-cp38-cp38-macosx_10_9_x86_64.whl", hash = "sha256:cdb4f085756c96a3af04e6eca7f08b1345e94b53af8921b25c72f096e704e145"}, + {file = "wrapt-1.15.0-cp38-cp38-macosx_11_0_arm64.whl", hash = "sha256:230ae493696a371f1dbffaad3dafbb742a4d27a0afd2b1aecebe52b740167e7f"}, + {file = "wrapt-1.15.0-cp38-cp38-manylinux_2_17_aarch64.manylinux2014_aarch64.whl", hash = "sha256:63424c681923b9f3bfbc5e3205aafe790904053d42ddcc08542181a30a7a51bd"}, + {file = "wrapt-1.15.0-cp38-cp38-manylinux_2_5_i686.manylinux1_i686.manylinux_2_17_i686.manylinux2014_i686.whl", hash = "sha256:d6bcbfc99f55655c3d93feb7ef3800bd5bbe963a755687cbf1f490a71fb7794b"}, + {file = "wrapt-1.15.0-cp38-cp38-manylinux_2_5_x86_64.manylinux1_x86_64.manylinux_2_17_x86_64.manylinux2014_x86_64.whl", hash = "sha256:c99f4309f5145b93eca6e35ac1a988f0dc0a7ccf9ccdcd78d3c0adf57224e62f"}, + {file = "wrapt-1.15.0-cp38-cp38-musllinux_1_1_aarch64.whl", hash = "sha256:b130fe77361d6771ecf5a219d8e0817d61b236b7d8b37cc045172e574ed219e6"}, + {file = "wrapt-1.15.0-cp38-cp38-musllinux_1_1_i686.whl", hash = "sha256:96177eb5645b1c6985f5c11d03fc2dbda9ad24ec0f3a46dcce91445747e15094"}, + {file = "wrapt-1.15.0-cp38-cp38-musllinux_1_1_x86_64.whl", hash = "sha256:d5fe3e099cf07d0fb5a1e23d399e5d4d1ca3e6dfcbe5c8570ccff3e9208274f7"}, + {file = "wrapt-1.15.0-cp38-cp38-win32.whl", hash = "sha256:abd8f36c99512755b8456047b7be10372fca271bf1467a1caa88db991e7c421b"}, + {file = "wrapt-1.15.0-cp38-cp38-win_amd64.whl", hash = "sha256:b06fa97478a5f478fb05e1980980a7cdf2712015493b44d0c87606c1513ed5b1"}, + {file = "wrapt-1.15.0-cp39-cp39-macosx_10_9_x86_64.whl", hash = "sha256:2e51de54d4fb8fb50d6ee8327f9828306a959ae394d3e01a1ba8b2f937747d86"}, + {file = "wrapt-1.15.0-cp39-cp39-macosx_11_0_arm64.whl", hash = "sha256:0970ddb69bba00670e58955f8019bec4a42d1785db3faa043c33d81de2bf843c"}, + {file = "wrapt-1.15.0-cp39-cp39-manylinux_2_17_aarch64.manylinux2014_aarch64.whl", hash = "sha256:76407ab327158c510f44ded207e2f76b657303e17cb7a572ffe2f5a8a48aa04d"}, + {file = "wrapt-1.15.0-cp39-cp39-manylinux_2_5_i686.manylinux1_i686.manylinux_2_17_i686.manylinux2014_i686.whl", hash = "sha256:cd525e0e52a5ff16653a3fc9e3dd827981917d34996600bbc34c05d048ca35cc"}, + {file = "wrapt-1.15.0-cp39-cp39-manylinux_2_5_x86_64.manylinux1_x86_64.manylinux_2_17_x86_64.manylinux2014_x86_64.whl", hash = "sha256:9d37ac69edc5614b90516807de32d08cb8e7b12260a285ee330955604ed9dd29"}, + {file = "wrapt-1.15.0-cp39-cp39-musllinux_1_1_aarch64.whl", hash = "sha256:078e2a1a86544e644a68422f881c48b84fef6d18f8c7a957ffd3f2e0a74a0d4a"}, + {file = "wrapt-1.15.0-cp39-cp39-musllinux_1_1_i686.whl", hash = "sha256:2cf56d0e237280baed46f0b5316661da892565ff58309d4d2ed7dba763d984b8"}, + {file = "wrapt-1.15.0-cp39-cp39-musllinux_1_1_x86_64.whl", hash = "sha256:7dc0713bf81287a00516ef43137273b23ee414fe41a3c14be10dd95ed98a2df9"}, + {file = "wrapt-1.15.0-cp39-cp39-win32.whl", hash = "sha256:46ed616d5fb42f98630ed70c3529541408166c22cdfd4540b88d5f21006b0eff"}, + {file = "wrapt-1.15.0-cp39-cp39-win_amd64.whl", hash = "sha256:eef4d64c650f33347c1f9266fa5ae001440b232ad9b98f1f43dfe7a79435c0a6"}, + {file = "wrapt-1.15.0-py3-none-any.whl", hash = "sha256:64b1df0f83706b4ef4cfb4fb0e4c2669100fd7ecacfb59e091fad300d4e04640"}, + {file = "wrapt-1.15.0.tar.gz", hash = "sha256:d06730c6aed78cee4126234cf2d071e01b44b915e725a6cb439a879ec9754a3a"}, +] + +[metadata] +lock-version = "2.0" +python-versions = "^3.10.6" +content-hash = "0d8e5ecb7cd01b6721d9b5298337df25b031d5c358e131bb97ba852b56b0f685" diff --git a/wiremock/tests/resource_tests/__init__.py b/examples/intro/product_mock/__init__.py similarity index 100% rename from wiremock/tests/resource_tests/__init__.py rename to examples/intro/product_mock/__init__.py diff --git a/examples/intro/product_mock/overview_service.py b/examples/intro/product_mock/overview_service.py new file mode 100644 index 0000000..67a6940 --- /dev/null +++ b/examples/intro/product_mock/overview_service.py @@ -0,0 +1,36 @@ +import os + +import requests +from fastapi import FastAPI + +app = FastAPI() + + +@app.get("/") +async def read_root(): + return {"Hello": "World"} + + +@app.get("/overview") +async def read_products(category: str = "", sort_by: str = ""): + PRODUCTS_SERVICE_HOST = os.environ.get( + "PRODUCTS_SERVICE_HOST", "http://products_srv:5002" + ) + + PRODUCTS_URL = f"{PRODUCTS_SERVICE_HOST}/products" + + params = {} + if category != "": + params["category"] = category + if sort_by != "": + params["sort_by"] = sort_by + + products_resp = requests.get(PRODUCTS_URL, params=params) + if products_resp.status_code < 300: + return {"products": products_resp.json()} + else: + return { + "error": True, + "error_message": products_resp.content, + "error_status": products_resp.status_code, + } diff --git a/examples/intro/product_mock/products_service.py b/examples/intro/product_mock/products_service.py new file mode 100644 index 0000000..2568888 --- /dev/null +++ b/examples/intro/product_mock/products_service.py @@ -0,0 +1,28 @@ +from fastapi import FastAPI + +app = FastAPI() + + +@app.get("/") +async def read_root(): + return {"Hello": "World"} + + +@app.get("/products") +async def read_products(category: str = None, sort_by: str = None): + products = [ + {"name": "Product A", "price": 10.99, "category": "Books"}, + {"name": "Product B", "price": 5.99, "category": "Movies"}, + {"name": "Product C", "price": 7.99, "category": "Electronics"}, + {"name": "Product D", "price": 12.99, "category": "Books"}, + {"name": "Product E", "price": 8.99, "category": "Movies"}, + {"name": "Product F", "price": 15.99, "category": "Electronics"}, + ] + + if category: + products = [p for p in products if p["category"] == category] + + if sort_by: + products = sorted(products, key=lambda p: p[sort_by]) + + return {"products": products} diff --git a/examples/intro/pyproject.toml b/examples/intro/pyproject.toml new file mode 100644 index 0000000..951d18d --- /dev/null +++ b/examples/intro/pyproject.toml @@ -0,0 +1,45 @@ +[tool.poetry] +name = "product-mock" +version = "0.1.0" +description = "An exmaple micro service that demonstrates the utility of python-wiremock" +authors = ["Mike Waites "] +license = "OSI Approved :: Apache Software License" +readme = "README.md" +packages = [{include = "product_mock"}] + +[tool.poetry.dependencies] +python = "^3.10.6" +fastapi = "^0.95.1" +requests = "^2.29.0" +uvicorn = "^0.22.0" +wiremock = { path = "../", develop=true} +httpx = "^0.24.0" +importlib-resources = "^5.12.0" +docker = "^6.1.0" +testcontainers = "^3.7.1" + +[tool.poetry.group.dev.dependencies] +pytest = "^7.3.1" +black = "^23.3.0" +isort = "^5.12.0" +mypy = "^1.2.0" + +[build-system] +requires = ["poetry-core"] +build-backend = "poetry.core.masonry.api" + +[tool.black] +exclude = ''' +/( + \.git + | \.hg + | \.mypy_cache + | \.tox + | \.venv + | _build + | buck-out + | build + | dist +)/ +''' +include = '\.pyi?' diff --git a/wiremock/tests/resource_tests/mappings_tests/__init__.py b/examples/intro/tests/__init__.py similarity index 100% rename from wiremock/tests/resource_tests/mappings_tests/__init__.py rename to examples/intro/tests/__init__.py diff --git a/examples/intro/tests/test_java_server.py b/examples/intro/tests/test_java_server.py new file mode 100644 index 0000000..3e1a21f --- /dev/null +++ b/examples/intro/tests/test_java_server.py @@ -0,0 +1,41 @@ +import os + +import pytest +from fastapi.testclient import TestClient +from wiremock.client import Mappings +from wiremock.constants import Config +from wiremock.server import WireMockServer + +from product_mock.overview_service import app + +from .utils import get_mappings, get_products + +client = TestClient(app) + + +@pytest.fixture(scope="module") +def wm_java(): + with WireMockServer() as _wm: + Config.base_url = f"http://localhost:{_wm.port}/__admin" + os.environ["PRODUCTS_SERVICE_HOST"] = f"http://localhost:{_wm.port}" + [Mappings.create_mapping(mapping=mapping) for mapping in get_mappings()] + + yield _wm + + Mappings.delete_all_mappings() + + +def test_get_overview_default(wm_java): + resp = client.get("/overview") + + assert resp.status_code == 200 + assert resp.json() == {"products": get_products()} + + +def test_get_overview_with_filters(wm_java): + resp = client.get("/overview?category=Books") + + assert resp.status_code == 200 + assert resp.json() == { + "products": list(filter(lambda p: p["category"] == "Books", get_products())) + } diff --git a/examples/intro/tests/test_testcontainers.py b/examples/intro/tests/test_testcontainers.py new file mode 100644 index 0000000..eb7c1cf --- /dev/null +++ b/examples/intro/tests/test_testcontainers.py @@ -0,0 +1,46 @@ +import os + +import pytest +from fastapi.testclient import TestClient +from wiremock.client import Mappings +from wiremock.constants import Config +from wiremock.testing.testcontainer import wiremock_container + +from product_mock.overview_service import app + +from .utils import get_mappings, get_products + +client = TestClient(app) + + +@pytest.fixture(scope="module") +def wm_docker(): + with wiremock_container(verify_ssl_certs=False, secure=False) as wm: + + Config.base_url = wm.get_url("__admin") + + os.environ["PRODUCTS_SERVICE_HOST"] = wm.get_base_url() + + [Mappings.create_mapping(mapping=mapping) for mapping in get_mappings()] + + yield wm + + Mappings.delete_all_mappings() + + +@pytest.mark.usefixtures("wm_docker") +def test_get_overview_default(): + resp = client.get("/overview") + + assert resp.status_code == 200 + assert resp.json() == {"products": get_products()} + + +@pytest.mark.usefixtures("wm_docker") +def test_get_overview_with_filters(): + resp = client.get("/overview?category=Books") + + assert resp.status_code == 200 + assert resp.json() == { + "products": list(filter(lambda p: p["category"] == "Books", get_products())) + } diff --git a/examples/intro/tests/utils.py b/examples/intro/tests/utils.py new file mode 100644 index 0000000..f2d89eb --- /dev/null +++ b/examples/intro/tests/utils.py @@ -0,0 +1,38 @@ +from wiremock.client import HttpMethods, Mapping, MappingRequest, MappingResponse + + +def get_products(): + return [ + {"name": "Mock Product A", "price": 10.99, "category": "Books"}, + {"name": "Mock Product B", "price": 5.99, "category": "Movies"}, + {"name": "Mock Product C", "price": 7.99, "category": "Electronics"}, + {"name": "Mock Product D", "price": 12.99, "category": "Books"}, + {"name": "Mock Product E", "price": 8.99, "category": "Movies"}, + {"name": "Mock Product F", "price": 15.99, "category": "Electronics"}, + ] + + +def get_mappings() -> list[Mapping]: + return [ + Mapping( + priority=100, + request=MappingRequest(method=HttpMethods.GET, url="/products"), + response=MappingResponse(status=200, json_body=get_products()), + persistent=False, + ), + Mapping( + priority=100, + request=MappingRequest( + method=HttpMethods.GET, + url=r"/products?category=Books", + query_parameters={"category": {"equalTo": "Books"}}, + ), + response=MappingResponse( + status=200, + json_body=list( + filter(lambda p: p["category"] == "Books", get_products()) + ), + ), + persistent=False, + ), + ] diff --git a/examples/quickstart/README.md b/examples/quickstart/README.md new file mode 100644 index 0000000..9eed028 --- /dev/null +++ b/examples/quickstart/README.md @@ -0,0 +1,21 @@ +# Python WireMock - Quickstart + +This example shows using WireMock to mock your services is by using the provided `WireMockContainer` +that uses [testcontainers-python](https://github.com/testcontainers/testcontainers-python) +and provisions WireMock as a test container on-demand. + +See the step-by-step guide [here](../../docs/quickstart.md) + +## Prerequisites + +- Python 3.9 or above +- Pip 20.0.0 or above (use `apt install python3-pip`, for example) +- Pytest 7.3.0 or above (use `pip install pytest`) +- Testcontainers 3.5.0 or above (use `pip install testcontainers`) + +## TL;DR + +```bash +pip install wiremock +pytest test.py -v +``` diff --git a/examples/quickstart/test.py b/examples/quickstart/test.py new file mode 100644 index 0000000..e3d0b06 --- /dev/null +++ b/examples/quickstart/test.py @@ -0,0 +1,25 @@ +import pytest +import requests + +from wiremock.testing.testcontainer import wiremock_container +from wiremock.constants import Config +from wiremock.client import * + +@pytest.fixture # (1) +def wiremock_server(): + with wiremock_container(secure=False) as wm: + Config.base_url = wm.get_url("__admin") # (2) + Mappings.create_mapping( + Mapping( + request=MappingRequest(method=HttpMethods.GET, url="/hello"), + response=MappingResponse(status=200, body="hello"), + persistent=False, + ) + ) # (3) + yield wm + +def test_get_hello_world(wiremock_server): # (4) + response = requests.get(wiremock_server.get_url("/hello")) + + assert response.status_code == 200 + assert response.content == b"hello" diff --git a/mkdocs.yml b/mkdocs.yml new file mode 100644 index 0000000..66a057f --- /dev/null +++ b/mkdocs.yml @@ -0,0 +1,21 @@ +site_name: python-wiremock docs +theme: + name: readthedocs + highlightjs: true +plugins: + - search +markdown_extensions: + - markdown_include.include: + base_path: . + - admonition + +nav: + - Home: index.md + - Quickstart Guide: quickstart.md + - Installation: install.md + - Testcontainers: testcontainers.md + - Standalone: api-client.md + - Contributing: CONTRIBUTING.md + - Resources: + - Examples: examples.md + - Changelog: changelog.md diff --git a/pyproject.toml b/pyproject.toml new file mode 100644 index 0000000..bb60d17 --- /dev/null +++ b/pyproject.toml @@ -0,0 +1,87 @@ +[project] +name = "wiremock" +version = "2.7.0" +description = "Wiremock Admin API Client" +authors = [ + {name = "Cody Lee", email = "cody.lee@datadoghq.com"}, + {name = "Mike Waites", email = "mikey.waites@gmail.com"} +] +readme = "README.md" +classifiers = [ + "Development Status :: 5 - Production/Stable", + "Environment :: Web Environment", + "Environment :: Other Environment", + "Environment :: Plugins", + "Intended Audience :: Developers", + "License :: OSI Approved :: Apache Software License", + "Operating System :: OS Independent", + "Natural Language :: English", + "Programming Language :: Python :: 3.9", + "Programming Language :: Python :: 3.10", + "Programming Language :: Python :: 3.11", + "Programming Language :: Python :: 3.12", + "Programming Language :: Python :: 3.13", + "Programming Language :: Python :: Implementation", + "Topic :: Internet :: WWW/HTTP", + "Topic :: Software Development :: Testing", + "Topic :: Software Development :: Testing :: Unit", + "Topic :: Software Development :: Testing :: Mocking", + "Topic :: Software Development :: Quality Assurance", + "Topic :: Software Development :: Libraries :: Python Modules", +] +requires-python = ">=3.9, <3.14" +dependencies = [ + "requests>=2.32.4" +] + +[project.optional-dependencies] +testing = [ + "docker>=7.1.0", + "testcontainers>=3.7.1,<4.0.0", +] + +[dependency-groups] +dev = [ + "black>=24.0.0", + "coverage>=7.2.3,<8.0.0", + "pytest-coverage>=0.0,<1.0.0", + "python-coveralls>=2.9.3,<3.0.0", + "responses>=0.23.1,<1.0.0", + "tox>=4.4.12,<5.0.0", + "watchdog>=3.0.0,<4.0.0", + "wheel>=0.40.0,<0.41.0", + "pytest>=7.3.1,<8.0.0", +] +docs = [ + "mkdocs>=1.3.0,<2.0.0", + "markdown-include>=0.8.1,<0.9.0", +] + +[tool.pytest.ini_options] +markers = [ + "unit: marks tests as unit tests", + "mappings", + "nearmisses", + "resource", + "serialization", +] +pythonpath = [ + "." +] + +[tool.black] +exclude = ''' +/( + \.git + | \.hg + | \.mypy_cache + | \.tox + | \.venv + | _build + | buck-out + | build + | dist +)/ +''' +include = '\.pyi?$' +line-length = 88 diff --git a/requirements.pip b/requirements.pip deleted file mode 100644 index 3618c43..0000000 --- a/requirements.pip +++ /dev/null @@ -1,16 +0,0 @@ -black==19.10b0 -coverage==5.0.3 -detox==0.19 -docutils==0.16 -mock==4.0.1 -nose==1.3.7 -python-coveralls==2.9.3 -requests==2.23.0 -responses==0.10.9 -Sphinx==2.4.3 -sphinx-rtd-theme==0.4.3 -toml==0.10.0 -tox==3.14.5 -twine==3.1.1 -virtualenv==20.0.5 -watchdog==0.10.2 diff --git a/run_coverage.sh b/run_coverage.sh deleted file mode 100755 index 84147ec..0000000 --- a/run_coverage.sh +++ /dev/null @@ -1,4 +0,0 @@ -#!/bin/bash - -mkdir ./coverage &>/dev/null -nosetests -w wiremock/tests --attr=unit --with-coverage --cover-erase --cover-package=wiremock --cover-html --cover-xml --cover-min-percentage=85 --cover-html-dir=./coverage/ --cover-xml-file=./coverage/coverage.xml diff --git a/run_tests.sh b/run_tests.sh index 79a126f..6c47a6c 100755 --- a/run_tests.sh +++ b/run_tests.sh @@ -1,5 +1,4 @@ #!/bin/sh rm -Rf build/ dist/ wiremock.egg-info coverage/ wiremock/tests/coverage/ html/ || true -echo -e 'y\n' | pip uninstall wiremock -nosetests -vv -w wiremock/tests --attr=unit +uv run pytest --cov=wiremock --tb=short diff --git a/setup.py b/setup.py deleted file mode 100644 index de69c5d..0000000 --- a/setup.py +++ /dev/null @@ -1,72 +0,0 @@ -import sys -from setuptools import setup, find_packages - -#next time: -#python setup.py register -#python setup.py sdist upload - -version = open('wiremock/VERSION', 'r').readline().strip() -develop_requires = [ - 'Sphinx~=2.4.3', - 'black~=19.10b0', - 'coverage~=5.0.3', - 'detox~=0.19', - 'mock~=4.0.1', - 'nose~=1.3.7', - 'python-coveralls~=2.9.3', - 'responses~=0.10.9', - 'requests~=2.23.0', - 'sphinx-rtd-theme~=0.4.3', - 'tox~=3.14.0', - 'watchdog~=0.10.2', - 'wheel>=0.34.2'] - -long_desc = """ -wiremock is an API Client to the Admin API for WireMock Standalone installation: https://wiremock.org/docs - -`Documentation `_ - -`Report a Bug `_ -""" - -setup( - name='wiremock', - version=version, - description='Wiremock Admin API Client', - dependency_links=['https://github.com/platinummonkey/python-wiremock/archive/{0}.tar.gz#egg=wiremock-{0}'.format(version)], - long_description=long_desc, - classifiers=[ - "Development Status :: 5 - Production/Stable", - "Environment :: Web Environment", - "Environment :: Other Environment", - "Environment :: Plugins", - "Intended Audience :: Developers", - "License :: OSI Approved :: Apache Software License", - "Operating System :: OS Independent", - "Natural Language :: English", - "Programming Language :: Python :: 3", - "Programming Language :: Python :: Implementation", - "Topic :: Internet :: WWW/HTTP", - "Topic :: Software Development :: Libraries :: Python Modules", - ], - keywords='wiremock', - install_requires=[ - 'setuptools>=45.2.0', - 'requests>=2.20.0' - ], - extras_require={ - 'develop': develop_requires, - 'docs': ['Sphinx>=2.4.3', 'sphinx-rtd-theme>=0.4.3', 'watchdog>=0.10.2'], - }, - test_suite='nose.collector', - tests_require=develop_requires, - author='Cody Lee', - author_email='cody.lee@datadoghq.com', - maintainer='Cody Lee', - maintainer_email='cody.lee@datadoghq.com', - url='https://github.com/platinummonkey/python-wiremock', - license='Apache Software License 2.0', - packages=find_packages(), - include_package_data=True, - python_requires='>=3.4', -) diff --git a/tests/conftest.py b/tests/conftest.py new file mode 100644 index 0000000..103b602 --- /dev/null +++ b/tests/conftest.py @@ -0,0 +1,11 @@ +import pytest + +from wiremock.base import RestClient +from wiremock.constants import Config + + +@pytest.fixture +def client(): + Config.base_url = "http://localhost/__admin" + Config.timeout = 1 + return RestClient() diff --git a/tests/test_containers.py b/tests/test_containers.py new file mode 100644 index 0000000..cbcde56 --- /dev/null +++ b/tests/test_containers.py @@ -0,0 +1,402 @@ +from pathlib import Path +from typing import cast +from unittest.mock import MagicMock, Mock, patch + +import pytest +import requests +from docker.models.containers import Container + +from wiremock.client import ( + HttpMethods, + Mapping, + MappingRequest, + MappingResponse, + Mappings, +) +from wiremock.constants import Config +from wiremock.testing.testcontainer import ( + WireMockContainer, + WireMockContainerException, + wiremock_container, +) + + +@patch.object(WireMockContainer, "get_exposed_port") +@patch.object(WireMockContainer, "get_container_host_ip") +def test_get_secure_base_url(mock_get_ip, mock_get_port): + # Arrange + wm = WireMockContainer( + secure=True, + verify_ssl_certs=False, + ) + mock_get_ip.return_value = "127.0.0.1" + mock_get_port.return_value = 63379 + expected_url = "https://127.0.0.1:63379" + + # Act/Assert + assert wm.get_base_url() == expected_url + + +@patch.object(WireMockContainer, "get_exposed_port") +@patch.object(WireMockContainer, "get_container_host_ip") +def test_get_secure_url(mock_get_ip, mock_get_port): + # Arrange + wm = WireMockContainer( + secure=True, + verify_ssl_certs=False, + ) + path = "example-path" + mock_get_ip.return_value = "127.0.0.1" + mock_get_port.return_value = 63379 + + expected_url = "https://127.0.0.1:63379/example-path" + + # Act/Assert + assert wm.get_url(path) == expected_url + + +@patch.object(WireMockContainer, "get_exposed_port") +@patch.object(WireMockContainer, "get_container_host_ip") +def test_get_non_secure_base_url(mock_get_ip, mock_get_port): + # Arrange + wm = WireMockContainer( + secure=False, + verify_ssl_certs=False, + ) + mock_get_ip.return_value = "127.0.0.1" + mock_get_port.return_value = 63379 + expected_url = "http://127.0.0.1:63379" + + # Act/Assert + assert wm.get_base_url() == expected_url + + +@patch.object(WireMockContainer, "get_exposed_port") +@patch.object(WireMockContainer, "get_container_host_ip") +def test_get_non_secure_url(mock_get_ip, mock_get_port): + # Arrange + wm = WireMockContainer( + secure=False, + verify_ssl_certs=False, + ) + path = "example-path" + mock_get_ip.return_value = "127.0.0.1" + mock_get_port.return_value = 63379 + expected_url = "http://127.0.0.1:63379/example-path" + + # Act/Assert + assert wm.get_url(path) == expected_url + + +@patch.object(WireMockContainer, "initialize") +def test_initialize_method_call_on_instance_creation(mock_init): + + # Arrange/Act + WireMockContainer() + + # Assert + mock_init.assert_called_once_with() + + +@patch.object(WireMockContainer, "with_https_port") +def test_initialize_set_defaults(mock_set_secure_port): + + wm = WireMockContainer() + + assert wm.https_server_port == 8443 + assert wm.http_server_port == 8080 + assert wm.wire_mock_args == [] + assert wm.mapping_stubs == {} + assert wm.mapping_files == {} + assert wm.extensions == {} + mock_set_secure_port.assert_called_once_with() + + +@patch.object(WireMockContainer, "with_http_port") +@patch.object(WireMockContainer, "with_https_port") +def test_initialize_non_secure_mode_sets_http_port( + mock_set_secure_port, mock_set_unsecure_port +): + wm = WireMockContainer(secure=False) + + assert wm.https_server_port == 8443 + assert wm.http_server_port == 8080 + assert wm.wire_mock_args == [] + assert wm.mapping_stubs == {} + assert wm.mapping_files == {} + assert wm.extensions == {} + + assert not mock_set_secure_port.called + mock_set_unsecure_port.assert_called_once_with() + + +@patch.object(WireMockContainer, "with_exposed_ports") +@patch.object(WireMockContainer, "with_cli_arg") +def test_with_https_port_default(mock_cli_arg, mock_expose_port): + + # Arrange + wm = WireMockContainer(init=False) + + # Act + wm.with_https_port() + + # Assert + mock_cli_arg.assert_called_once_with("--https-port", "8443") + mock_expose_port.assert_called_once_with(wm.https_server_port) + + +@patch.object(WireMockContainer, "with_exposed_ports") +@patch.object(WireMockContainer, "with_cli_arg") +def test_with_https_port_with_user_defined_port_value(mock_cli_arg, mock_expose_port): + + # Arrange + wm = WireMockContainer(https_server_port=9443, init=False) + + # Act + wm.with_https_port() + + # Assert + mock_cli_arg.assert_called_once_with("--https-port", "9443") + mock_expose_port.assert_called_once_with(9443) + + +@patch.object(WireMockContainer, "with_exposed_ports") +@patch.object(WireMockContainer, "with_cli_arg") +def test_with_http_port_default(mock_cli_arg, mock_expose_port): + + # Arrange + wm = WireMockContainer(init=False) + + # Act + wm.with_http_port() + + # Assert + mock_cli_arg.assert_called_once_with("--port", "8080") + mock_expose_port.assert_called_once_with(wm.http_server_port) + + +@patch.object(WireMockContainer, "with_exposed_ports") +@patch.object(WireMockContainer, "with_cli_arg") +def test_with_http_port_with_user_defined_port_value(mock_cli_arg, mock_expose_port): + + # Arrange + wm = WireMockContainer(http_server_port=5000, init=False) + + # Act + wm.with_http_port() + + # Assert + mock_cli_arg.assert_called_once_with("--port", "5000") + mock_expose_port.assert_called_once_with(5000) + + +@patch("wiremock.testing.testcontainer.requests.get") +@patch.object(WireMockContainer, "get_url") +def test_container_starts_with_custom_https_port(mock_get_url, mock_get): + + # Arrange + mock_get_url.return_value = "http://localhost/__admin/mappings" + resp_mock = MagicMock(spec=requests.Response) + resp_mock.status_code = 200 + mock_get.return_value = resp_mock + wm = WireMockContainer(verify_ssl_certs=False, https_server_port=9443) + + # Act + assert wm.server_running() is True + + +@patch("wiremock.testing.testcontainer.requests.get") +@patch.object(WireMockContainer, "get_url") +def test_container_starts_with_custom_http_port(mock_get_url, mock_get): + + # Arrange + mock_get_url.return_value = "http://localhost/__admin/mappings" + resp_mock = MagicMock(spec=requests.Response) + resp_mock.status_code = 200 + mock_get.return_value = resp_mock + wm = WireMockContainer(verify_ssl_certs=False, secure=False, http_server_port=5000) + + # Act + + assert wm.server_running() is True + + +@patch("wiremock.testing.testcontainer.requests.get") +@patch.object(WireMockContainer, "get_url") +def test_container_not_running_returns_false(mock_get_url, mock_get): + + # Arrange + mock_get_url.return_value = "http://localhost/__admin/mappings" + resp_mock = MagicMock(spec=requests.Response) + resp_mock.status_code = 403 + mock_get.return_value = resp_mock + wm = WireMockContainer(verify_ssl_certs=False, secure=False, http_server_port=5000) + + # Act + + assert wm.server_running() is False + + +@patch("wiremock.testing.testcontainer.requests.post") +@patch.object(WireMockContainer, "get_url") +def test_reload_mappings(mock_get_url, mock_post): + + # Arrange + mock_get_url.return_value = "http://localhost/__admin/mappings" + resp_mock = MagicMock(spec=requests.Response) + resp_mock.status_code = 200 + mock_post.return_value = resp_mock + wm = WireMockContainer(verify_ssl_certs=False, secure=False, http_server_port=5000) + + # Act + resp = wm.reload_mappings() + + assert resp.status_code == 200 + + +@patch("wiremock.testing.testcontainer.requests.post") +@patch.object(WireMockContainer, "get_url") +def test_reload_mappings_failure_raises_exception(mock_get_url, mock_post): + + # Arrange + mock_get_url.return_value = "http://localhost/__admin/mappings" + resp_mock = MagicMock(spec=requests.Response) + resp_mock.status_code = 403 + mock_post.return_value = resp_mock + wm = WireMockContainer(verify_ssl_certs=False, secure=False, http_server_port=5000) + + # Act + with pytest.raises(WireMockContainerException): + wm.reload_mappings() + + +def test_container_with_cli_arg_sets_cmd_line_args(): + + # Arrange + wm = WireMockContainer() + + # Act + wm.with_cli_arg("--foo", "bar") + + # Assert + assert wm.wire_mock_args == ["--https-port", "8443", "--foo", "bar"] + + +def test_container_with_command_generates_command_from_cli_args(): + + # Arrange + wm = WireMockContainer() + + # Act + wm.with_command() + + # Assert + assert wm._command == "--https-port 8443" + + +def test_container_with_command_override(): + + # Arrange + wm = WireMockContainer() + + # Act + wm.with_command(cmd="--foo bar") + + # Assert + assert wm._command == "--foo bar" + + +@patch.object(WireMockContainer, "get_wrapped_container", spec=Container) +def test_copy_file_to_container(mock_get_container: Mock, tmp_path: Path): + + # Arrange + d = tmp_path / "mappings" + d.mkdir() + mapping = d / "mapping.json" + mapping.write_text('{"foo": "bar"}') + wm = WireMockContainer() + + # Act + wm.copy_file_to_container(mapping, Path(wm.MAPPINGS_DIR)) + + # Assert + mock_get_container.return_value.put_archive.assert_called_once_with( + path=Path(wm.MAPPINGS_DIR).as_posix(), data=b'{"foo": "bar"}' + ) + + +@pytest.mark.container_test +def test_configure_manually(): + + wm = cast( + WireMockContainer, + ( + WireMockContainer(verify_ssl_certs=False) + .with_mapping( + "hello-world.json", + { + "request": {"method": "GET", "url": "/hello"}, + "response": {"status": 200, "body": "hello"}, + }, + ) + .with_mapping( + "hello-world-file.json", + { + "request": {"method": "GET", "url": "/hello2"}, + "response": {"status": 200, "bodyFileName": "hello.json"}, + }, + ) + .with_file("hello.json", {"message": "Hello World !"}) + .with_cli_arg("--verbose", "") + .with_cli_arg("--root-dir", "/home/wiremock") + .with_env("JAVA_OPTS", "-Djava.net.preferIPv4Stack=true") + ), + ) + with wm: + resp1 = requests.get(wm.get_url("/hello"), verify=False) + resp2 = requests.get(wm.get_url("/hello2"), verify=False) + assert resp1.status_code == 200 + assert resp1.content == b"hello" + assert resp2.status_code == 200 + assert resp2.content == b'{"message": "Hello World !"}' + + +@pytest.mark.container_test +def test_configure_via_wiremock_container_context_manager(): + + mappings = [ + ( + "hello-world.json", + { + "request": {"method": "GET", "url": "/hello"}, + "response": {"status": 200, "body": "hello"}, + }, + ) + ] + + with wiremock_container(mappings=mappings, verify_ssl_certs=False) as wm: + + resp1 = requests.get(wm.get_url("/hello"), verify=False) + assert resp1.status_code == 200 + assert resp1.content == b"hello" + + +@pytest.mark.container_test +def test_container_sdk_integration(): + + with wiremock_container(secure=False) as wm: + + Config.base_url = wm.get_url("__admin") + + Mappings.create_mapping( + Mapping( + priority=100, + request=MappingRequest(method=HttpMethods.GET, url="/hello"), + response=MappingResponse(status=200, body="hello"), + persistent=False, + ) + ) + + resp1 = requests.get(wm.get_url("/hello"), verify=False) + assert resp1.status_code == 200 + assert resp1.content == b"hello" diff --git a/tests/test_resources/test_base_resource.py b/tests/test_resources/test_base_resource.py new file mode 100644 index 0000000..ffed7aa --- /dev/null +++ b/tests/test_resources/test_base_resource.py @@ -0,0 +1,22 @@ +import pytest +from requests import Response + +from wiremock.exceptions import UnexpectedResponseException + + +# Helpers +def create_dummy_response(status_code=200): + resp = Response() + resp.status_code = status_code + return resp + + +def test_handle_response(client): + for status_code in [200, 201, 204]: + resp = create_dummy_response(status_code) + returned = client.handle_response(resp) + assert returned == resp + + resp = create_dummy_response(203) + with pytest.raises(UnexpectedResponseException): + client.handle_response(resp) diff --git a/tests/test_resources/test_mapping/test_mapping_resource.py b/tests/test_resources/test_mapping/test_mapping_resource.py new file mode 100644 index 0000000..b491859 --- /dev/null +++ b/tests/test_resources/test_mapping/test_mapping_resource.py @@ -0,0 +1,190 @@ +import pytest +import responses + +from wiremock.client import ( + AllMappings, + Mapping, + MappingMeta, + MappingRequest, + MappingResponse, + Mappings, +) + + +@pytest.mark.unit +@pytest.mark.mappings +@pytest.mark.resource +@responses.activate +def test_create_mapping(): + m = Mapping( + priority=1, + request=MappingRequest(url="test", method="GET"), + response=MappingResponse(status=200, body="test"), + ) + + e = Mapping(**m, id="1234-5678") + resp = e.get_json_data() + responses.add( + responses.POST, "http://localhost/__admin/mappings", json=resp, status=200 + ) + + r = Mappings.create_mapping(m) + assert isinstance(r, Mapping) + assert r.id == "1234-5678" + assert r.priority == 1 + assert r.request == m.request + assert r.response == m.response + + +@pytest.mark.unit +@pytest.mark.mappings +@pytest.mark.resource +@responses.activate +def test_retrieve_all_mappings(): + e = AllMappings( + mappings=[ + Mapping(id="1234-5678", priority=1), + ], + meta=MappingMeta(total=1), + ) + resp = e.get_json_data() + responses.add( + responses.GET, + "http://localhost/__admin/mappings", + json=resp, + status=200, + ) + + r = Mappings.retrieve_all_mappings() + assert isinstance(r, AllMappings) + assert isinstance(r.meta, MappingMeta) + assert 1 == r.meta.total + + +@pytest.mark.unit +@pytest.mark.mappings +@pytest.mark.resource +@responses.activate +def test_retrieve_mapping(): + e = Mapping(id="1234-5678", priority=1) + resp = e.get_json_data() + responses.add( + responses.GET, + "http://localhost/__admin/mappings/1234-5678", + json=resp, + status=200, + ) + + r = Mappings.retrieve_mapping(e) + assert isinstance(r, Mapping) + assert "1234-5678" == r.id + assert 1 == r.priority + + +@pytest.mark.unit +@pytest.mark.mappings +@pytest.mark.resource +@responses.activate +def test_update_mapping(): + e = Mapping(id="1234-5678", priority=1) + resp = e.get_json_data() + responses.add( + responses.PUT, + "http://localhost/__admin/mappings/1234-5678", + json=resp, + status=200, + ) + + r = Mappings.update_mapping(e) + assert isinstance(r, Mapping) + assert "1234-5678" == r.id + assert 1 == r.priority + + +@pytest.mark.unit +@pytest.mark.mappings +@pytest.mark.resource +@responses.activate +def test_persist_mappings(): + responses.add( + responses.POST, + "http://localhost/__admin/mappings/save", + body="", + status=200, + ) + + r = Mappings.persist_mappings() + assert r.status_code == 200 + + +@pytest.mark.unit +@pytest.mark.mappings +@pytest.mark.resource +@responses.activate +def test_reset_mappings(): + responses.add( + responses.POST, + "http://localhost/__admin/mappings/reset", + body="", + status=200, + ) + + r = Mappings.reset_mappings() + assert r.status_code == 200 + + +@pytest.mark.unit +@pytest.mark.mappings +@pytest.mark.resource +@responses.activate +def test_delete_all_mappings(): + responses.add( + responses.DELETE, + "http://localhost/__admin/mappings", + body="", + status=200, + ) + + r = Mappings.delete_all_mappings() + assert r.status_code == 200 + + +@pytest.mark.unit +@pytest.mark.mappings +@pytest.mark.resource +@responses.activate +def test_delete_mapping(): + e = Mapping(id="1234-5678", priority=1) + responses.add( + responses.DELETE, + "http://localhost/__admin/mappings/1234-5678", + body="", + status=200, + ) + + r = Mappings.delete_mapping(e) + assert r.status_code == 200 + + +@pytest.mark.unit +@pytest.mark.mappings +@pytest.mark.resource +@responses.activate +def test_delete_mapping_by_metadata(): + responses.add( + responses.POST, + "http://localhost/__admin/mappings/remove-by-metadata", + body="{}", + status=200, + ) + + r = Mappings.delete_mapping_by_metadata( + { + "matchesJsonPath": { + "expression": "$.some.key", + "equalTo": "SomeValue", + }, + } + ) + + assert r.status_code == 200 diff --git a/tests/test_resources/test_mapping/test_mapping_serialization.py b/tests/test_resources/test_mapping/test_mapping_serialization.py new file mode 100644 index 0000000..d3809ad --- /dev/null +++ b/tests/test_resources/test_mapping/test_mapping_serialization.py @@ -0,0 +1,395 @@ +import pytest + +from tests.utils import assertDictContainsKeyWithValue +from wiremock.resources.mappings import ( + AllMappings, + BasicAuthCredentials, + DelayDistribution, + DelayDistributionMethods, + Mapping, + MappingMeta, + MappingRequest, + MappingResponse, +) + + +@pytest.mark.unit +@pytest.mark.serialization +@pytest.mark.mappings +def test_basic_auth_credentials_serialization(): + e = BasicAuthCredentials(username="username", password="password") + serialized = e.get_json_data() + assert serialized["username"] == "username" + assert serialized["password"] == "password" + + +@pytest.mark.unit +@pytest.mark.serialization +@pytest.mark.mappings +def test_basic_auth_credentials_deserialization(): + serialized = {"username": "username", "password": "password"} + e = BasicAuthCredentials.from_dict(serialized) + assert isinstance(e, BasicAuthCredentials) + assert e.username == "username" + assert e.password == "password" + + +@pytest.mark.unit +@pytest.mark.serialization +@pytest.mark.mappings +def test_mapping_meta_serialization(): + e = MappingMeta(total=1) + serialized = e.get_json_data() + assert serialized["total"] == 1 + + +@pytest.mark.unit +@pytest.mark.serialization +@pytest.mark.mappings +def test_mapping_meta_deserialization(): + serialized = {"total": 1} + e = MappingMeta.from_dict(serialized) + assert isinstance(e, MappingMeta) + assert e.total == 1 + + +@pytest.mark.unit +@pytest.mark.serialization +@pytest.mark.mappings +def test_delay_distribution_serialization(): + e = DelayDistribution( + distribution_type=DelayDistributionMethods.LOG_NORMAL, + median=0.1, + sigma=0.2, + upper=4, + lower=3, + ) + serialized = e.get_json_data() + assert serialized["type"] == "lognormal" + assert serialized["median"] == 0.1 + assert serialized["sigma"] == 0.2 + assert serialized["lower"] == 3 + assert serialized["upper"] == 4 + + +@pytest.mark.unit +@pytest.mark.serialization +@pytest.mark.mappings +def test_delay_distribution_deserialization(): + serialized = { + "type": "lognormal", + "median": 0.1, + "sigma": 0.2, + "lower": 3, + "upper": 4, + } + e = DelayDistribution.from_dict(serialized) + assert isinstance(e, DelayDistribution) + assert e.distribution_type == "lognormal" + assert e.median == 0.1 + assert e.sigma == 0.2 + assert e.lower == 3 + assert e.upper == 4 + + +@pytest.mark.unit +@pytest.mark.serialization +@pytest.mark.mappings +def test_mapping_request_serialization(): + e = MappingRequest( + method="GET", + url="test1", + url_path="test2", + url_path_pattern="test3", + url_pattern="test4", + basic_auth_credentials=BasicAuthCredentials( + username="username", password="password" + ), + cookies={"chocolate": "chip"}, + headers={"Accept": "stuff"}, + query_parameters={"param": "1"}, + body_patterns={"test": "test2"}, + metadata={"key": "value"}, + ) + serialized = e.get_json_data() + assert serialized["method"] == "GET" + assert serialized["url"] == "test1" + assert serialized["urlPath"] == "test2" + assert serialized["urlPathPattern"] == "test3" + assert serialized["urlPattern"] == "test4" + assert serialized["basicAuthCredentials"] == { + "username": "username", + "password": "password", + } + assert serialized["cookies"] == {"chocolate": "chip"} + assert serialized["headers"] == {"Accept": "stuff"} + + assert serialized["queryParameters"] == {"param": "1"} + assert serialized["bodyPatterns"] == {"test": "test2"} + assert serialized["metadata"] == {"key": "value"} + + +@pytest.mark.unit +@pytest.mark.serialization +@pytest.mark.mappings +def test_mapping_request_deserialization(): + serialized = { + "method": "GET", + "url": "test1", + "urlPath": "test2", + "urlPathPattern": "test3", + "urlPattern": "test4", + "basicAuthCredentials": { + "username": "username", + "password": "password", + }, + "cookies": {"chocolate": "chip"}, + "headers": {"Accept": "stuff"}, + "queryParameters": {"param": "1"}, + "bodyPatterns": {"test": "test2"}, + "metadata": {"key": [1, 2, 3]}, + } + e = MappingRequest.from_dict(serialized) + assert isinstance(e, MappingRequest) + assert "GET" == e.method + assert "test1" == e.url + assert "test2" == e.url_path + assert "test3" == e.url_path_pattern + assert "test4" == e.url_pattern + assert isinstance(e.basic_auth_credentials, BasicAuthCredentials) + assert "username" == e.basic_auth_credentials.username + assert "password" == e.basic_auth_credentials.password + assert {"chocolate": "chip"} == e.cookies + assert {"Accept": "stuff"} == e.headers + assert {"param": "1"} == e.query_parameters + assert {"test": "test2"} == e.body_patterns + assert {"key": [1, 2, 3]} == e.metadata + + +@pytest.mark.unit +@pytest.mark.serialization +@pytest.mark.mappings +def test_mapping_response_serialization(): + e = MappingResponse( + additional_proxy_request_headers={"test": "1"}, + base64_body="test2", + body="test3", + body_file_name="test4", + json_body="test5", + delay_distribution=DelayDistribution( + distribution_type="lognormal", sigma=0.1, median=0.2 + ), + fault="test6", + fixed_delay_milliseconds=500, + from_configured_stub="test7", + headers={"test": "1"}, + proxy_base_url="test8", + status=200, + status_message="test9", + transformer_parameters={"test2": "2"}, + transformers=["test10"], + ) + serialized = e.get_json_data() + assertDictContainsKeyWithValue( + serialized, "additionalProxyRequestHeaders", {"test": "1"} + ) + assertDictContainsKeyWithValue(serialized, "base64Body", "test2") + assertDictContainsKeyWithValue(serialized, "body", "test3") + assertDictContainsKeyWithValue(serialized, "bodyFileName", "test4") + assertDictContainsKeyWithValue(serialized, "jsonBody", "test5") + assertDictContainsKeyWithValue( + serialized, + "delayDistribution", + { + "type": "lognormal", + "sigma": 0.1, + "median": 0.2, + }, + ) + assertDictContainsKeyWithValue(serialized, "fault", "test6") + assertDictContainsKeyWithValue(serialized, "fixedDelayMilliseconds", 500) + assertDictContainsKeyWithValue(serialized, "fromConfiguredStub", "test7") + assertDictContainsKeyWithValue(serialized, "headers", {"test": "1"}) + assertDictContainsKeyWithValue(serialized, "proxyBaseUrl", "test8") + assertDictContainsKeyWithValue(serialized, "status", 200) + assertDictContainsKeyWithValue(serialized, "statusMessage", "test9") + assertDictContainsKeyWithValue( + serialized, + "transformerParameters", + {"test2": "2"}, + ) + assertDictContainsKeyWithValue(serialized, "transformers", ["test10"]) + + +@pytest.mark.unit +@pytest.mark.serialization +@pytest.mark.mappings +def test_mapping_response_deserialization(): + serialized = { + "additionalProxyRequestHeaders": {"test": "1"}, + "base64Body": "test2", + "body": "test3", + "bodyFileName": "test4", + "jsonBody": "test5", + "delayDistribution": {"type": "lognormal", "sigma": 0.1, "median": 0.2}, + "fault": "test6", + "fixedDelayMilliseconds": 500, + "fromConfiguredStub": "test7", + "headers": {"test": "1"}, + "proxyBaseUrl": "test8", + "status": 200, + "statusMessage": "test9", + "transformerParameters": {"test2": "2"}, + "transformers": ["test10"], + } + e = MappingResponse.from_dict(serialized) + assert isinstance(e, MappingResponse) + assert e.additional_proxy_request_headers == {"test": "1"} + assert e.base64_body == "test2" + assert e.body == "test3" + assert e.body_file_name == "test4" + assert e.json_body == "test5" + assert isinstance(e.delay_distribution, DelayDistribution) + assert e.delay_distribution.distribution_type == "lognormal" + assert e.fault == "test6" + assert e.fixed_delay_milliseconds == 500 + assert e.from_configured_stub == "test7" + assert e.headers == {"test": "1"} + assert e.proxy_base_url == "test8" + assert e.status == 200 + assert e.status_message == "test9" + assert e.transformer_parameters == {"test2": "2"} + assert e.body == "test3" + assert e.body_file_name == "test4" + assert e.json_body == "test5" + assert isinstance(e.delay_distribution, DelayDistribution) + assert e.delay_distribution.distribution_type == "lognormal" + assert e.fault == "test6" + assert e.fixed_delay_milliseconds == 500 + assert e.from_configured_stub == "test7" + assert e.headers == {"test": "1"} + assert e.proxy_base_url == "test8" + assert e.status == 200 + assert e.status_message == "test9" + assert e.transformer_parameters == {"test2": "2"} + assert e.transformers == ["test10"] + + +@pytest.mark.unit +@pytest.mark.serialization +@pytest.mark.mappings +def test_mapping_serialization(): + e = Mapping( + priority=1, + request=MappingRequest(method="GET", url="test"), + response=MappingResponse(status=200, status_message="test2"), + persistent=False, + post_serve_actions={"test": "1"}, + new_scenario_state="test3", + required_scenario_state="test4", + scenario_name="test5", + ) + serialized = e.get_json_data() + + assertDictContainsKeyWithValue(serialized, "priority", 1) + assertDictContainsKeyWithValue( + serialized, + "request", + { + "method": "GET", + "url": "test", + }, + ) + assertDictContainsKeyWithValue( + serialized, + "response", + { + "status": 200, + "statusMessage": "test2", + }, + ) + assertDictContainsKeyWithValue(serialized, "persistent", False) + + assertDictContainsKeyWithValue( + serialized, + "postServeActions", + {"test": "1"}, + ) + assertDictContainsKeyWithValue(serialized, "newScenarioState", "test3") + assertDictContainsKeyWithValue( + serialized, + "requiredScenarioState", + "test4", + ) + assertDictContainsKeyWithValue(serialized, "scenarioName", "test5") + + +@pytest.mark.unit +@pytest.mark.serialization +@pytest.mark.mappings +def test_mapping_deserialization(): + serialized = { + "priority": 1, + "request": {"method": "GET", "url": "test"}, + "response": {"status": 200, "statusMessage": "test2"}, + "persistent": False, + "postServeActions": {"test": "1"}, + "newScenarioState": "test3", + "requiredScenarioState": "test4", + "scenarioName": "test5", + } + e = Mapping.from_dict(serialized) + assert isinstance(e, Mapping) + assert e.priority == 1 + assert isinstance(e.request, MappingRequest) + assert e.request.method == "GET" + assert e.request.url == "test" + assert isinstance(e.response, MappingResponse) + assert e.response.status == 200 + assert e.response.status_message == "test2" + assert e.persistent is False + assert e.post_serve_actions == {"test": "1"} + assert e.new_scenario_state == "test3" + assert e.required_scenario_state == "test4" + assert e.scenario_name == "test5" + + +@pytest.mark.unit +@pytest.mark.serialization +@pytest.mark.mappings +def test_all_mappings_serialization(): + e = AllMappings( + mappings=[ + Mapping(priority=1), + ], + meta=MappingMeta(total=1), + ) + serialized = e.get_json_data() + assertDictContainsKeyWithValue( + serialized, + "mappings", + [ + {"priority": 1}, + ], + ) + assertDictContainsKeyWithValue(serialized, "meta", {"total": 1}) + + +@pytest.mark.unit +@pytest.mark.serialization +@pytest.mark.mappings +def test_all_mappings_deserialization(): + serialized = { + "mappings": [ + {"priority": 1}, + ], + "meta": {"total": 1}, + } + e = AllMappings.from_dict(serialized) + assert isinstance(e, AllMappings) + assert isinstance(e.mappings, list) + m = e.mappings[0] + assert isinstance(m, Mapping) + assert m.priority == 1 + assert isinstance(e.meta, MappingMeta) + assert e.meta.total == 1 diff --git a/tests/test_resources/test_nearmisses/test_near_misses_resource.py b/tests/test_resources/test_nearmisses/test_near_misses_resource.py new file mode 100644 index 0000000..2599cfe --- /dev/null +++ b/tests/test_resources/test_nearmisses/test_near_misses_resource.py @@ -0,0 +1,88 @@ +import pytest +import responses + +from wiremock.client import ( + NearMisses, + NearMissMatch, + NearMissMatchPatternRequest, + NearMissMatchRequest, + NearMissMatchResponse, + NearMissMatchResult, + NearMissRequestPatternResult, +) +from wiremock.resources.mappings import HttpMethods + + +@pytest.mark.unit +@pytest.mark.resource +@pytest.mark.nearmisses +@responses.activate +def test_find_nearest_misses_by_request(): + e = NearMissMatchResponse( + near_misses=[ + NearMissMatch( + request=NearMissMatchRequest(url="test", method="GET"), + request_pattern=NearMissRequestPatternResult( + url="test1", + method="GET", + ), + match_result=NearMissMatchResult(distance=0.5), + ), + ] + ) + resp = e.get_json_data() + responses.add( + responses.POST, + "http://localhost/__admin/near-misses/request", + json=resp, + status=200, + ) + + near_miss_match_request = NearMissMatchRequest( + url="test", + method=HttpMethods.GET, + ) + r = NearMisses.find_nearest_misses_by_request(near_miss_match_request) + assert isinstance(r, NearMissMatchResponse) + assert isinstance(r.near_misses, list) + result = r.near_misses[0] + assert isinstance(result, NearMissMatch) + assert result.request.url == "test" + + +@pytest.mark.unit +@pytest.mark.resource +@pytest.mark.nearmisses +@responses.activate +def test_find_nearest_misses_by_request_pattern(): + e = NearMissMatchResponse( + near_misses=[ + NearMissMatch( + request=NearMissMatchRequest(url="test", method="GET"), + request_pattern=NearMissRequestPatternResult( + url="test1", + method="GET", + ), + match_result=NearMissMatchResult(distance=0.5), + ), + ] + ) + resp = e.get_json_data() + responses.add( + responses.POST, + "http://localhost/__admin/near-misses/request-pattern", + json=resp, + status=200, + ) + + near_miss_match_request_pattern = NearMissMatchPatternRequest( + url="test", method=HttpMethods.GET + ) + r = NearMisses.find_nearest_misses_by_request_pattern( + near_miss_match_request_pattern + ) + assert isinstance(r, NearMissMatchResponse) + assert isinstance(r.near_misses, list) + result = r.near_misses[0] + assert isinstance(result, NearMissMatch) + assert result.request.url == "test" diff --git a/tests/test_resources/test_nearmisses/test_near_misses_serialization.py b/tests/test_resources/test_nearmisses/test_near_misses_serialization.py new file mode 100644 index 0000000..12a8731 --- /dev/null +++ b/tests/test_resources/test_nearmisses/test_near_misses_serialization.py @@ -0,0 +1,440 @@ +import pytest + +from tests.utils import ( + assertDictContainsKeyWithValue, + assertDictContainsKeyWithValueType, +) +from wiremock.resources.mappings import BasicAuthCredentials, CommonHeaders, HttpMethods +from wiremock.resources.near_misses import ( + NearMissMatch, + NearMissMatchPatternRequest, + NearMissMatchRequest, + NearMissMatchResponse, + NearMissMatchResult, + NearMissRequestPatternResult, +) + + +@pytest.mark.unit +@pytest.mark.serialization +@pytest.mark.nearmisses +def test_near_miss_match_pattern_request_serialization(): + e = NearMissMatchPatternRequest( + url="test", + url_pattern="test2", + url_path="test3", + url_path_pattern="test4", + method=HttpMethods.GET, + client_ip="1.1.1.1", + headers={CommonHeaders.ACCEPT: "json"}, + query_parameters={"test": 1}, + cookies={"chocolate": "chip"}, + body_patterns={"test": 3}, + basic_auth_credentials=BasicAuthCredentials( + username="username", password="password" + ), + browser_proxy_request=False, + logged_date=12345, + logged_date_string="1/1/2017 00:00:00+0000", + ) + serialized = e.get_json_data() + assertDictContainsKeyWithValue(serialized, "url", "test") + assertDictContainsKeyWithValue(serialized, "urlPattern", "test2") + assertDictContainsKeyWithValue(serialized, "urlPath", "test3") + assertDictContainsKeyWithValue(serialized, "urlPathPattern", "test4") + assertDictContainsKeyWithValue(serialized, "method", "GET") + assertDictContainsKeyWithValue(serialized, "clientIp", "1.1.1.1") + assertDictContainsKeyWithValue(serialized, "headers", {"Accept": "json"}) + assertDictContainsKeyWithValue(serialized, "queryParameters", {"test": 1}) + assertDictContainsKeyWithValue(serialized, "cookies", {"chocolate": "chip"}) + assertDictContainsKeyWithValue(serialized, "bodyPatterns", {"test": 3}) + assertDictContainsKeyWithValue( + serialized, + "basicAuthCredentials", + {"username": "username", "password": "password"}, + ) + assertDictContainsKeyWithValue(serialized, "browserProxyRequest", False) + assertDictContainsKeyWithValue(serialized, "loggedDate", 12345) + assertDictContainsKeyWithValue( + serialized, "loggedDateString", "1/1/2017 00:00:00+0000" + ) + + +@pytest.mark.unit +@pytest.mark.serialization +@pytest.mark.nearmisses +def test_near_miss_match_pattern_request_deserialization(): + serialized = { + "clientIp": "1.1.1.1", + "cookies": {"chocolate": "chip"}, + "loggedDate": 12345, + "urlPattern": "test2", + "headers": {"Accept": "json"}, + "url": "test", + "urlPath": "test3", + "urlPathPattern": "test4", + "browserProxyRequest": False, + "loggedDateString": "1/1/2017 00:00:00+0000", + "bodyPatterns": {"test": 3}, + "queryParameters": {"test": 1}, + "basicAuthCredentials": {"username": "username", "password": "password"}, + "method": "GET", + } + e = NearMissMatchPatternRequest.from_dict(serialized) + assert isinstance(e, NearMissMatchPatternRequest) + assert e.url == "test" + assert e.url_pattern == "test2" + assert e.url_path == "test3" + assert e.url_path_pattern == "test4" + assert e.method == "GET" + assert e.client_ip == "1.1.1.1" + assert e.headers == {"Accept": "json"} + assert e.query_parameters == {"test": 1} + assert e.cookies == {"chocolate": "chip"} + assertDictContainsKeyWithValue(e.body_patterns, "test", 3) + assert isinstance(e.basic_auth_credentials, BasicAuthCredentials) + assert e.basic_auth_credentials.username == "username" + assert e.basic_auth_credentials.password == "password" + assert e.browser_proxy_request == False + assert e.logged_date == 12345 + assert e.logged_date_string == "1/1/2017 00:00:00+0000" + + +@pytest.mark.unit +@pytest.mark.serialization +@pytest.mark.nearmisses +def test_near_miss_match_request_serialization(): + e = NearMissMatchRequest( + url="test", + absolute_url="test2", + method=HttpMethods.GET, + client_ip="1.1.1.1", + headers={CommonHeaders.ACCEPT: "json"}, + query_parameters={"test": 1}, + cookies={"chocolate": "chip"}, + basic_auth_credentials=BasicAuthCredentials( + username="username", password="password" + ), + browser_proxy_request=False, + logged_date=12345, + logged_date_string="1/1/2017 00:00:00+0000", + body_as_base64="test3", + body="test4", + ) + serialized = e.get_json_data() + assertDictContainsKeyWithValue(serialized, "url", "test") + assertDictContainsKeyWithValue(serialized, "absoluteUrl", "test2") + assertDictContainsKeyWithValue(serialized, "method", HttpMethods.GET) + assertDictContainsKeyWithValue(serialized, "clientIp", "1.1.1.1") + assertDictContainsKeyWithValue( + serialized, "headers", {CommonHeaders.ACCEPT: "json"} + ) + assertDictContainsKeyWithValue(serialized, "queryParameters", {"test": 1}) + assertDictContainsKeyWithValue( + serialized, + "cookies", + { + "chocolate": "chip", + }, + ) + assertDictContainsKeyWithValue( + serialized, + "basicAuthCredentials", + {"username": "username", "password": "password"}, + ) + assertDictContainsKeyWithValue(serialized, "browserProxyRequest", False) + assertDictContainsKeyWithValue(serialized, "loggedDate", 12345) + assertDictContainsKeyWithValue( + serialized, "loggedDateString", "1/1/2017 00:00:00+0000" + ) + assertDictContainsKeyWithValue(serialized, "bodyAsBase64", "test3") + assertDictContainsKeyWithValue(serialized, "body", "test4") + + +@pytest.mark.unit +@pytest.mark.serialization +@pytest.mark.nearmisses +def test_near_miss_match_request_deserialization(): + serialized = { + "clientIp": "1.1.1.1", + "cookies": {"chocolate": "chip"}, + "loggedDate": 12345, + "absoluteUrl": "test2", + "headers": {"Accept": "json"}, + "url": "test", + "browserProxyRequest": False, + "body": "test4", + "bodyAsBase64": "test3", + "loggedDateString": "1/1/2017 00:00:00+0000", + "queryParameters": {"test": 1}, + "basicAuthCredentials": {"username": "username", "password": "password"}, + "method": "GET", + } + e = NearMissMatchRequest.from_dict(serialized) + assert isinstance(e, NearMissMatchRequest) + assert e.url == "test" + assert e.absolute_url == "test2" + assert e.method == "GET" + assert e.client_ip == "1.1.1.1" + assertDictContainsKeyWithValue(e.headers, "Accept", "json") + assertDictContainsKeyWithValue(e.query_parameters, "test", 1) + assertDictContainsKeyWithValue(e.cookies, "chocolate", "chip") + assert isinstance(e.basic_auth_credentials, BasicAuthCredentials) + assert e.basic_auth_credentials.username == "username" + assert e.basic_auth_credentials.password == "password" + assert e.browser_proxy_request == False + assert e.logged_date == 12345 + assert e.logged_date_string == "1/1/2017 00:00:00+0000" + assert e.body_as_base64 == "test3" + assert e.body == "test4" + + +@pytest.mark.unit +@pytest.mark.serialization +@pytest.mark.nearmisses +def test_near_miss_match_result_deserialization(): + serialized = {"distance": 0.75} + e = NearMissMatchResult.from_dict(serialized) + assert isinstance(e, NearMissMatchResult) + assert e.distance == 0.75 + + +@pytest.mark.unit +@pytest.mark.serialization +@pytest.mark.nearmisses +def test_near_miss_request_pattern_result_serialization(): + e = NearMissRequestPatternResult( + url="test", + absolute_url="test2", + method=HttpMethods.GET, + client_ip="1.1.1.1", + headers={CommonHeaders.ACCEPT: "json"}, + query_parameters={"test": 1}, + cookies={"chocolate": "chip"}, + basic_auth_credentials=BasicAuthCredentials( + username="username", password="password" + ), + browser_proxy_request=False, + body_as_base64="test3", + body="test4", + ) + serialized = e.get_json_data() + assertDictContainsKeyWithValue(serialized, "url", "test") + assertDictContainsKeyWithValue(serialized, "absoluteUrl", "test2") + assertDictContainsKeyWithValue(serialized, "method", "GET") + assertDictContainsKeyWithValue(serialized, "clientIp", "1.1.1.1") + assertDictContainsKeyWithValue(serialized, "headers", {"Accept": "json"}) + assertDictContainsKeyWithValue(serialized, "queryParameters", {"test": 1}) + assertDictContainsKeyWithValue( + serialized, + "cookies", + { + "chocolate": "chip", + }, + ) + assertDictContainsKeyWithValue( + serialized, + "basicAuthCredentials", + {"username": "username", "password": "password"}, + ) + assertDictContainsKeyWithValue(serialized, "browserProxyRequest", False) + assertDictContainsKeyWithValue(serialized, "bodyAsBase64", "test3") + assertDictContainsKeyWithValue(serialized, "body", "test4") + + +@pytest.mark.unit +@pytest.mark.serialization +@pytest.mark.nearmisses +def test_near_miss_request_pattern_result_deserialization(): + serialized = { + "clientIp": "1.1.1.1", + "cookies": {"chocolate": "chip"}, + "absoluteUrl": "test2", + "headers": {"Accept": "json"}, + "url": "test", + "browserProxyRequest": False, + "body": "test4", + "bodyAsBase64": "test3", + "queryParameters": {"test": 1}, + "basicAuthCredentials": { + "username": "username", + "password": "password", + }, + "method": "GET", + } + e = NearMissRequestPatternResult.from_dict(serialized) + assert isinstance(e, NearMissRequestPatternResult) + assert "test" == e.url + assert "test2" == e.absolute_url + assert "GET" == e.method + assert "1.1.1.1" == e.client_ip + assert {"Accept": "json"} == e.headers + assert {"test": 1} == e.query_parameters + assert {"chocolate": "chip"} == e.cookies + assert isinstance(e.basic_auth_credentials, BasicAuthCredentials) + assert "username" == e.basic_auth_credentials.username + assert "password" == e.basic_auth_credentials.password + assert False is e.browser_proxy_request + assert e.body_as_base64 == "test3" + assert e.body == "test4" + + +@pytest.mark.unit +@pytest.mark.serialization +@pytest.mark.nearmisses +def test_near_miss_match_serialization(): + e = NearMissMatch( + request=NearMissMatchRequest(url="test"), + request_pattern=NearMissRequestPatternResult(url="test2"), + match_result=NearMissMatchResult(distance=0.75), + ) + serialized = e.get_json_data() + assertDictContainsKeyWithValueType(serialized, "request", dict) + request = serialized["request"] + assertDictContainsKeyWithValue(request, "url", "test") + + assertDictContainsKeyWithValueType(serialized, "requestPattern", dict) + request_pattern = serialized["requestPattern"] + assertDictContainsKeyWithValue(request_pattern, "url", "test2") + + assertDictContainsKeyWithValueType(serialized, "matchResult", dict) + match_result = serialized["matchResult"] + assertDictContainsKeyWithValue(match_result, "distance", 0.75) + + +@pytest.mark.unit +@pytest.mark.serialization +@pytest.mark.nearmisses +def test_near_miss_match_deserialization(): + serialized = { + "request": { + "clientIp": "1.1.1.1", + "cookies": {"chocolate": "chip"}, + "loggedDate": 12345, + "absoluteUrl": "test2", + "headers": {"Accept": "json"}, + "url": "test", + "browserProxyRequest": False, + "body": "test4", + "bodyAsBase64": "test3", + "loggedDateString": "1/1/2017 00:00:00+0000", + "queryParameters": {"test": 1}, + "basicAuthCredentials": { + "username": "username", + "password": "password", + }, + "method": "GET", + }, + "requestPattern": { + "clientIp": "1.1.1.1", + "cookies": {"chocolate": "chip"}, + "absoluteUrl": "test2", + "headers": {"Accept": "json"}, + "url": "test", + "browserProxyRequest": False, + "body": "test4", + "bodyAsBase64": "test3", + "queryParameters": {"test": 1}, + "basicAuthCredentials": { + "username": "username", + "password": "password", + }, + "method": "GET", + }, + "matchResult": {"distance": 0.75}, + } + e = NearMissMatch.from_dict(serialized) + assert isinstance(e, NearMissMatch) + assert isinstance(e.request, NearMissMatchRequest) + assert isinstance(e.request_pattern, NearMissRequestPatternResult) + assert isinstance(e.match_result, NearMissMatchResult) + + # request + _request = serialized["request"] + assertDictContainsKeyWithValue(_request, "url", "test") + assertDictContainsKeyWithValue(_request, "absoluteUrl", "test2") + assertDictContainsKeyWithValue(_request, "method", "GET") + assertDictContainsKeyWithValue(_request, "clientIp", "1.1.1.1") + assertDictContainsKeyWithValue(_request, "headers", {"Accept": "json"}) + assertDictContainsKeyWithValue(_request, "queryParameters", {"test": 1}) + assertDictContainsKeyWithValue(_request, "cookies", {"chocolate": "chip"}) + assertDictContainsKeyWithValue(_request, "bodyAsBase64", "test3") + assertDictContainsKeyWithValue(_request, "body", "test4") + assertDictContainsKeyWithValue(_request, "loggedDate", 12345) + assertDictContainsKeyWithValue( + _request, "loggedDateString", "1/1/2017 00:00:00+0000" + ) + + _basicAuth = serialized["request"]["basicAuthCredentials"] + assertDictContainsKeyWithValueType( + serialized["request"], "basicAuthCredentials", dict + ) + assertDictContainsKeyWithValue(_basicAuth, "username", "username") + assertDictContainsKeyWithValue(_basicAuth, "password", "password") + assertDictContainsKeyWithValue(serialized["request"], "browserProxyRequest", False) + + # request pattern + _requestPattern = serialized["requestPattern"] + assertDictContainsKeyWithValue(_requestPattern, "url", "test") + assertDictContainsKeyWithValue(_requestPattern, "absoluteUrl", "test2") + assertDictContainsKeyWithValue(_requestPattern, "method", "GET") + assertDictContainsKeyWithValue(_requestPattern, "clientIp", "1.1.1.1") + assertDictContainsKeyWithValue(_requestPattern, "headers", {"Accept": "json"}) + assertDictContainsKeyWithValue(_requestPattern, "queryParameters", {"test": 1}) + assertDictContainsKeyWithValue(_requestPattern, "cookies", {"chocolate": "chip"}) + assertDictContainsKeyWithValue(_requestPattern, "bodyAsBase64", "test3") + assertDictContainsKeyWithValue(_requestPattern, "body", "test4") + + _basicAuth = serialized["requestPattern"]["basicAuthCredentials"] + assertDictContainsKeyWithValueType( + serialized["requestPattern"], "basicAuthCredentials", dict + ) + assertDictContainsKeyWithValue(_basicAuth, "username", "username") + assertDictContainsKeyWithValue(_basicAuth, "password", "password") + assertDictContainsKeyWithValue( + serialized["requestPattern"], "browserProxyRequest", False + ) + # match result + assertDictContainsKeyWithValue(serialized["matchResult"], "distance", 0.75) + + +def test_near_miss_match_response_serialization(): + e = NearMissMatchResponse( + near_misses=[ + NearMissMatch( + request=NearMissMatchRequest(url="test"), + request_pattern=NearMissRequestPatternResult(url="test2"), + match_result=NearMissMatchResult(distance=0.75), + ) + ] + ) + serialized = e.get_json_data() + assertDictContainsKeyWithValueType(serialized, "nearMisses", list) + near_miss = serialized["nearMisses"][0] + assertDictContainsKeyWithValueType(near_miss, "request", dict) + assertDictContainsKeyWithValue(near_miss["request"], "url", "test") + assertDictContainsKeyWithValueType(near_miss, "requestPattern", dict) + assertDictContainsKeyWithValue(near_miss["requestPattern"], "url", "test2") + assertDictContainsKeyWithValueType(near_miss, "matchResult", dict) + assertDictContainsKeyWithValue(near_miss["matchResult"], "distance", 0.75) + + +def test_near_miss_match_response_deserialization(): + serialized = { + "nearMisses": [ + { + "request": {"url": "test"}, + "requestPattern": {"url": "test"}, + "matchResult": {"distance": 0.75}, + } + ] + } + e = NearMissMatchResponse.from_dict(serialized) + assert isinstance(e, NearMissMatchResponse) + assert isinstance(e.near_misses, list) + assert len(e.near_misses) == 1 + near_miss = e.near_misses[0] + assert isinstance(near_miss, NearMissMatch) + assert isinstance(near_miss.request, NearMissMatchRequest) + assert isinstance(near_miss.request_pattern, NearMissRequestPatternResult) + assert isinstance(near_miss.match_result, NearMissMatchResult) diff --git a/tests/test_resources/test_requests/test_requests_resource.py b/tests/test_resources/test_requests/test_requests_resource.py new file mode 100644 index 0000000..1b22623 --- /dev/null +++ b/tests/test_resources/test_requests/test_requests_resource.py @@ -0,0 +1,151 @@ +import responses + +from tests.utils import assertEqual, assertIsInstance +from wiremock.client import ( + NearMissMatch, + NearMissMatchPatternRequest, + NearMissMatchResponse, + RequestCountResponse, + RequestResponse, + RequestResponseAll, + RequestResponseAllMeta, + RequestResponseDefinition, + RequestResponseFindResponse, + RequestResponseRequest, + Requests, +) +from wiremock.resources.near_misses import NearMissMatchRequest + + +@responses.activate +def test_get_all_received_requests(): + e = RequestResponseAll( + requests=[], + meta=RequestResponseAllMeta(total=1), + request_journal_disabled=False, + ) + resp = e.get_json_data() + responses.add( + responses.GET, "http://localhost/__admin/requests", json=resp, status=200 + ) + + r = Requests.get_all_received_requests() + assertIsInstance(r, RequestResponseAll) + assertEqual(False, r.request_journal_disabled) + + +@responses.activate +def test_get_request(): + e = RequestResponse( + id="1234-5678", + request=RequestResponseRequest(url="test", method="GET"), + response_definition=RequestResponseDefinition(url="test", method="GET"), + ) + resp = e.get_json_data() + responses.add( + responses.GET, + "http://localhost/__admin/requests/1234-5678", + json=resp, + status=200, + ) + + r = Requests.get_request("1234-5678") + assertIsInstance(r, RequestResponse) + assertEqual("test", r.request.url) + assertEqual("1234-5678", r.id) + + +@responses.activate +def test_reset_request_journal(): + responses.add( + responses.POST, "http://localhost/__admin/requests/reset", body="", status=200 + ) + + r = Requests.reset_request_journal() + assertEqual(200, r.status_code) + + +@responses.activate +def test_get_matching_request_count(): + resp = RequestCountResponse(count=4).get_json_data() + responses.add( + responses.POST, "http://localhost/__admin/requests/count", json=resp, status=200 + ) + + request = NearMissMatchPatternRequest(url="test", method="GET") + + r = Requests.get_matching_request_count(request) + assertIsInstance(r, RequestCountResponse) + assertEqual(4, r.count) + + +@responses.activate +def test_get_matching_requests(): + e = RequestResponseFindResponse( + requests=[ + RequestResponseRequest(method="GET", url="test"), + ], + ) + resp = e.get_json_data() + responses.add( + responses.POST, "http://localhost/__admin/requests/find", json=resp, status=200 + ) + + request = NearMissMatchPatternRequest(url="test", method="GET") + + r = Requests.get_matching_requests(request) + assertIsInstance(r, RequestResponseFindResponse) + assertIsInstance(r.requests, list) + assertEqual(1, len(r.requests)) + result = r.requests[0] + assertIsInstance(result, RequestResponseRequest) + assertEqual("GET", result.method) + assertEqual("test", result.url) + + +@responses.activate +def test_get_unmatched_requests(): + e = RequestResponseFindResponse( + requests=[ + RequestResponseRequest(method="GET", url="test"), + ], + ) + resp = e.get_json_data() + responses.add( + responses.GET, + "http://localhost/__admin/requests/unmatched", + json=resp, + status=200, + ) + + r = Requests.get_unmatched_requests() + assertIsInstance(r, RequestResponseFindResponse) + assertIsInstance(r.requests, list) + assertEqual(1, len(r.requests)) + result = r.requests[0] + assertIsInstance(result, RequestResponseRequest) + assertEqual("GET", result.method) + assertEqual("test", result.url) + + +@responses.activate +def test_get_unmatched_requests_near_misses(): + e = NearMissMatchResponse( + near_misses=[ + NearMissMatch(request=NearMissMatchRequest(url="test", method="GET")), + ] + ) + resp = e.get_json_data() + responses.add( + responses.GET, + "http://localhost/__admin/requests/unmatched/near-misses", + json=resp, + status=200, + ) + + r = Requests.get_unmatched_requests_near_misses() + assertIsInstance(r, NearMissMatchResponse) + result = r.near_misses[0] + assertIsInstance(result, NearMissMatch) + assertEqual("test", result.request.url) + assertEqual("GET", result.request.method) diff --git a/tests/test_resources/test_scenarios/test_scenario_resource.py b/tests/test_resources/test_scenarios/test_scenario_resource.py new file mode 100644 index 0000000..41fe2a6 --- /dev/null +++ b/tests/test_resources/test_scenarios/test_scenario_resource.py @@ -0,0 +1,17 @@ +import responses + +from tests.utils import assertEqual +from wiremock.client import Scenarios + + +@responses.activate +def test_reset_scenarios(): + responses.add( + responses.POST, + "http://localhost/__admin/scenarios/reset", + body="", + status=200, + ) + + r = Scenarios.reset_all_scenarios() + assertEqual(200, r.status_code) diff --git a/wiremock/tests/resource_tests/scenarios_tests/serialization_tests.py b/tests/test_resources/test_scenarios/test_scenario_serialization.py similarity index 100% rename from wiremock/tests/resource_tests/scenarios_tests/serialization_tests.py rename to tests/test_resources/test_scenarios/test_scenario_serialization.py diff --git a/tests/test_resources/test_settings/test_settings_resource.py b/tests/test_resources/test_settings/test_settings_resource.py new file mode 100644 index 0000000..8bd05dc --- /dev/null +++ b/tests/test_resources/test_settings/test_settings_resource.py @@ -0,0 +1,17 @@ +import responses + +from tests.utils import assertEqual, assertIsInstance +from wiremock.client import GlobalSetting, GlobalSettings + + +@responses.activate +def test_update_settings(): + e = GlobalSetting(fixed_delay=500) + resp = e.get_json_data() + responses.add( + responses.POST, "http://localhost/__admin/settings", json=resp, status=200 + ) + + r = GlobalSettings.update_global_settings(e) + assertIsInstance(r, GlobalSetting) + assertEqual(500, r.fixed_delay) diff --git a/tests/test_resources/test_settings/test_settings_serialization.py b/tests/test_resources/test_settings/test_settings_serialization.py new file mode 100644 index 0000000..bb9f223 --- /dev/null +++ b/tests/test_resources/test_settings/test_settings_serialization.py @@ -0,0 +1,15 @@ +from tests.utils import assertDictContainsKeyWithValue, assertEqual, assertIsInstance +from wiremock.resources.settings import GlobalSetting + + +def test_global_settings_serialization(): + gs = GlobalSetting(fixed_delay=500) + serialized = gs.get_json_data() + assertDictContainsKeyWithValue(serialized, "fixedDelay", 500) + + +def test_global_settings_deserialization(): + serialized = {"fixedDelay": 500} + gs = GlobalSetting.from_dict(serialized) + assertIsInstance(gs, GlobalSetting) + assertEqual(500, gs.fixed_delay) diff --git a/tests/test_responses/test_requests/test_requests_serialization.py b/tests/test_responses/test_requests/test_requests_serialization.py new file mode 100644 index 0000000..24625aa --- /dev/null +++ b/tests/test_responses/test_requests/test_requests_serialization.py @@ -0,0 +1,253 @@ +from tests.utils import ( + assertDictContainsKeyWithValue, + assertDictContainsKeyWithValueType, + assertEqual, + assertIsInstance, +) +from wiremock.resources.mappings import BasicAuthCredentials +from wiremock.resources.requests import ( + RequestCountResponse, + RequestResponse, + RequestResponseAll, + RequestResponseAllMeta, + RequestResponseDefinition, + RequestResponseFindResponse, + RequestResponseRequest, +) + + +def test_request_count_response_serialization(): + e = RequestCountResponse(count=1) + serialized = e.get_json_data() + assertDictContainsKeyWithValue(serialized, "count", 1) + + +def test_request_count_response_deserialization(): + serialized = {"count": 1} + e = RequestCountResponse.from_dict(serialized) + assertIsInstance(e, RequestCountResponse) + assertEqual(1, e.count) + + +def test_request_response_all_meta_serialization(): + e = RequestResponseAllMeta(total=1) + serialized = e.get_json_data() + assertDictContainsKeyWithValue(serialized, "total", 1) + + +def test_request_response_all_meta_deserialization(): + serialized = {"total": 1} + e = RequestResponseAllMeta.from_dict(serialized) + assertIsInstance(e, RequestResponseAllMeta) + assertEqual(1, e.total) + + +def test_request_response_request_serialization(): + e = RequestResponseRequest( + method="GET", + url="test", + absolute_url="test2", + client_ip="test3", + basic_auth_credentials=BasicAuthCredentials( + username="username", password="password" + ), + cookies={"chocolate": "chip"}, + headers={"test": "1"}, + query_parameters={"test2": "2"}, + browser_proxy_request=False, + body="test4", + body_as_base64="test5", + logged_date=12345, + logged_date_string="test6", + ) + serialized = e.get_json_data() + assertDictContainsKeyWithValue(serialized, "method", "GET") + assertDictContainsKeyWithValue(serialized, "url", "test") + assertDictContainsKeyWithValue(serialized, "absoluteUrl", "test2") + assertDictContainsKeyWithValue(serialized, "clientIp", "test3") + assertDictContainsKeyWithValue( + serialized, + "basicAuthCredentials", + {"username": "username", "password": "password"}, + ) + assertDictContainsKeyWithValue(serialized, "cookies", {"chocolate": "chip"}) + assertDictContainsKeyWithValue(serialized, "headers", {"test": "1"}) + assertDictContainsKeyWithValue(serialized, "queryParameters", {"test2": "2"}) + assertDictContainsKeyWithValue(serialized, "browserProxyRequest", False) + assertDictContainsKeyWithValue(serialized, "body", "test4") + assertDictContainsKeyWithValue(serialized, "bodyAsBase64", "test5") + assertDictContainsKeyWithValue(serialized, "loggedDate", 12345) + assertDictContainsKeyWithValue(serialized, "loggedDateString", "test6") + + +def test_request_response_request_deserialization(): + serialized = { + "method": "GET", + "url": "test", + "absoluteUrl": "test2", + "clientIp": "test3", + "basicAuthCredentials": {"username": "username", "password": "password"}, + "cookies": {"chocolate": "chip"}, + "headers": {"test": "1"}, + "queryParameters": {"test2": "2"}, + "browserProxyRequest": False, + "body": "test4", + "bodyAsBase64": "test5", + "loggedDate": 12345, + "loggedDateString": "test6", + } + e = RequestResponseRequest.from_dict(serialized) + assertIsInstance(e, RequestResponseRequest) + assertEqual("GET", e.method) + assertEqual("test", e.url) + assertEqual("test2", e.absolute_url) + assertEqual("test3", e.client_ip) + assertIsInstance(e.basic_auth_credentials, BasicAuthCredentials) + assertEqual("username", e.basic_auth_credentials.username) + assertEqual("password", e.basic_auth_credentials.password) + assertEqual({"chocolate": "chip"}, e.cookies) + assertEqual({"test": "1"}, e.headers) + assertEqual({"test2": "2"}, e.query_parameters) + assertEqual(False, e.browser_proxy_request) + assertEqual("test4", e.body) + assertEqual("test5", e.body_as_base64) + assertEqual(12345, e.logged_date) + assertEqual("test6", e.logged_date_string) + + +def test_request_response_definition_serialization(): + e = RequestResponseDefinition( + status=200, + transformers=["test"], + from_configured_stub=False, + transformer_parameters={"test2": "2"}, + ) + serialized = e.get_json_data() + assertDictContainsKeyWithValue(serialized, "status", 200) + assertDictContainsKeyWithValue(serialized, "transformers", ["test"]) + assertDictContainsKeyWithValue(serialized, "fromConfiguredStub", False) + assertDictContainsKeyWithValue(serialized, "transformerParameters", {"test2": "2"}) + + +def test_request_response_definition_deserialization(): + serialized = { + "status": 200, + "transformers": ["test"], + "fromConfiguredStub": False, + "transformerParameters": {"test2": "2"}, + } + e = RequestResponseDefinition.from_dict(serialized) + assertIsInstance(e, RequestResponseDefinition) + assertEqual(200, e.status) + assertEqual(["test"], e.transformers) + assertEqual(False, e.from_configured_stub) + assertEqual({"test2": "2"}, e.transformer_parameters) + + +def test_request_response_serialization(): + e = RequestResponse( + request=RequestResponseRequest(method="GET", url="test"), + response_definition=RequestResponseDefinition(status=200), + ) + serialized = e.get_json_data() + assertDictContainsKeyWithValue( + serialized, "request", {"method": "GET", "url": "test"} + ) + assertDictContainsKeyWithValue(serialized, "responseDefinition", {"status": 200}) + + +def test_request_response_deserialization(): + serialized = { + "request": {"method": "GET", "url": "test"}, + "responseDefinition": {"status": 200}, + } + e = RequestResponse.from_dict(serialized) + assertIsInstance(e, RequestResponse) + assertIsInstance(e.request, RequestResponseRequest) + assertEqual("GET", e.request.method) + assertEqual("test", e.request.url) + assertIsInstance(e.response_definition, RequestResponseDefinition) + assertEqual(200, e.response_definition.status) + + +def test_request_response_find_response_serialization(): + e = RequestResponseFindResponse( + requests=[ + RequestResponseRequest(method="GET", url="test"), + ] + ) + serialized = e.get_json_data() + assertDictContainsKeyWithValueType(serialized, "requests", list) + assertDictContainsKeyWithValue( + serialized, + "requests", + [ + {"method": "GET", "url": "test"}, + ], + ) + + +def test_request_response_find_response_deserialization(): + serialized = { + "requests": [ + {"method": "GET", "url": "test"}, + ] + } + e = RequestResponseFindResponse.from_dict(serialized) + assertIsInstance(e, RequestResponseFindResponse) + assertIsInstance(e.requests, list) + assertIsInstance(e.requests[0], RequestResponseRequest) + assertEqual("GET", e.requests[0].method) + assertEqual("test", e.requests[0].url) + + +def test_request_response_all_serialization(): + e = RequestResponseAll( + requests=[ + RequestResponse( + request=RequestResponseRequest(method="GET", url="test"), + response_definition=RequestResponseDefinition(status=200), + ), + ], + meta=RequestResponseAllMeta(total=1), + request_journal_disabled=False, + ) + serialized = e.get_json_data() + assertDictContainsKeyWithValue(serialized, "requestJournalDisabled", False) + assertDictContainsKeyWithValue( + serialized, + "requests", + [ + { + "request": {"method": "GET", "url": "test"}, + "responseDefinition": {"status": 200}, + }, + ], + ) + assertDictContainsKeyWithValue(serialized, "meta", {"total": 1}) + + +def test_request_response_all_deserialization(): + serialized = { + "requests": [ + { + "request": {"method": "GET", "url": "test"}, + "responseDefinition": {"status": 200}, + }, + ], + "meta": {"total": 1}, + "requestJournalDisabled": False, + } + e = RequestResponseAll.from_dict(serialized) + assertIsInstance(e, RequestResponseAll) + assertEqual(False, e.request_journal_disabled) + assertIsInstance(e.requests, list) + rr = e.requests[0] + assertIsInstance(rr, RequestResponse) + assertIsInstance(rr.request, RequestResponseRequest) + assertEqual("GET", rr.request.method) + assertEqual("test", rr.request.url) + assertIsInstance(rr.response_definition, RequestResponseDefinition) + assertEqual(200, rr.response_definition.status) + assertIsInstance(e.meta, RequestResponseAllMeta) + assertEqual(1, e.meta.total) diff --git a/tests/test_server/test_server.py b/tests/test_server/test_server.py new file mode 100644 index 0000000..ff936d4 --- /dev/null +++ b/tests/test_server/test_server.py @@ -0,0 +1,149 @@ +from dataclasses import dataclass +from subprocess import PIPE, STDOUT +from unittest.mock import DEFAULT, patch + +import pytest +import responses +from importlib.resources import files + +from tests.utils import assertEqual, assertIsInstance +from wiremock.server.exceptions import ( + WireMockServerAlreadyStartedError, + WireMockServerNotStartedError, +) +from wiremock.server.server import WireMockServer + + +@pytest.fixture() +def config(): + @dataclass + class ServerConfig: + + java_path: str + jar_path: str + port: int + + return ServerConfig( + java_path="/path/to/java", + jar_path="/path/to/jar", + port=54321, + ) + + +@pytest.fixture(scope="function") +def server(config): + with patch.object(WireMockServer, "_get_free_port", return_value=config.port): + yield WireMockServer(java_path=config.java_path, jar_path=config.jar_path) + + +@pytest.mark.usefixtures("server") +def test_init(config): + with patch.object(WireMockServer, "_get_free_port") as _get_free_port: + _get_free_port.return_value = config.port + + wm = WireMockServer(java_path=config.java_path, jar_path=config.jar_path) + + assertEqual(wm.port, _get_free_port.return_value) + + assertEqual(wm.java_path, config.java_path) + assertEqual(wm.jar_path, config.jar_path) + assert not wm.is_running + + +def test_init_with_defaults(config): + with patch.object(WireMockServer, "_get_free_port", return_value=config.port): + wm = WireMockServer() + + expected_jar = files("wiremock") / "server" / "wiremock-standalone-2.35.1.jar" + assertEqual(wm.java_path, "java") # Assume java in PATH + assertEqual(wm.jar_path, expected_jar) + + +@patch("wiremock.server.server.socket") +def test_get_free_port(mock_socket, server): + sock = mock_socket.socket.return_value + expected_port = 54321 + sock.getsockname.return_value = ("localhost", expected_port) + + port = server._get_free_port() + + assertEqual(port, expected_port) + + +@patch("wiremock.server.server.atexit") +@patch("wiremock.server.server.Popen") +@responses.activate +def test_start(Popen, atexit, config, server): + # mock healthy endpoint + responses.add( + responses.GET, + "http://localhost:{}/__admin".format(server.port), + json=[], + status=200, + ) + + def poll(): + Popen.return_value.returncode = None + return None + + Popen.return_value.poll.side_effect = poll + + server.start() + + Popen.assert_called_once_with( + [ + config.java_path, + "-jar", + config.jar_path, + "--port", + str(54321), + "--local-response-templating", + ], + stdin=PIPE, + stdout=PIPE, + stderr=STDOUT, + ) + + assert server.is_running is True + atexit.register.assert_called_once_with(server.stop, raise_on_error=False) + + # Test when already started + with pytest.raises(WireMockServerAlreadyStartedError): + server.start() + + +def test_start_with_invalid_java(): + wm = WireMockServer(java_path="/no/such/path") + with pytest.raises(WireMockServerNotStartedError): + wm.start() + + +def test_start_with_invalid_jar(): + wm = WireMockServer(jar_path="/dev/null") + with pytest.raises(WireMockServerNotStartedError): + wm.start() + + +def test_stop(server): + with patch.object(server, "_WireMockServer__subprocess") as _subprocess: + server._WireMockServer__running = True + + server.stop() + + _subprocess.kill.assert_called_once_with() + + # Test repeated call + + _subprocess.kill.side_effect = AttributeError + with pytest.raises(WireMockServerNotStartedError): + server.stop() + + +def test_with_statement(): + with patch.multiple(WireMockServer, start=DEFAULT, stop=DEFAULT) as mocks: + + with WireMockServer() as wm: + assertIsInstance(wm, WireMockServer) + mocks["start"].assert_called_once_with() + + mocks["stop"].assert_called_once_with() diff --git a/tests/utils.py b/tests/utils.py new file mode 100644 index 0000000..6c2df8b --- /dev/null +++ b/tests/utils.py @@ -0,0 +1,18 @@ +def assertDictContainsKeyWithValue(obj, key, value): + assert key in obj, f"{key} is not in dict: {obj}" + assert obj[key] == value, f"{obj[key]} does not equal {value}" + + +def assertDictContainsKeyWithValueType(obj, key, value): + assert key in obj, f"{key} is not in dict: {obj}" + assert isinstance(obj[key], value) + + +def assertIsInstance(obja, objb): + + assert isinstance(obja, objb) + + +def assertEqual(obja, objb): + + assert obja == objb diff --git a/tox.ini b/tox.ini index 7b1086a..723b1b4 100644 --- a/tox.ini +++ b/tox.ini @@ -1,23 +1,10 @@ [tox] -envlist = py{37} +envlist = py37, py38, py39, py310, py311 [testenv] -whitelist_externals = - rm deps = - nose - coverage - setuptools>=45.2.0 - six - mock - responses - requests + pytest + pytest-cov commands = - {envpython} setup.py -q install - nosetests -vv --attr=unit --with-coverage --cover-erase --cover-package=wiremock --cover-html --cover-xml --cover-min-percentage=85 --cover-html-dir={toxinidir}/coverage/ --cover-xml-file={toxinidir}/coverage/coverage.xml - rm -Rf build || true - -[testenv:py27-dev] -envdir = {toxinidir}/env -usedevelop = True + pytest --cov=my_library tests/ diff --git a/uv.lock b/uv.lock new file mode 100644 index 0000000..58c3fa5 --- /dev/null +++ b/uv.lock @@ -0,0 +1,1064 @@ +version = 1 +revision = 3 +requires-python = ">=3.9, <3.14" +resolution-markers = [ + "python_full_version >= '3.10'", + "python_full_version < '3.10'", +] + +[[package]] +name = "black" +version = "25.1.0" +source = { registry = "https://pypi.org/simple" } +dependencies = [ + { name = "click", version = "8.1.8", source = { registry = "https://pypi.org/simple" }, marker = "python_full_version < '3.10'" }, + { name = "click", version = "8.2.1", source = { registry = "https://pypi.org/simple" }, marker = "python_full_version >= '3.10'" }, + { name = "mypy-extensions" }, + { name = "packaging" }, + { name = "pathspec" }, + { name = "platformdirs" }, + { name = "tomli", marker = "python_full_version < '3.11'" }, + { name = "typing-extensions", marker = "python_full_version < '3.11'" }, +] +sdist = { url = "https://files.pythonhosted.org/packages/94/49/26a7b0f3f35da4b5a65f081943b7bcd22d7002f5f0fb8098ec1ff21cb6ef/black-25.1.0.tar.gz", hash = "sha256:33496d5cd1222ad73391352b4ae8da15253c5de89b93a80b3e2c8d9a19ec2666", size = 649449, upload-time = "2025-01-29T04:15:40.373Z" } +wheels = [ + { url = "https://files.pythonhosted.org/packages/4d/3b/4ba3f93ac8d90410423fdd31d7541ada9bcee1df32fb90d26de41ed40e1d/black-25.1.0-cp310-cp310-macosx_10_9_x86_64.whl", hash = "sha256:759e7ec1e050a15f89b770cefbf91ebee8917aac5c20483bc2d80a6c3a04df32", size = 1629419, upload-time = "2025-01-29T05:37:06.642Z" }, + { url = "https://files.pythonhosted.org/packages/b4/02/0bde0485146a8a5e694daed47561785e8b77a0466ccc1f3e485d5ef2925e/black-25.1.0-cp310-cp310-macosx_11_0_arm64.whl", hash = "sha256:0e519ecf93120f34243e6b0054db49c00a35f84f195d5bce7e9f5cfc578fc2da", size = 1461080, upload-time = "2025-01-29T05:37:09.321Z" }, + { url = "https://files.pythonhosted.org/packages/52/0e/abdf75183c830eaca7589144ff96d49bce73d7ec6ad12ef62185cc0f79a2/black-25.1.0-cp310-cp310-manylinux_2_17_x86_64.manylinux2014_x86_64.manylinux_2_28_x86_64.whl", hash = "sha256:055e59b198df7ac0b7efca5ad7ff2516bca343276c466be72eb04a3bcc1f82d7", size = 1766886, upload-time = "2025-01-29T04:18:24.432Z" }, + { url = "https://files.pythonhosted.org/packages/dc/a6/97d8bb65b1d8a41f8a6736222ba0a334db7b7b77b8023ab4568288f23973/black-25.1.0-cp310-cp310-win_amd64.whl", hash = "sha256:db8ea9917d6f8fc62abd90d944920d95e73c83a5ee3383493e35d271aca872e9", size = 1419404, upload-time = "2025-01-29T04:19:04.296Z" }, + { url = "https://files.pythonhosted.org/packages/7e/4f/87f596aca05c3ce5b94b8663dbfe242a12843caaa82dd3f85f1ffdc3f177/black-25.1.0-cp311-cp311-macosx_10_9_x86_64.whl", hash = "sha256:a39337598244de4bae26475f77dda852ea00a93bd4c728e09eacd827ec929df0", size = 1614372, upload-time = "2025-01-29T05:37:11.71Z" }, + { url = "https://files.pythonhosted.org/packages/e7/d0/2c34c36190b741c59c901e56ab7f6e54dad8df05a6272a9747ecef7c6036/black-25.1.0-cp311-cp311-macosx_11_0_arm64.whl", hash = "sha256:96c1c7cd856bba8e20094e36e0f948718dc688dba4a9d78c3adde52b9e6c2299", size = 1442865, upload-time = "2025-01-29T05:37:14.309Z" }, + { url = "https://files.pythonhosted.org/packages/21/d4/7518c72262468430ead45cf22bd86c883a6448b9eb43672765d69a8f1248/black-25.1.0-cp311-cp311-manylinux_2_17_x86_64.manylinux2014_x86_64.manylinux_2_28_x86_64.whl", hash = "sha256:bce2e264d59c91e52d8000d507eb20a9aca4a778731a08cfff7e5ac4a4bb7096", size = 1749699, upload-time = "2025-01-29T04:18:17.688Z" }, + { url = "https://files.pythonhosted.org/packages/58/db/4f5beb989b547f79096e035c4981ceb36ac2b552d0ac5f2620e941501c99/black-25.1.0-cp311-cp311-win_amd64.whl", hash = "sha256:172b1dbff09f86ce6f4eb8edf9dede08b1fce58ba194c87d7a4f1a5aa2f5b3c2", size = 1428028, upload-time = "2025-01-29T04:18:51.711Z" }, + { url = "https://files.pythonhosted.org/packages/83/71/3fe4741df7adf015ad8dfa082dd36c94ca86bb21f25608eb247b4afb15b2/black-25.1.0-cp312-cp312-macosx_10_13_x86_64.whl", hash = "sha256:4b60580e829091e6f9238c848ea6750efed72140b91b048770b64e74fe04908b", size = 1650988, upload-time = "2025-01-29T05:37:16.707Z" }, + { url = "https://files.pythonhosted.org/packages/13/f3/89aac8a83d73937ccd39bbe8fc6ac8860c11cfa0af5b1c96d081facac844/black-25.1.0-cp312-cp312-macosx_11_0_arm64.whl", hash = "sha256:1e2978f6df243b155ef5fa7e558a43037c3079093ed5d10fd84c43900f2d8ecc", size = 1453985, upload-time = "2025-01-29T05:37:18.273Z" }, + { url = "https://files.pythonhosted.org/packages/6f/22/b99efca33f1f3a1d2552c714b1e1b5ae92efac6c43e790ad539a163d1754/black-25.1.0-cp312-cp312-manylinux_2_17_x86_64.manylinux2014_x86_64.manylinux_2_28_x86_64.whl", hash = "sha256:3b48735872ec535027d979e8dcb20bf4f70b5ac75a8ea99f127c106a7d7aba9f", size = 1783816, upload-time = "2025-01-29T04:18:33.823Z" }, + { url = "https://files.pythonhosted.org/packages/18/7e/a27c3ad3822b6f2e0e00d63d58ff6299a99a5b3aee69fa77cd4b0076b261/black-25.1.0-cp312-cp312-win_amd64.whl", hash = "sha256:ea0213189960bda9cf99be5b8c8ce66bb054af5e9e861249cd23471bd7b0b3ba", size = 1440860, upload-time = "2025-01-29T04:19:12.944Z" }, + { url = "https://files.pythonhosted.org/packages/98/87/0edf98916640efa5d0696e1abb0a8357b52e69e82322628f25bf14d263d1/black-25.1.0-cp313-cp313-macosx_10_13_x86_64.whl", hash = "sha256:8f0b18a02996a836cc9c9c78e5babec10930862827b1b724ddfe98ccf2f2fe4f", size = 1650673, upload-time = "2025-01-29T05:37:20.574Z" }, + { url = "https://files.pythonhosted.org/packages/52/e5/f7bf17207cf87fa6e9b676576749c6b6ed0d70f179a3d812c997870291c3/black-25.1.0-cp313-cp313-macosx_11_0_arm64.whl", hash = "sha256:afebb7098bfbc70037a053b91ae8437c3857482d3a690fefc03e9ff7aa9a5fd3", size = 1453190, upload-time = "2025-01-29T05:37:22.106Z" }, + { url = "https://files.pythonhosted.org/packages/e3/ee/adda3d46d4a9120772fae6de454c8495603c37c4c3b9c60f25b1ab6401fe/black-25.1.0-cp313-cp313-manylinux_2_17_x86_64.manylinux2014_x86_64.manylinux_2_28_x86_64.whl", hash = "sha256:030b9759066a4ee5e5aca28c3c77f9c64789cdd4de8ac1df642c40b708be6171", size = 1782926, upload-time = "2025-01-29T04:18:58.564Z" }, + { url = "https://files.pythonhosted.org/packages/cc/64/94eb5f45dcb997d2082f097a3944cfc7fe87e071907f677e80788a2d7b7a/black-25.1.0-cp313-cp313-win_amd64.whl", hash = "sha256:a22f402b410566e2d1c950708c77ebf5ebd5d0d88a6a2e87c86d9fb48afa0d18", size = 1442613, upload-time = "2025-01-29T04:19:27.63Z" }, + { url = "https://files.pythonhosted.org/packages/d3/b6/ae7507470a4830dbbfe875c701e84a4a5fb9183d1497834871a715716a92/black-25.1.0-cp39-cp39-macosx_10_9_x86_64.whl", hash = "sha256:a1ee0a0c330f7b5130ce0caed9936a904793576ef4d2b98c40835d6a65afa6a0", size = 1628593, upload-time = "2025-01-29T05:37:23.672Z" }, + { url = "https://files.pythonhosted.org/packages/24/c1/ae36fa59a59f9363017ed397750a0cd79a470490860bc7713967d89cdd31/black-25.1.0-cp39-cp39-macosx_11_0_arm64.whl", hash = "sha256:f3df5f1bf91d36002b0a75389ca8663510cf0531cca8aa5c1ef695b46d98655f", size = 1460000, upload-time = "2025-01-29T05:37:25.829Z" }, + { url = "https://files.pythonhosted.org/packages/ac/b6/98f832e7a6c49aa3a464760c67c7856363aa644f2f3c74cf7d624168607e/black-25.1.0-cp39-cp39-manylinux_2_17_x86_64.manylinux2014_x86_64.manylinux_2_28_x86_64.whl", hash = "sha256:d9e6827d563a2c820772b32ce8a42828dc6790f095f441beef18f96aa6f8294e", size = 1765963, upload-time = "2025-01-29T04:18:38.116Z" }, + { url = "https://files.pythonhosted.org/packages/ce/e9/2cb0a017eb7024f70e0d2e9bdb8c5a5b078c5740c7f8816065d06f04c557/black-25.1.0-cp39-cp39-win_amd64.whl", hash = "sha256:bacabb307dca5ebaf9c118d2d2f6903da0d62c9faa82bd21a33eecc319559355", size = 1419419, upload-time = "2025-01-29T04:18:30.191Z" }, + { url = "https://files.pythonhosted.org/packages/09/71/54e999902aed72baf26bca0d50781b01838251a462612966e9fc4891eadd/black-25.1.0-py3-none-any.whl", hash = "sha256:95e8176dae143ba9097f351d174fdaf0ccd29efb414b362ae3fd72bf0f710717", size = 207646, upload-time = "2025-01-29T04:15:38.082Z" }, +] + +[[package]] +name = "cachetools" +version = "6.1.0" +source = { registry = "https://pypi.org/simple" } +sdist = { url = "https://files.pythonhosted.org/packages/8a/89/817ad5d0411f136c484d535952aef74af9b25e0d99e90cdffbe121e6d628/cachetools-6.1.0.tar.gz", hash = "sha256:b4c4f404392848db3ce7aac34950d17be4d864da4b8b66911008e430bc544587", size = 30714, upload-time = "2025-06-16T18:51:03.07Z" } +wheels = [ + { url = "https://files.pythonhosted.org/packages/00/f0/2ef431fe4141f5e334759d73e81120492b23b2824336883a91ac04ba710b/cachetools-6.1.0-py3-none-any.whl", hash = "sha256:1c7bb3cf9193deaf3508b7c5f2a79986c13ea38965c5adcff1f84519cf39163e", size = 11189, upload-time = "2025-06-16T18:51:01.514Z" }, +] + +[[package]] +name = "certifi" +version = "2025.7.14" +source = { registry = "https://pypi.org/simple" } +sdist = { url = "https://files.pythonhosted.org/packages/b3/76/52c535bcebe74590f296d6c77c86dabf761c41980e1347a2422e4aa2ae41/certifi-2025.7.14.tar.gz", hash = "sha256:8ea99dbdfaaf2ba2f9bac77b9249ef62ec5218e7c2b2e903378ed5fccf765995", size = 163981, upload-time = "2025-07-14T03:29:28.449Z" } +wheels = [ + { url = "https://files.pythonhosted.org/packages/4f/52/34c6cf5bb9285074dc3531c437b3919e825d976fde097a7a73f79e726d03/certifi-2025.7.14-py3-none-any.whl", hash = "sha256:6b31f564a415d79ee77df69d757bb49a5bb53bd9f756cbbe24394ffd6fc1f4b2", size = 162722, upload-time = "2025-07-14T03:29:26.863Z" }, +] + +[[package]] +name = "chardet" +version = "5.2.0" +source = { registry = "https://pypi.org/simple" } +sdist = { url = "https://files.pythonhosted.org/packages/f3/0d/f7b6ab21ec75897ed80c17d79b15951a719226b9fababf1e40ea74d69079/chardet-5.2.0.tar.gz", hash = "sha256:1b3b6ff479a8c414bc3fa2c0852995695c4a026dcd6d0633b2dd092ca39c1cf7", size = 2069618, upload-time = "2023-08-01T19:23:02.662Z" } +wheels = [ + { url = "https://files.pythonhosted.org/packages/38/6f/f5fbc992a329ee4e0f288c1fe0e2ad9485ed064cac731ed2fe47dcc38cbf/chardet-5.2.0-py3-none-any.whl", hash = "sha256:e1cf59446890a00105fe7b7912492ea04b6e6f06d4b742b2c788469e34c82970", size = 199385, upload-time = "2023-08-01T19:23:00.661Z" }, +] + +[[package]] +name = "charset-normalizer" +version = "3.4.2" +source = { registry = "https://pypi.org/simple" } +sdist = { url = "https://files.pythonhosted.org/packages/e4/33/89c2ced2b67d1c2a61c19c6751aa8902d46ce3dacb23600a283619f5a12d/charset_normalizer-3.4.2.tar.gz", hash = "sha256:5baececa9ecba31eff645232d59845c07aa030f0c81ee70184a90d35099a0e63", size = 126367, upload-time = "2025-05-02T08:34:42.01Z" } +wheels = [ + { url = "https://files.pythonhosted.org/packages/95/28/9901804da60055b406e1a1c5ba7aac1276fb77f1dde635aabfc7fd84b8ab/charset_normalizer-3.4.2-cp310-cp310-macosx_10_9_universal2.whl", hash = "sha256:7c48ed483eb946e6c04ccbe02c6b4d1d48e51944b6db70f697e089c193404941", size = 201818, upload-time = "2025-05-02T08:31:46.725Z" }, + { url = "https://files.pythonhosted.org/packages/d9/9b/892a8c8af9110935e5adcbb06d9c6fe741b6bb02608c6513983048ba1a18/charset_normalizer-3.4.2-cp310-cp310-manylinux_2_17_aarch64.manylinux2014_aarch64.whl", hash = "sha256:b2d318c11350e10662026ad0eb71bb51c7812fc8590825304ae0bdd4ac283acd", size = 144649, upload-time = "2025-05-02T08:31:48.889Z" }, + { url = "https://files.pythonhosted.org/packages/7b/a5/4179abd063ff6414223575e008593861d62abfc22455b5d1a44995b7c101/charset_normalizer-3.4.2-cp310-cp310-manylinux_2_17_ppc64le.manylinux2014_ppc64le.whl", hash = "sha256:9cbfacf36cb0ec2897ce0ebc5d08ca44213af24265bd56eca54bee7923c48fd6", size = 155045, upload-time = "2025-05-02T08:31:50.757Z" }, + { url = "https://files.pythonhosted.org/packages/3b/95/bc08c7dfeddd26b4be8c8287b9bb055716f31077c8b0ea1cd09553794665/charset_normalizer-3.4.2-cp310-cp310-manylinux_2_17_s390x.manylinux2014_s390x.whl", hash = "sha256:18dd2e350387c87dabe711b86f83c9c78af772c748904d372ade190b5c7c9d4d", size = 147356, upload-time = "2025-05-02T08:31:52.634Z" }, + { url = "https://files.pythonhosted.org/packages/a8/2d/7a5b635aa65284bf3eab7653e8b4151ab420ecbae918d3e359d1947b4d61/charset_normalizer-3.4.2-cp310-cp310-manylinux_2_17_x86_64.manylinux2014_x86_64.whl", hash = "sha256:8075c35cd58273fee266c58c0c9b670947c19df5fb98e7b66710e04ad4e9ff86", size = 149471, upload-time = "2025-05-02T08:31:56.207Z" }, + { url = "https://files.pythonhosted.org/packages/ae/38/51fc6ac74251fd331a8cfdb7ec57beba8c23fd5493f1050f71c87ef77ed0/charset_normalizer-3.4.2-cp310-cp310-manylinux_2_5_i686.manylinux1_i686.manylinux_2_17_i686.manylinux2014_i686.whl", hash = "sha256:5bf4545e3b962767e5c06fe1738f951f77d27967cb2caa64c28be7c4563e162c", size = 151317, upload-time = "2025-05-02T08:31:57.613Z" }, + { url = "https://files.pythonhosted.org/packages/b7/17/edee1e32215ee6e9e46c3e482645b46575a44a2d72c7dfd49e49f60ce6bf/charset_normalizer-3.4.2-cp310-cp310-musllinux_1_2_aarch64.whl", hash = "sha256:7a6ab32f7210554a96cd9e33abe3ddd86732beeafc7a28e9955cdf22ffadbab0", size = 146368, upload-time = "2025-05-02T08:31:59.468Z" }, + { url = "https://files.pythonhosted.org/packages/26/2c/ea3e66f2b5f21fd00b2825c94cafb8c326ea6240cd80a91eb09e4a285830/charset_normalizer-3.4.2-cp310-cp310-musllinux_1_2_i686.whl", hash = "sha256:b33de11b92e9f75a2b545d6e9b6f37e398d86c3e9e9653c4864eb7e89c5773ef", size = 154491, upload-time = "2025-05-02T08:32:01.219Z" }, + { url = "https://files.pythonhosted.org/packages/52/47/7be7fa972422ad062e909fd62460d45c3ef4c141805b7078dbab15904ff7/charset_normalizer-3.4.2-cp310-cp310-musllinux_1_2_ppc64le.whl", hash = "sha256:8755483f3c00d6c9a77f490c17e6ab0c8729e39e6390328e42521ef175380ae6", size = 157695, upload-time = "2025-05-02T08:32:03.045Z" }, + { url = "https://files.pythonhosted.org/packages/2f/42/9f02c194da282b2b340f28e5fb60762de1151387a36842a92b533685c61e/charset_normalizer-3.4.2-cp310-cp310-musllinux_1_2_s390x.whl", hash = "sha256:68a328e5f55ec37c57f19ebb1fdc56a248db2e3e9ad769919a58672958e8f366", size = 154849, upload-time = "2025-05-02T08:32:04.651Z" }, + { url = "https://files.pythonhosted.org/packages/67/44/89cacd6628f31fb0b63201a618049be4be2a7435a31b55b5eb1c3674547a/charset_normalizer-3.4.2-cp310-cp310-musllinux_1_2_x86_64.whl", hash = "sha256:21b2899062867b0e1fde9b724f8aecb1af14f2778d69aacd1a5a1853a597a5db", size = 150091, upload-time = "2025-05-02T08:32:06.719Z" }, + { url = "https://files.pythonhosted.org/packages/1f/79/4b8da9f712bc079c0f16b6d67b099b0b8d808c2292c937f267d816ec5ecc/charset_normalizer-3.4.2-cp310-cp310-win32.whl", hash = "sha256:e8082b26888e2f8b36a042a58307d5b917ef2b1cacab921ad3323ef91901c71a", size = 98445, upload-time = "2025-05-02T08:32:08.66Z" }, + { url = "https://files.pythonhosted.org/packages/7d/d7/96970afb4fb66497a40761cdf7bd4f6fca0fc7bafde3a84f836c1f57a926/charset_normalizer-3.4.2-cp310-cp310-win_amd64.whl", hash = "sha256:f69a27e45c43520f5487f27627059b64aaf160415589230992cec34c5e18a509", size = 105782, upload-time = "2025-05-02T08:32:10.46Z" }, + { url = "https://files.pythonhosted.org/packages/05/85/4c40d00dcc6284a1c1ad5de5e0996b06f39d8232f1031cd23c2f5c07ee86/charset_normalizer-3.4.2-cp311-cp311-macosx_10_9_universal2.whl", hash = "sha256:be1e352acbe3c78727a16a455126d9ff83ea2dfdcbc83148d2982305a04714c2", size = 198794, upload-time = "2025-05-02T08:32:11.945Z" }, + { url = "https://files.pythonhosted.org/packages/41/d9/7a6c0b9db952598e97e93cbdfcb91bacd89b9b88c7c983250a77c008703c/charset_normalizer-3.4.2-cp311-cp311-manylinux_2_17_aarch64.manylinux2014_aarch64.whl", hash = "sha256:aa88ca0b1932e93f2d961bf3addbb2db902198dca337d88c89e1559e066e7645", size = 142846, upload-time = "2025-05-02T08:32:13.946Z" }, + { url = "https://files.pythonhosted.org/packages/66/82/a37989cda2ace7e37f36c1a8ed16c58cf48965a79c2142713244bf945c89/charset_normalizer-3.4.2-cp311-cp311-manylinux_2_17_ppc64le.manylinux2014_ppc64le.whl", hash = "sha256:d524ba3f1581b35c03cb42beebab4a13e6cdad7b36246bd22541fa585a56cccd", size = 153350, upload-time = "2025-05-02T08:32:15.873Z" }, + { url = "https://files.pythonhosted.org/packages/df/68/a576b31b694d07b53807269d05ec3f6f1093e9545e8607121995ba7a8313/charset_normalizer-3.4.2-cp311-cp311-manylinux_2_17_s390x.manylinux2014_s390x.whl", hash = "sha256:28a1005facc94196e1fb3e82a3d442a9d9110b8434fc1ded7a24a2983c9888d8", size = 145657, upload-time = "2025-05-02T08:32:17.283Z" }, + { url = "https://files.pythonhosted.org/packages/92/9b/ad67f03d74554bed3aefd56fe836e1623a50780f7c998d00ca128924a499/charset_normalizer-3.4.2-cp311-cp311-manylinux_2_17_x86_64.manylinux2014_x86_64.whl", hash = "sha256:fdb20a30fe1175ecabed17cbf7812f7b804b8a315a25f24678bcdf120a90077f", size = 147260, upload-time = "2025-05-02T08:32:18.807Z" }, + { url = "https://files.pythonhosted.org/packages/a6/e6/8aebae25e328160b20e31a7e9929b1578bbdc7f42e66f46595a432f8539e/charset_normalizer-3.4.2-cp311-cp311-manylinux_2_5_i686.manylinux1_i686.manylinux_2_17_i686.manylinux2014_i686.whl", hash = "sha256:0f5d9ed7f254402c9e7d35d2f5972c9bbea9040e99cd2861bd77dc68263277c7", size = 149164, upload-time = "2025-05-02T08:32:20.333Z" }, + { url = "https://files.pythonhosted.org/packages/8b/f2/b3c2f07dbcc248805f10e67a0262c93308cfa149a4cd3d1fe01f593e5fd2/charset_normalizer-3.4.2-cp311-cp311-musllinux_1_2_aarch64.whl", hash = "sha256:efd387a49825780ff861998cd959767800d54f8308936b21025326de4b5a42b9", size = 144571, upload-time = "2025-05-02T08:32:21.86Z" }, + { url = "https://files.pythonhosted.org/packages/60/5b/c3f3a94bc345bc211622ea59b4bed9ae63c00920e2e8f11824aa5708e8b7/charset_normalizer-3.4.2-cp311-cp311-musllinux_1_2_i686.whl", hash = "sha256:f0aa37f3c979cf2546b73e8222bbfa3dc07a641585340179d768068e3455e544", size = 151952, upload-time = "2025-05-02T08:32:23.434Z" }, + { url = "https://files.pythonhosted.org/packages/e2/4d/ff460c8b474122334c2fa394a3f99a04cf11c646da895f81402ae54f5c42/charset_normalizer-3.4.2-cp311-cp311-musllinux_1_2_ppc64le.whl", hash = "sha256:e70e990b2137b29dc5564715de1e12701815dacc1d056308e2b17e9095372a82", size = 155959, upload-time = "2025-05-02T08:32:24.993Z" }, + { url = "https://files.pythonhosted.org/packages/a2/2b/b964c6a2fda88611a1fe3d4c400d39c66a42d6c169c924818c848f922415/charset_normalizer-3.4.2-cp311-cp311-musllinux_1_2_s390x.whl", hash = "sha256:0c8c57f84ccfc871a48a47321cfa49ae1df56cd1d965a09abe84066f6853b9c0", size = 153030, upload-time = "2025-05-02T08:32:26.435Z" }, + { url = "https://files.pythonhosted.org/packages/59/2e/d3b9811db26a5ebf444bc0fa4f4be5aa6d76fc6e1c0fd537b16c14e849b6/charset_normalizer-3.4.2-cp311-cp311-musllinux_1_2_x86_64.whl", hash = "sha256:6b66f92b17849b85cad91259efc341dce9c1af48e2173bf38a85c6329f1033e5", size = 148015, upload-time = "2025-05-02T08:32:28.376Z" }, + { url = "https://files.pythonhosted.org/packages/90/07/c5fd7c11eafd561bb51220d600a788f1c8d77c5eef37ee49454cc5c35575/charset_normalizer-3.4.2-cp311-cp311-win32.whl", hash = "sha256:daac4765328a919a805fa5e2720f3e94767abd632ae410a9062dff5412bae65a", size = 98106, upload-time = "2025-05-02T08:32:30.281Z" }, + { url = "https://files.pythonhosted.org/packages/a8/05/5e33dbef7e2f773d672b6d79f10ec633d4a71cd96db6673625838a4fd532/charset_normalizer-3.4.2-cp311-cp311-win_amd64.whl", hash = "sha256:e53efc7c7cee4c1e70661e2e112ca46a575f90ed9ae3fef200f2a25e954f4b28", size = 105402, upload-time = "2025-05-02T08:32:32.191Z" }, + { url = "https://files.pythonhosted.org/packages/d7/a4/37f4d6035c89cac7930395a35cc0f1b872e652eaafb76a6075943754f095/charset_normalizer-3.4.2-cp312-cp312-macosx_10_13_universal2.whl", hash = "sha256:0c29de6a1a95f24b9a1aa7aefd27d2487263f00dfd55a77719b530788f75cff7", size = 199936, upload-time = "2025-05-02T08:32:33.712Z" }, + { url = "https://files.pythonhosted.org/packages/ee/8a/1a5e33b73e0d9287274f899d967907cd0bf9c343e651755d9307e0dbf2b3/charset_normalizer-3.4.2-cp312-cp312-manylinux_2_17_aarch64.manylinux2014_aarch64.whl", hash = "sha256:cddf7bd982eaa998934a91f69d182aec997c6c468898efe6679af88283b498d3", size = 143790, upload-time = "2025-05-02T08:32:35.768Z" }, + { url = "https://files.pythonhosted.org/packages/66/52/59521f1d8e6ab1482164fa21409c5ef44da3e9f653c13ba71becdd98dec3/charset_normalizer-3.4.2-cp312-cp312-manylinux_2_17_ppc64le.manylinux2014_ppc64le.whl", hash = "sha256:fcbe676a55d7445b22c10967bceaaf0ee69407fbe0ece4d032b6eb8d4565982a", size = 153924, upload-time = "2025-05-02T08:32:37.284Z" }, + { url = "https://files.pythonhosted.org/packages/86/2d/fb55fdf41964ec782febbf33cb64be480a6b8f16ded2dbe8db27a405c09f/charset_normalizer-3.4.2-cp312-cp312-manylinux_2_17_s390x.manylinux2014_s390x.whl", hash = "sha256:d41c4d287cfc69060fa91cae9683eacffad989f1a10811995fa309df656ec214", size = 146626, upload-time = "2025-05-02T08:32:38.803Z" }, + { url = "https://files.pythonhosted.org/packages/8c/73/6ede2ec59bce19b3edf4209d70004253ec5f4e319f9a2e3f2f15601ed5f7/charset_normalizer-3.4.2-cp312-cp312-manylinux_2_17_x86_64.manylinux2014_x86_64.whl", hash = "sha256:4e594135de17ab3866138f496755f302b72157d115086d100c3f19370839dd3a", size = 148567, upload-time = "2025-05-02T08:32:40.251Z" }, + { url = "https://files.pythonhosted.org/packages/09/14/957d03c6dc343c04904530b6bef4e5efae5ec7d7990a7cbb868e4595ee30/charset_normalizer-3.4.2-cp312-cp312-manylinux_2_5_i686.manylinux1_i686.manylinux_2_17_i686.manylinux2014_i686.whl", hash = "sha256:cf713fe9a71ef6fd5adf7a79670135081cd4431c2943864757f0fa3a65b1fafd", size = 150957, upload-time = "2025-05-02T08:32:41.705Z" }, + { url = "https://files.pythonhosted.org/packages/0d/c8/8174d0e5c10ccebdcb1b53cc959591c4c722a3ad92461a273e86b9f5a302/charset_normalizer-3.4.2-cp312-cp312-musllinux_1_2_aarch64.whl", hash = "sha256:a370b3e078e418187da8c3674eddb9d983ec09445c99a3a263c2011993522981", size = 145408, upload-time = "2025-05-02T08:32:43.709Z" }, + { url = "https://files.pythonhosted.org/packages/58/aa/8904b84bc8084ac19dc52feb4f5952c6df03ffb460a887b42615ee1382e8/charset_normalizer-3.4.2-cp312-cp312-musllinux_1_2_i686.whl", hash = "sha256:a955b438e62efdf7e0b7b52a64dc5c3396e2634baa62471768a64bc2adb73d5c", size = 153399, upload-time = "2025-05-02T08:32:46.197Z" }, + { url = "https://files.pythonhosted.org/packages/c2/26/89ee1f0e264d201cb65cf054aca6038c03b1a0c6b4ae998070392a3ce605/charset_normalizer-3.4.2-cp312-cp312-musllinux_1_2_ppc64le.whl", hash = "sha256:7222ffd5e4de8e57e03ce2cef95a4c43c98fcb72ad86909abdfc2c17d227fc1b", size = 156815, upload-time = "2025-05-02T08:32:48.105Z" }, + { url = "https://files.pythonhosted.org/packages/fd/07/68e95b4b345bad3dbbd3a8681737b4338ff2c9df29856a6d6d23ac4c73cb/charset_normalizer-3.4.2-cp312-cp312-musllinux_1_2_s390x.whl", hash = "sha256:bee093bf902e1d8fc0ac143c88902c3dfc8941f7ea1d6a8dd2bcb786d33db03d", size = 154537, upload-time = "2025-05-02T08:32:49.719Z" }, + { url = "https://files.pythonhosted.org/packages/77/1a/5eefc0ce04affb98af07bc05f3bac9094513c0e23b0562d64af46a06aae4/charset_normalizer-3.4.2-cp312-cp312-musllinux_1_2_x86_64.whl", hash = "sha256:dedb8adb91d11846ee08bec4c8236c8549ac721c245678282dcb06b221aab59f", size = 149565, upload-time = "2025-05-02T08:32:51.404Z" }, + { url = "https://files.pythonhosted.org/packages/37/a0/2410e5e6032a174c95e0806b1a6585eb21e12f445ebe239fac441995226a/charset_normalizer-3.4.2-cp312-cp312-win32.whl", hash = "sha256:db4c7bf0e07fc3b7d89ac2a5880a6a8062056801b83ff56d8464b70f65482b6c", size = 98357, upload-time = "2025-05-02T08:32:53.079Z" }, + { url = "https://files.pythonhosted.org/packages/6c/4f/c02d5c493967af3eda9c771ad4d2bbc8df6f99ddbeb37ceea6e8716a32bc/charset_normalizer-3.4.2-cp312-cp312-win_amd64.whl", hash = "sha256:5a9979887252a82fefd3d3ed2a8e3b937a7a809f65dcb1e068b090e165bbe99e", size = 105776, upload-time = "2025-05-02T08:32:54.573Z" }, + { url = "https://files.pythonhosted.org/packages/ea/12/a93df3366ed32db1d907d7593a94f1fe6293903e3e92967bebd6950ed12c/charset_normalizer-3.4.2-cp313-cp313-macosx_10_13_universal2.whl", hash = "sha256:926ca93accd5d36ccdabd803392ddc3e03e6d4cd1cf17deff3b989ab8e9dbcf0", size = 199622, upload-time = "2025-05-02T08:32:56.363Z" }, + { url = "https://files.pythonhosted.org/packages/04/93/bf204e6f344c39d9937d3c13c8cd5bbfc266472e51fc8c07cb7f64fcd2de/charset_normalizer-3.4.2-cp313-cp313-manylinux_2_17_aarch64.manylinux2014_aarch64.whl", hash = "sha256:eba9904b0f38a143592d9fc0e19e2df0fa2e41c3c3745554761c5f6447eedabf", size = 143435, upload-time = "2025-05-02T08:32:58.551Z" }, + { url = "https://files.pythonhosted.org/packages/22/2a/ea8a2095b0bafa6c5b5a55ffdc2f924455233ee7b91c69b7edfcc9e02284/charset_normalizer-3.4.2-cp313-cp313-manylinux_2_17_ppc64le.manylinux2014_ppc64le.whl", hash = "sha256:3fddb7e2c84ac87ac3a947cb4e66d143ca5863ef48e4a5ecb83bd48619e4634e", size = 153653, upload-time = "2025-05-02T08:33:00.342Z" }, + { url = "https://files.pythonhosted.org/packages/b6/57/1b090ff183d13cef485dfbe272e2fe57622a76694061353c59da52c9a659/charset_normalizer-3.4.2-cp313-cp313-manylinux_2_17_s390x.manylinux2014_s390x.whl", hash = "sha256:98f862da73774290f251b9df8d11161b6cf25b599a66baf087c1ffe340e9bfd1", size = 146231, upload-time = "2025-05-02T08:33:02.081Z" }, + { url = "https://files.pythonhosted.org/packages/e2/28/ffc026b26f441fc67bd21ab7f03b313ab3fe46714a14b516f931abe1a2d8/charset_normalizer-3.4.2-cp313-cp313-manylinux_2_17_x86_64.manylinux2014_x86_64.whl", hash = "sha256:6c9379d65defcab82d07b2a9dfbfc2e95bc8fe0ebb1b176a3190230a3ef0e07c", size = 148243, upload-time = "2025-05-02T08:33:04.063Z" }, + { url = "https://files.pythonhosted.org/packages/c0/0f/9abe9bd191629c33e69e47c6ef45ef99773320e9ad8e9cb08b8ab4a8d4cb/charset_normalizer-3.4.2-cp313-cp313-manylinux_2_5_i686.manylinux1_i686.manylinux_2_17_i686.manylinux2014_i686.whl", hash = "sha256:e635b87f01ebc977342e2697d05b56632f5f879a4f15955dfe8cef2448b51691", size = 150442, upload-time = "2025-05-02T08:33:06.418Z" }, + { url = "https://files.pythonhosted.org/packages/67/7c/a123bbcedca91d5916c056407f89a7f5e8fdfce12ba825d7d6b9954a1a3c/charset_normalizer-3.4.2-cp313-cp313-musllinux_1_2_aarch64.whl", hash = "sha256:1c95a1e2902a8b722868587c0e1184ad5c55631de5afc0eb96bc4b0d738092c0", size = 145147, upload-time = "2025-05-02T08:33:08.183Z" }, + { url = "https://files.pythonhosted.org/packages/ec/fe/1ac556fa4899d967b83e9893788e86b6af4d83e4726511eaaad035e36595/charset_normalizer-3.4.2-cp313-cp313-musllinux_1_2_i686.whl", hash = "sha256:ef8de666d6179b009dce7bcb2ad4c4a779f113f12caf8dc77f0162c29d20490b", size = 153057, upload-time = "2025-05-02T08:33:09.986Z" }, + { url = "https://files.pythonhosted.org/packages/2b/ff/acfc0b0a70b19e3e54febdd5301a98b72fa07635e56f24f60502e954c461/charset_normalizer-3.4.2-cp313-cp313-musllinux_1_2_ppc64le.whl", hash = "sha256:32fc0341d72e0f73f80acb0a2c94216bd704f4f0bce10aedea38f30502b271ff", size = 156454, upload-time = "2025-05-02T08:33:11.814Z" }, + { url = "https://files.pythonhosted.org/packages/92/08/95b458ce9c740d0645feb0e96cea1f5ec946ea9c580a94adfe0b617f3573/charset_normalizer-3.4.2-cp313-cp313-musllinux_1_2_s390x.whl", hash = "sha256:289200a18fa698949d2b39c671c2cc7a24d44096784e76614899a7ccf2574b7b", size = 154174, upload-time = "2025-05-02T08:33:13.707Z" }, + { url = "https://files.pythonhosted.org/packages/78/be/8392efc43487ac051eee6c36d5fbd63032d78f7728cb37aebcc98191f1ff/charset_normalizer-3.4.2-cp313-cp313-musllinux_1_2_x86_64.whl", hash = "sha256:4a476b06fbcf359ad25d34a057b7219281286ae2477cc5ff5e3f70a246971148", size = 149166, upload-time = "2025-05-02T08:33:15.458Z" }, + { url = "https://files.pythonhosted.org/packages/44/96/392abd49b094d30b91d9fbda6a69519e95802250b777841cf3bda8fe136c/charset_normalizer-3.4.2-cp313-cp313-win32.whl", hash = "sha256:aaeeb6a479c7667fbe1099af9617c83aaca22182d6cf8c53966491a0f1b7ffb7", size = 98064, upload-time = "2025-05-02T08:33:17.06Z" }, + { url = "https://files.pythonhosted.org/packages/e9/b0/0200da600134e001d91851ddc797809e2fe0ea72de90e09bec5a2fbdaccb/charset_normalizer-3.4.2-cp313-cp313-win_amd64.whl", hash = "sha256:aa6af9e7d59f9c12b33ae4e9450619cf2488e2bbe9b44030905877f0b2324980", size = 105641, upload-time = "2025-05-02T08:33:18.753Z" }, + { url = "https://files.pythonhosted.org/packages/28/f8/dfb01ff6cc9af38552c69c9027501ff5a5117c4cc18dcd27cb5259fa1888/charset_normalizer-3.4.2-cp39-cp39-macosx_10_9_universal2.whl", hash = "sha256:005fa3432484527f9732ebd315da8da8001593e2cf46a3d817669f062c3d9ed4", size = 201671, upload-time = "2025-05-02T08:34:12.696Z" }, + { url = "https://files.pythonhosted.org/packages/32/fb/74e26ee556a9dbfe3bd264289b67be1e6d616329403036f6507bb9f3f29c/charset_normalizer-3.4.2-cp39-cp39-manylinux_2_17_aarch64.manylinux2014_aarch64.whl", hash = "sha256:e92fca20c46e9f5e1bb485887d074918b13543b1c2a1185e69bb8d17ab6236a7", size = 144744, upload-time = "2025-05-02T08:34:14.665Z" }, + { url = "https://files.pythonhosted.org/packages/ad/06/8499ee5aa7addc6f6d72e068691826ff093329fe59891e83b092ae4c851c/charset_normalizer-3.4.2-cp39-cp39-manylinux_2_17_ppc64le.manylinux2014_ppc64le.whl", hash = "sha256:50bf98d5e563b83cc29471fa114366e6806bc06bc7a25fd59641e41445327836", size = 154993, upload-time = "2025-05-02T08:34:17.134Z" }, + { url = "https://files.pythonhosted.org/packages/f1/a2/5e4c187680728219254ef107a6949c60ee0e9a916a5dadb148c7ae82459c/charset_normalizer-3.4.2-cp39-cp39-manylinux_2_17_s390x.manylinux2014_s390x.whl", hash = "sha256:721c76e84fe669be19c5791da68232ca2e05ba5185575086e384352e2c309597", size = 147382, upload-time = "2025-05-02T08:34:19.081Z" }, + { url = "https://files.pythonhosted.org/packages/4c/fe/56aca740dda674f0cc1ba1418c4d84534be51f639b5f98f538b332dc9a95/charset_normalizer-3.4.2-cp39-cp39-manylinux_2_17_x86_64.manylinux2014_x86_64.whl", hash = "sha256:82d8fd25b7f4675d0c47cf95b594d4e7b158aca33b76aa63d07186e13c0e0ab7", size = 149536, upload-time = "2025-05-02T08:34:21.073Z" }, + { url = "https://files.pythonhosted.org/packages/53/13/db2e7779f892386b589173dd689c1b1e304621c5792046edd8a978cbf9e0/charset_normalizer-3.4.2-cp39-cp39-manylinux_2_5_i686.manylinux1_i686.manylinux_2_17_i686.manylinux2014_i686.whl", hash = "sha256:b3daeac64d5b371dea99714f08ffc2c208522ec6b06fbc7866a450dd446f5c0f", size = 151349, upload-time = "2025-05-02T08:34:23.193Z" }, + { url = "https://files.pythonhosted.org/packages/69/35/e52ab9a276186f729bce7a0638585d2982f50402046e4b0faa5d2c3ef2da/charset_normalizer-3.4.2-cp39-cp39-musllinux_1_2_aarch64.whl", hash = "sha256:dccab8d5fa1ef9bfba0590ecf4d46df048d18ffe3eec01eeb73a42e0d9e7a8ba", size = 146365, upload-time = "2025-05-02T08:34:25.187Z" }, + { url = "https://files.pythonhosted.org/packages/a6/d8/af7333f732fc2e7635867d56cb7c349c28c7094910c72267586947561b4b/charset_normalizer-3.4.2-cp39-cp39-musllinux_1_2_i686.whl", hash = "sha256:aaf27faa992bfee0264dc1f03f4c75e9fcdda66a519db6b957a3f826e285cf12", size = 154499, upload-time = "2025-05-02T08:34:27.359Z" }, + { url = "https://files.pythonhosted.org/packages/7a/3d/a5b2e48acef264d71e036ff30bcc49e51bde80219bb628ba3e00cf59baac/charset_normalizer-3.4.2-cp39-cp39-musllinux_1_2_ppc64le.whl", hash = "sha256:eb30abc20df9ab0814b5a2524f23d75dcf83cde762c161917a2b4b7b55b1e518", size = 157735, upload-time = "2025-05-02T08:34:29.798Z" }, + { url = "https://files.pythonhosted.org/packages/85/d8/23e2c112532a29f3eef374375a8684a4f3b8e784f62b01da931186f43494/charset_normalizer-3.4.2-cp39-cp39-musllinux_1_2_s390x.whl", hash = "sha256:c72fbbe68c6f32f251bdc08b8611c7b3060612236e960ef848e0a517ddbe76c5", size = 154786, upload-time = "2025-05-02T08:34:31.858Z" }, + { url = "https://files.pythonhosted.org/packages/c7/57/93e0169f08ecc20fe82d12254a200dfaceddc1c12a4077bf454ecc597e33/charset_normalizer-3.4.2-cp39-cp39-musllinux_1_2_x86_64.whl", hash = "sha256:982bb1e8b4ffda883b3d0a521e23abcd6fd17418f6d2c4118d257a10199c0ce3", size = 150203, upload-time = "2025-05-02T08:34:33.88Z" }, + { url = "https://files.pythonhosted.org/packages/2c/9d/9bf2b005138e7e060d7ebdec7503d0ef3240141587651f4b445bdf7286c2/charset_normalizer-3.4.2-cp39-cp39-win32.whl", hash = "sha256:43e0933a0eff183ee85833f341ec567c0980dae57c464d8a508e1b2ceb336471", size = 98436, upload-time = "2025-05-02T08:34:35.907Z" }, + { url = "https://files.pythonhosted.org/packages/6d/24/5849d46cf4311bbf21b424c443b09b459f5b436b1558c04e45dbb7cc478b/charset_normalizer-3.4.2-cp39-cp39-win_amd64.whl", hash = "sha256:d11b54acf878eef558599658b0ffca78138c8c3655cf4f3a4a673c437e67732e", size = 105772, upload-time = "2025-05-02T08:34:37.935Z" }, + { url = "https://files.pythonhosted.org/packages/20/94/c5790835a017658cbfabd07f3bfb549140c3ac458cfc196323996b10095a/charset_normalizer-3.4.2-py3-none-any.whl", hash = "sha256:7f56930ab0abd1c45cd15be65cc741c28b1c9a34876ce8c17a2fa107810c0af0", size = 52626, upload-time = "2025-05-02T08:34:40.053Z" }, +] + +[[package]] +name = "click" +version = "8.1.8" +source = { registry = "https://pypi.org/simple" } +resolution-markers = [ + "python_full_version < '3.10'", +] +dependencies = [ + { name = "colorama", marker = "python_full_version < '3.10' and sys_platform == 'win32'" }, +] +sdist = { url = "https://files.pythonhosted.org/packages/b9/2e/0090cbf739cee7d23781ad4b89a9894a41538e4fcf4c31dcdd705b78eb8b/click-8.1.8.tar.gz", hash = "sha256:ed53c9d8990d83c2a27deae68e4ee337473f6330c040a31d4225c9574d16096a", size = 226593, upload-time = "2024-12-21T18:38:44.339Z" } +wheels = [ + { url = "https://files.pythonhosted.org/packages/7e/d4/7ebdbd03970677812aac39c869717059dbb71a4cfc033ca6e5221787892c/click-8.1.8-py3-none-any.whl", hash = "sha256:63c132bbbed01578a06712a2d1f497bb62d9c1c0d329b7903a866228027263b2", size = 98188, upload-time = "2024-12-21T18:38:41.666Z" }, +] + +[[package]] +name = "click" +version = "8.2.1" +source = { registry = "https://pypi.org/simple" } +resolution-markers = [ + "python_full_version >= '3.10'", +] +dependencies = [ + { name = "colorama", marker = "python_full_version >= '3.10' and sys_platform == 'win32'" }, +] +sdist = { url = "https://files.pythonhosted.org/packages/60/6c/8ca2efa64cf75a977a0d7fac081354553ebe483345c734fb6b6515d96bbc/click-8.2.1.tar.gz", hash = "sha256:27c491cc05d968d271d5a1db13e3b5a184636d9d930f148c50b038f0d0646202", size = 286342, upload-time = "2025-05-20T23:19:49.832Z" } +wheels = [ + { url = "https://files.pythonhosted.org/packages/85/32/10bb5764d90a8eee674e9dc6f4db6a0ab47c8c4d0d83c27f7c39ac415a4d/click-8.2.1-py3-none-any.whl", hash = "sha256:61a3265b914e850b85317d0b3109c7f8cd35a670f963866005d6ef1d5175a12b", size = 102215, upload-time = "2025-05-20T23:19:47.796Z" }, +] + +[[package]] +name = "colorama" +version = "0.4.6" +source = { registry = "https://pypi.org/simple" } +sdist = { url = "https://files.pythonhosted.org/packages/d8/53/6f443c9a4a8358a93a6792e2acffb9d9d5cb0a5cfd8802644b7b1c9a02e4/colorama-0.4.6.tar.gz", hash = "sha256:08695f5cb7ed6e0531a20572697297273c47b8cae5a63ffc6d6ed5c201be6e44", size = 27697, upload-time = "2022-10-25T02:36:22.414Z" } +wheels = [ + { url = "https://files.pythonhosted.org/packages/d1/d6/3965ed04c63042e047cb6a3e6ed1a63a35087b6a609aa3a15ed8ac56c221/colorama-0.4.6-py2.py3-none-any.whl", hash = "sha256:4f1d9991f5acc0ca119f9d443620b77f9d6b33703e51011c16baf57afb285fc6", size = 25335, upload-time = "2022-10-25T02:36:20.889Z" }, +] + +[[package]] +name = "coverage" +version = "7.10.1" +source = { registry = "https://pypi.org/simple" } +sdist = { url = "https://files.pythonhosted.org/packages/87/0e/66dbd4c6a7f0758a8d18044c048779ba21fb94856e1edcf764bd5403e710/coverage-7.10.1.tar.gz", hash = "sha256:ae2b4856f29ddfe827106794f3589949a57da6f0d38ab01e24ec35107979ba57", size = 819938, upload-time = "2025-07-27T14:13:39.045Z" } +wheels = [ + { url = "https://files.pythonhosted.org/packages/ef/e7/0f4e35a15361337529df88151bddcac8e8f6d6fd01da94a4b7588901c2fe/coverage-7.10.1-cp310-cp310-macosx_10_9_x86_64.whl", hash = "sha256:1c86eb388bbd609d15560e7cc0eb936c102b6f43f31cf3e58b4fd9afe28e1372", size = 214627, upload-time = "2025-07-27T14:11:01.211Z" }, + { url = "https://files.pythonhosted.org/packages/e0/fd/17872e762c408362072c936dbf3ca28c67c609a1f5af434b1355edcb7e12/coverage-7.10.1-cp310-cp310-macosx_11_0_arm64.whl", hash = "sha256:6b4ba0f488c1bdb6bd9ba81da50715a372119785458831c73428a8566253b86b", size = 215015, upload-time = "2025-07-27T14:11:03.988Z" }, + { url = "https://files.pythonhosted.org/packages/54/50/c9d445ba38ee5f685f03876c0f8223469e2e46c5d3599594dca972b470c8/coverage-7.10.1-cp310-cp310-manylinux1_i686.manylinux_2_28_i686.manylinux_2_5_i686.whl", hash = "sha256:083442ecf97d434f0cb3b3e3676584443182653da08b42e965326ba12d6b5f2a", size = 241995, upload-time = "2025-07-27T14:11:05.983Z" }, + { url = "https://files.pythonhosted.org/packages/cc/83/4ae6e0f60376af33de543368394d21b9ac370dc86434039062ef171eebf8/coverage-7.10.1-cp310-cp310-manylinux1_x86_64.manylinux_2_28_x86_64.manylinux_2_5_x86_64.whl", hash = "sha256:c1a40c486041006b135759f59189385da7c66d239bad897c994e18fd1d0c128f", size = 243253, upload-time = "2025-07-27T14:11:07.424Z" }, + { url = "https://files.pythonhosted.org/packages/49/90/17a4d9ac7171be364ce8c0bb2b6da05e618ebfe1f11238ad4f26c99f5467/coverage-7.10.1-cp310-cp310-manylinux2014_aarch64.manylinux_2_17_aarch64.manylinux_2_28_aarch64.whl", hash = "sha256:3beb76e20b28046989300c4ea81bf690df84ee98ade4dc0bbbf774a28eb98440", size = 245110, upload-time = "2025-07-27T14:11:09.152Z" }, + { url = "https://files.pythonhosted.org/packages/e1/f7/edc3f485d536ed417f3af2b4969582bcb5fab456241721825fa09354161e/coverage-7.10.1-cp310-cp310-musllinux_1_2_aarch64.whl", hash = "sha256:bc265a7945e8d08da28999ad02b544963f813a00f3ed0a7a0ce4165fd77629f8", size = 243056, upload-time = "2025-07-27T14:11:10.586Z" }, + { url = "https://files.pythonhosted.org/packages/58/2c/c4c316a57718556b8d0cc8304437741c31b54a62934e7c8c551a7915c2f4/coverage-7.10.1-cp310-cp310-musllinux_1_2_i686.whl", hash = "sha256:47c91f32ba4ac46f1e224a7ebf3f98b4b24335bad16137737fe71a5961a0665c", size = 241731, upload-time = "2025-07-27T14:11:12.145Z" }, + { url = "https://files.pythonhosted.org/packages/f7/93/c78e144c6f086043d0d7d9237c5b880e71ac672ed2712c6f8cca5544481f/coverage-7.10.1-cp310-cp310-musllinux_1_2_x86_64.whl", hash = "sha256:1a108dd78ed185020f66f131c60078f3fae3f61646c28c8bb4edd3fa121fc7fc", size = 242023, upload-time = "2025-07-27T14:11:13.573Z" }, + { url = "https://files.pythonhosted.org/packages/8f/e1/34e8505ca81fc144a612e1cc79fadd4a78f42e96723875f4e9f1f470437e/coverage-7.10.1-cp310-cp310-win32.whl", hash = "sha256:7092cc82382e634075cc0255b0b69cb7cada7c1f249070ace6a95cb0f13548ef", size = 217130, upload-time = "2025-07-27T14:11:15.11Z" }, + { url = "https://files.pythonhosted.org/packages/75/2b/82adfce6edffc13d804aee414e64c0469044234af9296e75f6d13f92f6a2/coverage-7.10.1-cp310-cp310-win_amd64.whl", hash = "sha256:ac0c5bba938879c2fc0bc6c1b47311b5ad1212a9dcb8b40fe2c8110239b7faed", size = 218015, upload-time = "2025-07-27T14:11:16.836Z" }, + { url = "https://files.pythonhosted.org/packages/20/8e/ef088112bd1b26e2aa931ee186992b3e42c222c64f33e381432c8ee52aae/coverage-7.10.1-cp311-cp311-macosx_10_9_x86_64.whl", hash = "sha256:b45e2f9d5b0b5c1977cb4feb5f594be60eb121106f8900348e29331f553a726f", size = 214747, upload-time = "2025-07-27T14:11:18.217Z" }, + { url = "https://files.pythonhosted.org/packages/2d/76/a1e46f3c6e0897758eb43af88bb3c763cb005f4950769f7b553e22aa5f89/coverage-7.10.1-cp311-cp311-macosx_11_0_arm64.whl", hash = "sha256:3a7a4d74cb0f5e3334f9aa26af7016ddb94fb4bfa11b4a573d8e98ecba8c34f1", size = 215128, upload-time = "2025-07-27T14:11:19.706Z" }, + { url = "https://files.pythonhosted.org/packages/78/4d/903bafb371a8c887826ecc30d3977b65dfad0e1e66aa61b7e173de0828b0/coverage-7.10.1-cp311-cp311-manylinux1_i686.manylinux_2_28_i686.manylinux_2_5_i686.whl", hash = "sha256:d4b0aab55ad60ead26159ff12b538c85fbab731a5e3411c642b46c3525863437", size = 245140, upload-time = "2025-07-27T14:11:21.261Z" }, + { url = "https://files.pythonhosted.org/packages/55/f1/1f8f09536f38394a8698dd08a0e9608a512eacee1d3b771e2d06397f77bf/coverage-7.10.1-cp311-cp311-manylinux1_x86_64.manylinux_2_28_x86_64.manylinux_2_5_x86_64.whl", hash = "sha256:dcc93488c9ebd229be6ee1f0d9aad90da97b33ad7e2912f5495804d78a3cd6b7", size = 246977, upload-time = "2025-07-27T14:11:23.15Z" }, + { url = "https://files.pythonhosted.org/packages/57/cc/ed6bbc5a3bdb36ae1bca900bbbfdcb23b260ef2767a7b2dab38b92f61adf/coverage-7.10.1-cp311-cp311-manylinux2014_aarch64.manylinux_2_17_aarch64.manylinux_2_28_aarch64.whl", hash = "sha256:aa309df995d020f3438407081b51ff527171cca6772b33cf8f85344b8b4b8770", size = 249140, upload-time = "2025-07-27T14:11:24.743Z" }, + { url = "https://files.pythonhosted.org/packages/10/f5/e881ade2d8e291b60fa1d93d6d736107e940144d80d21a0d4999cff3642f/coverage-7.10.1-cp311-cp311-musllinux_1_2_aarch64.whl", hash = "sha256:cfb8b9d8855c8608f9747602a48ab525b1d320ecf0113994f6df23160af68262", size = 246869, upload-time = "2025-07-27T14:11:26.156Z" }, + { url = "https://files.pythonhosted.org/packages/53/b9/6a5665cb8996e3cd341d184bb11e2a8edf01d8dadcf44eb1e742186cf243/coverage-7.10.1-cp311-cp311-musllinux_1_2_i686.whl", hash = "sha256:320d86da829b012982b414c7cdda65f5d358d63f764e0e4e54b33097646f39a3", size = 244899, upload-time = "2025-07-27T14:11:27.622Z" }, + { url = "https://files.pythonhosted.org/packages/27/11/24156776709c4e25bf8a33d6bb2ece9a9067186ddac19990f6560a7f8130/coverage-7.10.1-cp311-cp311-musllinux_1_2_x86_64.whl", hash = "sha256:dc60ddd483c556590da1d9482a4518292eec36dd0e1e8496966759a1f282bcd0", size = 245507, upload-time = "2025-07-27T14:11:29.544Z" }, + { url = "https://files.pythonhosted.org/packages/43/db/a6f0340b7d6802a79928659c9a32bc778ea420e87a61b568d68ac36d45a8/coverage-7.10.1-cp311-cp311-win32.whl", hash = "sha256:4fcfe294f95b44e4754da5b58be750396f2b1caca8f9a0e78588e3ef85f8b8be", size = 217167, upload-time = "2025-07-27T14:11:31.349Z" }, + { url = "https://files.pythonhosted.org/packages/f5/6f/1990eb4fd05cea4cfabdf1d587a997ac5f9a8bee883443a1d519a2a848c9/coverage-7.10.1-cp311-cp311-win_amd64.whl", hash = "sha256:efa23166da3fe2915f8ab452dde40319ac84dc357f635737174a08dbd912980c", size = 218054, upload-time = "2025-07-27T14:11:33.202Z" }, + { url = "https://files.pythonhosted.org/packages/b4/4d/5e061d6020251b20e9b4303bb0b7900083a1a384ec4e5db326336c1c4abd/coverage-7.10.1-cp311-cp311-win_arm64.whl", hash = "sha256:d12b15a8c3759e2bb580ffa423ae54be4f184cf23beffcbd641f4fe6e1584293", size = 216483, upload-time = "2025-07-27T14:11:34.663Z" }, + { url = "https://files.pythonhosted.org/packages/a5/3f/b051feeb292400bd22d071fdf933b3ad389a8cef5c80c7866ed0c7414b9e/coverage-7.10.1-cp312-cp312-macosx_10_13_x86_64.whl", hash = "sha256:6b7dc7f0a75a7eaa4584e5843c873c561b12602439d2351ee28c7478186c4da4", size = 214934, upload-time = "2025-07-27T14:11:36.096Z" }, + { url = "https://files.pythonhosted.org/packages/f8/e4/a61b27d5c4c2d185bdfb0bfe9d15ab4ac4f0073032665544507429ae60eb/coverage-7.10.1-cp312-cp312-macosx_11_0_arm64.whl", hash = "sha256:607f82389f0ecafc565813aa201a5cade04f897603750028dd660fb01797265e", size = 215173, upload-time = "2025-07-27T14:11:38.005Z" }, + { url = "https://files.pythonhosted.org/packages/8a/01/40a6ee05b60d02d0bc53742ad4966e39dccd450aafb48c535a64390a3552/coverage-7.10.1-cp312-cp312-manylinux1_i686.manylinux_2_28_i686.manylinux_2_5_i686.whl", hash = "sha256:f7da31a1ba31f1c1d4d5044b7c5813878adae1f3af8f4052d679cc493c7328f4", size = 246190, upload-time = "2025-07-27T14:11:39.887Z" }, + { url = "https://files.pythonhosted.org/packages/11/ef/a28d64d702eb583c377255047281305dc5a5cfbfb0ee36e721f78255adb6/coverage-7.10.1-cp312-cp312-manylinux1_x86_64.manylinux_2_28_x86_64.manylinux_2_5_x86_64.whl", hash = "sha256:51fe93f3fe4f5d8483d51072fddc65e717a175490804e1942c975a68e04bf97a", size = 248618, upload-time = "2025-07-27T14:11:41.841Z" }, + { url = "https://files.pythonhosted.org/packages/6a/ad/73d018bb0c8317725370c79d69b5c6e0257df84a3b9b781bda27a438a3be/coverage-7.10.1-cp312-cp312-manylinux2014_aarch64.manylinux_2_17_aarch64.manylinux_2_28_aarch64.whl", hash = "sha256:3e59d00830da411a1feef6ac828b90bbf74c9b6a8e87b8ca37964925bba76dbe", size = 250081, upload-time = "2025-07-27T14:11:43.705Z" }, + { url = "https://files.pythonhosted.org/packages/2d/dd/496adfbbb4503ebca5d5b2de8bed5ec00c0a76558ffc5b834fd404166bc9/coverage-7.10.1-cp312-cp312-musllinux_1_2_aarch64.whl", hash = "sha256:924563481c27941229cb4e16eefacc35da28563e80791b3ddc5597b062a5c386", size = 247990, upload-time = "2025-07-27T14:11:45.244Z" }, + { url = "https://files.pythonhosted.org/packages/18/3c/a9331a7982facfac0d98a4a87b36ae666fe4257d0f00961a3a9ef73e015d/coverage-7.10.1-cp312-cp312-musllinux_1_2_i686.whl", hash = "sha256:ca79146ee421b259f8131f153102220b84d1a5e6fb9c8aed13b3badfd1796de6", size = 246191, upload-time = "2025-07-27T14:11:47.093Z" }, + { url = "https://files.pythonhosted.org/packages/62/0c/75345895013b83f7afe92ec595e15a9a525ede17491677ceebb2ba5c3d85/coverage-7.10.1-cp312-cp312-musllinux_1_2_x86_64.whl", hash = "sha256:2b225a06d227f23f386fdc0eab471506d9e644be699424814acc7d114595495f", size = 247400, upload-time = "2025-07-27T14:11:48.643Z" }, + { url = "https://files.pythonhosted.org/packages/e2/a9/98b268cfc5619ef9df1d5d34fee408ecb1542d9fd43d467e5c2f28668cd4/coverage-7.10.1-cp312-cp312-win32.whl", hash = "sha256:5ba9a8770effec5baaaab1567be916c87d8eea0c9ad11253722d86874d885eca", size = 217338, upload-time = "2025-07-27T14:11:50.258Z" }, + { url = "https://files.pythonhosted.org/packages/fe/31/22a5440e4d1451f253c5cd69fdcead65e92ef08cd4ec237b8756dc0b20a7/coverage-7.10.1-cp312-cp312-win_amd64.whl", hash = "sha256:9eb245a8d8dd0ad73b4062135a251ec55086fbc2c42e0eb9725a9b553fba18a3", size = 218125, upload-time = "2025-07-27T14:11:52.034Z" }, + { url = "https://files.pythonhosted.org/packages/d6/2b/40d9f0ce7ee839f08a43c5bfc9d05cec28aaa7c9785837247f96cbe490b9/coverage-7.10.1-cp312-cp312-win_arm64.whl", hash = "sha256:7718060dd4434cc719803a5e526838a5d66e4efa5dc46d2b25c21965a9c6fcc4", size = 216523, upload-time = "2025-07-27T14:11:53.965Z" }, + { url = "https://files.pythonhosted.org/packages/ef/72/135ff5fef09b1ffe78dbe6fcf1e16b2e564cd35faeacf3d63d60d887f12d/coverage-7.10.1-cp313-cp313-macosx_10_13_x86_64.whl", hash = "sha256:ebb08d0867c5a25dffa4823377292a0ffd7aaafb218b5d4e2e106378b1061e39", size = 214960, upload-time = "2025-07-27T14:11:55.959Z" }, + { url = "https://files.pythonhosted.org/packages/b1/aa/73a5d1a6fc08ca709a8177825616aa95ee6bf34d522517c2595484a3e6c9/coverage-7.10.1-cp313-cp313-macosx_11_0_arm64.whl", hash = "sha256:f32a95a83c2e17422f67af922a89422cd24c6fa94041f083dd0bb4f6057d0bc7", size = 215220, upload-time = "2025-07-27T14:11:57.899Z" }, + { url = "https://files.pythonhosted.org/packages/8d/40/3124fdd45ed3772a42fc73ca41c091699b38a2c3bd4f9cb564162378e8b6/coverage-7.10.1-cp313-cp313-manylinux1_i686.manylinux_2_28_i686.manylinux_2_5_i686.whl", hash = "sha256:c4c746d11c8aba4b9f58ca8bfc6fbfd0da4efe7960ae5540d1a1b13655ee8892", size = 245772, upload-time = "2025-07-27T14:12:00.422Z" }, + { url = "https://files.pythonhosted.org/packages/42/62/a77b254822efa8c12ad59e8039f2bc3df56dc162ebda55e1943e35ba31a5/coverage-7.10.1-cp313-cp313-manylinux1_x86_64.manylinux_2_28_x86_64.manylinux_2_5_x86_64.whl", hash = "sha256:7f39edd52c23e5c7ed94e0e4bf088928029edf86ef10b95413e5ea670c5e92d7", size = 248116, upload-time = "2025-07-27T14:12:03.099Z" }, + { url = "https://files.pythonhosted.org/packages/1d/01/8101f062f472a3a6205b458d18ef0444a63ae5d36a8a5ed5dd0f6167f4db/coverage-7.10.1-cp313-cp313-manylinux2014_aarch64.manylinux_2_17_aarch64.manylinux_2_28_aarch64.whl", hash = "sha256:ab6e19b684981d0cd968906e293d5628e89faacb27977c92f3600b201926b994", size = 249554, upload-time = "2025-07-27T14:12:04.668Z" }, + { url = "https://files.pythonhosted.org/packages/8f/7b/e51bc61573e71ff7275a4f167aecbd16cb010aefdf54bcd8b0a133391263/coverage-7.10.1-cp313-cp313-musllinux_1_2_aarch64.whl", hash = "sha256:5121d8cf0eacb16133501455d216bb5f99899ae2f52d394fe45d59229e6611d0", size = 247766, upload-time = "2025-07-27T14:12:06.234Z" }, + { url = "https://files.pythonhosted.org/packages/4b/71/1c96d66a51d4204a9d6d12df53c4071d87e110941a2a1fe94693192262f5/coverage-7.10.1-cp313-cp313-musllinux_1_2_i686.whl", hash = "sha256:df1c742ca6f46a6f6cbcaef9ac694dc2cb1260d30a6a2f5c68c5f5bcfee1cfd7", size = 245735, upload-time = "2025-07-27T14:12:08.305Z" }, + { url = "https://files.pythonhosted.org/packages/13/d5/efbc2ac4d35ae2f22ef6df2ca084c60e13bd9378be68655e3268c80349ab/coverage-7.10.1-cp313-cp313-musllinux_1_2_x86_64.whl", hash = "sha256:40f9a38676f9c073bf4b9194707aa1eb97dca0e22cc3766d83879d72500132c7", size = 247118, upload-time = "2025-07-27T14:12:09.903Z" }, + { url = "https://files.pythonhosted.org/packages/d1/22/073848352bec28ca65f2b6816b892fcf9a31abbef07b868487ad15dd55f1/coverage-7.10.1-cp313-cp313-win32.whl", hash = "sha256:2348631f049e884839553b9974f0821d39241c6ffb01a418efce434f7eba0fe7", size = 217381, upload-time = "2025-07-27T14:12:11.535Z" }, + { url = "https://files.pythonhosted.org/packages/b7/df/df6a0ff33b042f000089bd11b6bb034bab073e2ab64a56e78ed882cba55d/coverage-7.10.1-cp313-cp313-win_amd64.whl", hash = "sha256:4072b31361b0d6d23f750c524f694e1a417c1220a30d3ef02741eed28520c48e", size = 218152, upload-time = "2025-07-27T14:12:13.182Z" }, + { url = "https://files.pythonhosted.org/packages/30/e3/5085ca849a40ed6b47cdb8f65471c2f754e19390b5a12fa8abd25cbfaa8f/coverage-7.10.1-cp313-cp313-win_arm64.whl", hash = "sha256:3e31dfb8271937cab9425f19259b1b1d1f556790e98eb266009e7a61d337b6d4", size = 216559, upload-time = "2025-07-27T14:12:14.807Z" }, + { url = "https://files.pythonhosted.org/packages/cc/93/58714efbfdeb547909feaabe1d67b2bdd59f0597060271b9c548d5efb529/coverage-7.10.1-cp313-cp313t-macosx_10_13_x86_64.whl", hash = "sha256:1c4f679c6b573a5257af6012f167a45be4c749c9925fd44d5178fd641ad8bf72", size = 215677, upload-time = "2025-07-27T14:12:16.68Z" }, + { url = "https://files.pythonhosted.org/packages/c0/0c/18eaa5897e7e8cb3f8c45e563e23e8a85686b4585e29d53cacb6bc9cb340/coverage-7.10.1-cp313-cp313t-macosx_11_0_arm64.whl", hash = "sha256:871ebe8143da284bd77b84a9136200bd638be253618765d21a1fce71006d94af", size = 215899, upload-time = "2025-07-27T14:12:18.758Z" }, + { url = "https://files.pythonhosted.org/packages/84/c1/9d1affacc3c75b5a184c140377701bbf14fc94619367f07a269cd9e4fed6/coverage-7.10.1-cp313-cp313t-manylinux1_i686.manylinux_2_28_i686.manylinux_2_5_i686.whl", hash = "sha256:998c4751dabf7d29b30594af416e4bf5091f11f92a8d88eb1512c7ba136d1ed7", size = 257140, upload-time = "2025-07-27T14:12:20.357Z" }, + { url = "https://files.pythonhosted.org/packages/3d/0f/339bc6b8fa968c346df346068cca1f24bdea2ddfa93bb3dc2e7749730962/coverage-7.10.1-cp313-cp313t-manylinux1_x86_64.manylinux_2_28_x86_64.manylinux_2_5_x86_64.whl", hash = "sha256:780f750a25e7749d0af6b3631759c2c14f45de209f3faaa2398312d1c7a22759", size = 259005, upload-time = "2025-07-27T14:12:22.007Z" }, + { url = "https://files.pythonhosted.org/packages/c8/22/89390864b92ea7c909079939b71baba7e5b42a76bf327c1d615bd829ba57/coverage-7.10.1-cp313-cp313t-manylinux2014_aarch64.manylinux_2_17_aarch64.manylinux_2_28_aarch64.whl", hash = "sha256:590bdba9445df4763bdbebc928d8182f094c1f3947a8dc0fc82ef014dbdd8324", size = 261143, upload-time = "2025-07-27T14:12:23.746Z" }, + { url = "https://files.pythonhosted.org/packages/2c/56/3d04d89017c0c41c7a71bd69b29699d919b6bbf2649b8b2091240b97dd6a/coverage-7.10.1-cp313-cp313t-musllinux_1_2_aarch64.whl", hash = "sha256:9b2df80cb6a2af86d300e70acb82e9b79dab2c1e6971e44b78dbfc1a1e736b53", size = 258735, upload-time = "2025-07-27T14:12:25.73Z" }, + { url = "https://files.pythonhosted.org/packages/cb/40/312252c8afa5ca781063a09d931f4b9409dc91526cd0b5a2b84143ffafa2/coverage-7.10.1-cp313-cp313t-musllinux_1_2_i686.whl", hash = "sha256:d6a558c2725bfb6337bf57c1cd366c13798bfd3bfc9e3dd1f4a6f6fc95a4605f", size = 256871, upload-time = "2025-07-27T14:12:27.767Z" }, + { url = "https://files.pythonhosted.org/packages/1f/2b/564947d5dede068215aaddb9e05638aeac079685101462218229ddea9113/coverage-7.10.1-cp313-cp313t-musllinux_1_2_x86_64.whl", hash = "sha256:e6150d167f32f2a54690e572e0a4c90296fb000a18e9b26ab81a6489e24e78dd", size = 257692, upload-time = "2025-07-27T14:12:29.347Z" }, + { url = "https://files.pythonhosted.org/packages/93/1b/c8a867ade85cb26d802aea2209b9c2c80613b9c122baa8c8ecea6799648f/coverage-7.10.1-cp313-cp313t-win32.whl", hash = "sha256:d946a0c067aa88be4a593aad1236493313bafaa27e2a2080bfe88db827972f3c", size = 218059, upload-time = "2025-07-27T14:12:31.076Z" }, + { url = "https://files.pythonhosted.org/packages/a1/fe/cd4ab40570ae83a516bf5e754ea4388aeedd48e660e40c50b7713ed4f930/coverage-7.10.1-cp313-cp313t-win_amd64.whl", hash = "sha256:e37c72eaccdd5ed1130c67a92ad38f5b2af66eeff7b0abe29534225db2ef7b18", size = 219150, upload-time = "2025-07-27T14:12:32.746Z" }, + { url = "https://files.pythonhosted.org/packages/8d/16/6e5ed5854be6d70d0c39e9cb9dd2449f2c8c34455534c32c1a508c7dbdb5/coverage-7.10.1-cp313-cp313t-win_arm64.whl", hash = "sha256:89ec0ffc215c590c732918c95cd02b55c7d0f569d76b90bb1a5e78aa340618e4", size = 217014, upload-time = "2025-07-27T14:12:34.406Z" }, + { url = "https://files.pythonhosted.org/packages/c3/98/9b19d4aebfb31552596a7ac55cd678c3ebd74be6153888c56d39e23f376b/coverage-7.10.1-cp39-cp39-macosx_10_9_x86_64.whl", hash = "sha256:57b6e8789cbefdef0667e4a94f8ffa40f9402cee5fc3b8e4274c894737890145", size = 214625, upload-time = "2025-07-27T14:13:18.661Z" }, + { url = "https://files.pythonhosted.org/packages/ea/24/e2391365d0940fc757666ecd7572aced0963e859188e57169bd18fba5d29/coverage-7.10.1-cp39-cp39-macosx_11_0_arm64.whl", hash = "sha256:85b22a9cce00cb03156334da67eb86e29f22b5e93876d0dd6a98646bb8a74e53", size = 215001, upload-time = "2025-07-27T14:13:20.478Z" }, + { url = "https://files.pythonhosted.org/packages/ce/0c/c1740d7fac57cb0c54cd04786f3dbfc4d0bfa0a6cc9f19f69c170ae67f6a/coverage-7.10.1-cp39-cp39-manylinux1_i686.manylinux_2_28_i686.manylinux_2_5_i686.whl", hash = "sha256:97b6983a2f9c76d345ca395e843a049390b39652984e4a3b45b2442fa733992d", size = 241082, upload-time = "2025-07-27T14:13:22.318Z" }, + { url = "https://files.pythonhosted.org/packages/45/b5/965b26315ecae6455bc40f1de8563a57e82cb31af8af2e2844655cf400f1/coverage-7.10.1-cp39-cp39-manylinux1_x86_64.manylinux_2_28_x86_64.manylinux_2_5_x86_64.whl", hash = "sha256:ddf2a63b91399a1c2f88f40bc1705d5a7777e31c7e9eb27c602280f477b582ba", size = 242979, upload-time = "2025-07-27T14:13:24.123Z" }, + { url = "https://files.pythonhosted.org/packages/0b/48/80c5c6a5a792348ba71b2315809c5a2daab2981564e31d1f3cd092c8cd97/coverage-7.10.1-cp39-cp39-manylinux2014_aarch64.manylinux_2_17_aarch64.manylinux_2_28_aarch64.whl", hash = "sha256:47ab6dbbc31a14c5486420c2c1077fcae692097f673cf5be9ddbec8cdaa4cdbc", size = 244550, upload-time = "2025-07-27T14:13:25.9Z" }, + { url = "https://files.pythonhosted.org/packages/ab/73/332667b91cfa3c27130026af220fca478b07e913e96932d12c100e1a7314/coverage-7.10.1-cp39-cp39-musllinux_1_2_aarch64.whl", hash = "sha256:21eb7d8b45d3700e7c2936a736f732794c47615a20f739f4133d5230a6512a88", size = 242482, upload-time = "2025-07-27T14:13:28.121Z" }, + { url = "https://files.pythonhosted.org/packages/ae/e6/24c9120ad91314be82f793a2a174fe738583a716264b1523fe95ad731cb3/coverage-7.10.1-cp39-cp39-musllinux_1_2_i686.whl", hash = "sha256:283005bb4d98ae33e45f2861cd2cde6a21878661c9ad49697f6951b358a0379b", size = 240717, upload-time = "2025-07-27T14:13:29.93Z" }, + { url = "https://files.pythonhosted.org/packages/94/9a/21a4d5135eb4b8064fd9bf8a8eb8d4465982611d2d7fb569d6c2edf38f04/coverage-7.10.1-cp39-cp39-musllinux_1_2_x86_64.whl", hash = "sha256:fefe31d61d02a8b2c419700b1fade9784a43d726de26495f243b663cd9fe1513", size = 241669, upload-time = "2025-07-27T14:13:31.726Z" }, + { url = "https://files.pythonhosted.org/packages/3f/1d/e4ce3b23f8b8b0fe196c436499414b1af06b9e1610cefedaaad37c9668d0/coverage-7.10.1-cp39-cp39-win32.whl", hash = "sha256:e8ab8e4c7ec7f8a55ac05b5b715a051d74eac62511c6d96d5bb79aaafa3b04cf", size = 217138, upload-time = "2025-07-27T14:13:33.481Z" }, + { url = "https://files.pythonhosted.org/packages/d3/c6/b7fcf41c341e686610fdf9ef1a4b29045015f36d3eecd17679874e4739ed/coverage-7.10.1-cp39-cp39-win_amd64.whl", hash = "sha256:c36baa0ecde742784aa76c2b816466d3ea888d5297fda0edbac1bf48fa94688a", size = 218035, upload-time = "2025-07-27T14:13:35.337Z" }, + { url = "https://files.pythonhosted.org/packages/0f/64/922899cff2c0fd3496be83fa8b81230f5a8d82a2ad30f98370b133c2c83b/coverage-7.10.1-py3-none-any.whl", hash = "sha256:fa2a258aa6bf188eb9a8948f7102a83da7c430a0dce918dbd8b60ef8fcb772d7", size = 206597, upload-time = "2025-07-27T14:13:37.221Z" }, +] + +[package.optional-dependencies] +toml = [ + { name = "tomli", marker = "python_full_version <= '3.11'" }, +] + +[[package]] +name = "deprecation" +version = "2.1.0" +source = { registry = "https://pypi.org/simple" } +dependencies = [ + { name = "packaging" }, +] +sdist = { url = "https://files.pythonhosted.org/packages/5a/d3/8ae2869247df154b64c1884d7346d412fed0c49df84db635aab2d1c40e62/deprecation-2.1.0.tar.gz", hash = "sha256:72b3bde64e5d778694b0cf68178aed03d15e15477116add3fb773e581f9518ff", size = 173788, upload-time = "2020-04-20T14:23:38.738Z" } +wheels = [ + { url = "https://files.pythonhosted.org/packages/02/c3/253a89ee03fc9b9682f1541728eb66db7db22148cd94f89ab22528cd1e1b/deprecation-2.1.0-py2.py3-none-any.whl", hash = "sha256:a10811591210e1fb0e768a8c25517cabeabcba6f0bf96564f8ff45189f90b14a", size = 11178, upload-time = "2020-04-20T14:23:36.581Z" }, +] + +[[package]] +name = "distlib" +version = "0.4.0" +source = { registry = "https://pypi.org/simple" } +sdist = { url = "https://files.pythonhosted.org/packages/96/8e/709914eb2b5749865801041647dc7f4e6d00b549cfe88b65ca192995f07c/distlib-0.4.0.tar.gz", hash = "sha256:feec40075be03a04501a973d81f633735b4b69f98b05450592310c0f401a4e0d", size = 614605, upload-time = "2025-07-17T16:52:00.465Z" } +wheels = [ + { url = "https://files.pythonhosted.org/packages/33/6b/e0547afaf41bf2c42e52430072fa5658766e3d65bd4b03a563d1b6336f57/distlib-0.4.0-py2.py3-none-any.whl", hash = "sha256:9659f7d87e46584a30b5780e43ac7a2143098441670ff0a49d5f9034c54a6c16", size = 469047, upload-time = "2025-07-17T16:51:58.613Z" }, +] + +[[package]] +name = "docker" +version = "7.1.0" +source = { registry = "https://pypi.org/simple" } +dependencies = [ + { name = "pywin32", marker = "sys_platform == 'win32'" }, + { name = "requests" }, + { name = "urllib3" }, +] +sdist = { url = "https://files.pythonhosted.org/packages/91/9b/4a2ea29aeba62471211598dac5d96825bb49348fa07e906ea930394a83ce/docker-7.1.0.tar.gz", hash = "sha256:ad8c70e6e3f8926cb8a92619b832b4ea5299e2831c14284663184e200546fa6c", size = 117834, upload-time = "2024-05-23T11:13:57.216Z" } +wheels = [ + { url = "https://files.pythonhosted.org/packages/e3/26/57c6fb270950d476074c087527a558ccb6f4436657314bfb6cdf484114c4/docker-7.1.0-py3-none-any.whl", hash = "sha256:c96b93b7f0a746f9e77d325bcfb87422a3d8bd4f03136ae8a85b37f1898d5fc0", size = 147774, upload-time = "2024-05-23T11:13:55.01Z" }, +] + +[[package]] +name = "exceptiongroup" +version = "1.3.0" +source = { registry = "https://pypi.org/simple" } +dependencies = [ + { name = "typing-extensions", marker = "python_full_version < '3.13'" }, +] +sdist = { url = "https://files.pythonhosted.org/packages/0b/9f/a65090624ecf468cdca03533906e7c69ed7588582240cfe7cc9e770b50eb/exceptiongroup-1.3.0.tar.gz", hash = "sha256:b241f5885f560bc56a59ee63ca4c6a8bfa46ae4ad651af316d4e81817bb9fd88", size = 29749, upload-time = "2025-05-10T17:42:51.123Z" } +wheels = [ + { url = "https://files.pythonhosted.org/packages/36/f4/c6e662dade71f56cd2f3735141b265c3c79293c109549c1e6933b0651ffc/exceptiongroup-1.3.0-py3-none-any.whl", hash = "sha256:4d111e6e0c13d0644cad6ddaa7ed0261a0b36971f6d23e7ec9b4b9097da78a10", size = 16674, upload-time = "2025-05-10T17:42:49.33Z" }, +] + +[[package]] +name = "filelock" +version = "3.18.0" +source = { registry = "https://pypi.org/simple" } +sdist = { url = "https://files.pythonhosted.org/packages/0a/10/c23352565a6544bdc5353e0b15fc1c563352101f30e24bf500207a54df9a/filelock-3.18.0.tar.gz", hash = "sha256:adbc88eabb99d2fec8c9c1b229b171f18afa655400173ddc653d5d01501fb9f2", size = 18075, upload-time = "2025-03-14T07:11:40.47Z" } +wheels = [ + { url = "https://files.pythonhosted.org/packages/4d/36/2a115987e2d8c300a974597416d9de88f2444426de9571f4b59b2cca3acc/filelock-3.18.0-py3-none-any.whl", hash = "sha256:c401f4f8377c4464e6db25fff06205fd89bdd83b65eb0488ed1b160f780e21de", size = 16215, upload-time = "2025-03-14T07:11:39.145Z" }, +] + +[[package]] +name = "ghp-import" +version = "2.1.0" +source = { registry = "https://pypi.org/simple" } +dependencies = [ + { name = "python-dateutil" }, +] +sdist = { url = "https://files.pythonhosted.org/packages/d9/29/d40217cbe2f6b1359e00c6c307bb3fc876ba74068cbab3dde77f03ca0dc4/ghp-import-2.1.0.tar.gz", hash = "sha256:9c535c4c61193c2df8871222567d7fd7e5014d835f97dc7b7439069e2413d343", size = 10943, upload-time = "2022-05-02T15:47:16.11Z" } +wheels = [ + { url = "https://files.pythonhosted.org/packages/f7/ec/67fbef5d497f86283db54c22eec6f6140243aae73265799baaaa19cd17fb/ghp_import-2.1.0-py3-none-any.whl", hash = "sha256:8337dd7b50877f163d4c0289bc1f1c7f127550241988d568c1db512c4324a619", size = 11034, upload-time = "2022-05-02T15:47:14.552Z" }, +] + +[[package]] +name = "idna" +version = "3.10" +source = { registry = "https://pypi.org/simple" } +sdist = { url = "https://files.pythonhosted.org/packages/f1/70/7703c29685631f5a7590aa73f1f1d3fa9a380e654b86af429e0934a32f7d/idna-3.10.tar.gz", hash = "sha256:12f65c9b470abda6dc35cf8e63cc574b1c52b11df2c86030af0ac09b01b13ea9", size = 190490, upload-time = "2024-09-15T18:07:39.745Z" } +wheels = [ + { url = "https://files.pythonhosted.org/packages/76/c6/c88e154df9c4e1a2a66ccf0005a88dfb2650c1dffb6f5ce603dfbd452ce3/idna-3.10-py3-none-any.whl", hash = "sha256:946d195a0d259cbba61165e88e65941f16e9b36ea6ddb97f00452bae8b1287d3", size = 70442, upload-time = "2024-09-15T18:07:37.964Z" }, +] + +[[package]] +name = "importlib-metadata" +version = "8.7.0" +source = { registry = "https://pypi.org/simple" } +dependencies = [ + { name = "zipp", marker = "python_full_version < '3.10'" }, +] +sdist = { url = "https://files.pythonhosted.org/packages/76/66/650a33bd90f786193e4de4b3ad86ea60b53c89b669a5c7be931fac31cdb0/importlib_metadata-8.7.0.tar.gz", hash = "sha256:d13b81ad223b890aa16c5471f2ac3056cf76c5f10f82d6f9292f0b415f389000", size = 56641, upload-time = "2025-04-27T15:29:01.736Z" } +wheels = [ + { url = "https://files.pythonhosted.org/packages/20/b0/36bd937216ec521246249be3bf9855081de4c5e06a0c9b4219dbeda50373/importlib_metadata-8.7.0-py3-none-any.whl", hash = "sha256:e5dd1551894c77868a30651cef00984d50e1002d06942a7101d34870c5f02afd", size = 27656, upload-time = "2025-04-27T15:29:00.214Z" }, +] + +[[package]] +name = "iniconfig" +version = "2.1.0" +source = { registry = "https://pypi.org/simple" } +sdist = { url = "https://files.pythonhosted.org/packages/f2/97/ebf4da567aa6827c909642694d71c9fcf53e5b504f2d96afea02718862f3/iniconfig-2.1.0.tar.gz", hash = "sha256:3abbd2e30b36733fee78f9c7f7308f2d0050e88f0087fd25c2645f63c773e1c7", size = 4793, upload-time = "2025-03-19T20:09:59.721Z" } +wheels = [ + { url = "https://files.pythonhosted.org/packages/2c/e1/e6716421ea10d38022b952c159d5161ca1193197fb744506875fbb87ea7b/iniconfig-2.1.0-py3-none-any.whl", hash = "sha256:9deba5723312380e77435581c6bf4935c94cbfab9b1ed33ef8d238ea168eb760", size = 6050, upload-time = "2025-03-19T20:10:01.071Z" }, +] + +[[package]] +name = "jinja2" +version = "3.1.6" +source = { registry = "https://pypi.org/simple" } +dependencies = [ + { name = "markupsafe" }, +] +sdist = { url = "https://files.pythonhosted.org/packages/df/bf/f7da0350254c0ed7c72f3e33cef02e048281fec7ecec5f032d4aac52226b/jinja2-3.1.6.tar.gz", hash = "sha256:0137fb05990d35f1275a587e9aee6d56da821fc83491a0fb838183be43f66d6d", size = 245115, upload-time = "2025-03-05T20:05:02.478Z" } +wheels = [ + { url = "https://files.pythonhosted.org/packages/62/a1/3d680cbfd5f4b8f15abc1d571870c5fc3e594bb582bc3b64ea099db13e56/jinja2-3.1.6-py3-none-any.whl", hash = "sha256:85ece4451f492d0c13c5dd7c13a64681a86afae63a5f347908daf103ce6d2f67", size = 134899, upload-time = "2025-03-05T20:05:00.369Z" }, +] + +[[package]] +name = "markdown" +version = "3.8.2" +source = { registry = "https://pypi.org/simple" } +dependencies = [ + { name = "importlib-metadata", marker = "python_full_version < '3.10'" }, +] +sdist = { url = "https://files.pythonhosted.org/packages/d7/c2/4ab49206c17f75cb08d6311171f2d65798988db4360c4d1485bd0eedd67c/markdown-3.8.2.tar.gz", hash = "sha256:247b9a70dd12e27f67431ce62523e675b866d254f900c4fe75ce3dda62237c45", size = 362071, upload-time = "2025-06-19T17:12:44.483Z" } +wheels = [ + { url = "https://files.pythonhosted.org/packages/96/2b/34cc11786bc00d0f04d0f5fdc3a2b1ae0b6239eef72d3d345805f9ad92a1/markdown-3.8.2-py3-none-any.whl", hash = "sha256:5c83764dbd4e00bdd94d85a19b8d55ccca20fe35b2e678a1422b380324dd5f24", size = 106827, upload-time = "2025-06-19T17:12:42.994Z" }, +] + +[[package]] +name = "markdown-include" +version = "0.8.1" +source = { registry = "https://pypi.org/simple" } +dependencies = [ + { name = "markdown" }, +] +sdist = { url = "https://files.pythonhosted.org/packages/ad/d8/66bf162fe6c1adb619f94a6da599323eecacf15b6d57469d0fd0421c10df/markdown-include-0.8.1.tar.gz", hash = "sha256:1d0623e0fc2757c38d35df53752768356162284259d259c486b4ab6285cdbbe3", size = 21873, upload-time = "2023-02-07T09:47:26.608Z" } +wheels = [ + { url = "https://files.pythonhosted.org/packages/d7/e2/c4d20b21a05fe0fee571649cebc05f7f72e80b1a743f932e7326125e6c9e/markdown_include-0.8.1-py3-none-any.whl", hash = "sha256:32f0635b9cfef46997b307e2430022852529f7a5b87c0075c504283e7cc7db53", size = 18837, upload-time = "2023-02-07T09:47:25.03Z" }, +] + +[[package]] +name = "markupsafe" +version = "3.0.2" +source = { registry = "https://pypi.org/simple" } +sdist = { url = "https://files.pythonhosted.org/packages/b2/97/5d42485e71dfc078108a86d6de8fa46db44a1a9295e89c5d6d4a06e23a62/markupsafe-3.0.2.tar.gz", hash = "sha256:ee55d3edf80167e48ea11a923c7386f4669df67d7994554387f84e7d8b0a2bf0", size = 20537, upload-time = "2024-10-18T15:21:54.129Z" } +wheels = [ + { url = "https://files.pythonhosted.org/packages/04/90/d08277ce111dd22f77149fd1a5d4653eeb3b3eaacbdfcbae5afb2600eebd/MarkupSafe-3.0.2-cp310-cp310-macosx_10_9_universal2.whl", hash = "sha256:7e94c425039cde14257288fd61dcfb01963e658efbc0ff54f5306b06054700f8", size = 14357, upload-time = "2024-10-18T15:20:51.44Z" }, + { url = "https://files.pythonhosted.org/packages/04/e1/6e2194baeae0bca1fae6629dc0cbbb968d4d941469cbab11a3872edff374/MarkupSafe-3.0.2-cp310-cp310-macosx_11_0_arm64.whl", hash = "sha256:9e2d922824181480953426608b81967de705c3cef4d1af983af849d7bd619158", size = 12393, upload-time = "2024-10-18T15:20:52.426Z" }, + { url = "https://files.pythonhosted.org/packages/1d/69/35fa85a8ece0a437493dc61ce0bb6d459dcba482c34197e3efc829aa357f/MarkupSafe-3.0.2-cp310-cp310-manylinux_2_17_aarch64.manylinux2014_aarch64.whl", hash = "sha256:38a9ef736c01fccdd6600705b09dc574584b89bea478200c5fbf112a6b0d5579", size = 21732, upload-time = "2024-10-18T15:20:53.578Z" }, + { url = "https://files.pythonhosted.org/packages/22/35/137da042dfb4720b638d2937c38a9c2df83fe32d20e8c8f3185dbfef05f7/MarkupSafe-3.0.2-cp310-cp310-manylinux_2_17_x86_64.manylinux2014_x86_64.whl", hash = "sha256:bbcb445fa71794da8f178f0f6d66789a28d7319071af7a496d4d507ed566270d", size = 20866, upload-time = "2024-10-18T15:20:55.06Z" }, + { url = "https://files.pythonhosted.org/packages/29/28/6d029a903727a1b62edb51863232152fd335d602def598dade38996887f0/MarkupSafe-3.0.2-cp310-cp310-manylinux_2_5_i686.manylinux1_i686.manylinux_2_17_i686.manylinux2014_i686.whl", hash = "sha256:57cb5a3cf367aeb1d316576250f65edec5bb3be939e9247ae594b4bcbc317dfb", size = 20964, upload-time = "2024-10-18T15:20:55.906Z" }, + { url = "https://files.pythonhosted.org/packages/cc/cd/07438f95f83e8bc028279909d9c9bd39e24149b0d60053a97b2bc4f8aa51/MarkupSafe-3.0.2-cp310-cp310-musllinux_1_2_aarch64.whl", hash = "sha256:3809ede931876f5b2ec92eef964286840ed3540dadf803dd570c3b7e13141a3b", size = 21977, upload-time = "2024-10-18T15:20:57.189Z" }, + { url = "https://files.pythonhosted.org/packages/29/01/84b57395b4cc062f9c4c55ce0df7d3108ca32397299d9df00fedd9117d3d/MarkupSafe-3.0.2-cp310-cp310-musllinux_1_2_i686.whl", hash = "sha256:e07c3764494e3776c602c1e78e298937c3315ccc9043ead7e685b7f2b8d47b3c", size = 21366, upload-time = "2024-10-18T15:20:58.235Z" }, + { url = "https://files.pythonhosted.org/packages/bd/6e/61ebf08d8940553afff20d1fb1ba7294b6f8d279df9fd0c0db911b4bbcfd/MarkupSafe-3.0.2-cp310-cp310-musllinux_1_2_x86_64.whl", hash = "sha256:b424c77b206d63d500bcb69fa55ed8d0e6a3774056bdc4839fc9298a7edca171", size = 21091, upload-time = "2024-10-18T15:20:59.235Z" }, + { url = "https://files.pythonhosted.org/packages/11/23/ffbf53694e8c94ebd1e7e491de185124277964344733c45481f32ede2499/MarkupSafe-3.0.2-cp310-cp310-win32.whl", hash = "sha256:fcabf5ff6eea076f859677f5f0b6b5c1a51e70a376b0579e0eadef8db48c6b50", size = 15065, upload-time = "2024-10-18T15:21:00.307Z" }, + { url = "https://files.pythonhosted.org/packages/44/06/e7175d06dd6e9172d4a69a72592cb3f7a996a9c396eee29082826449bbc3/MarkupSafe-3.0.2-cp310-cp310-win_amd64.whl", hash = "sha256:6af100e168aa82a50e186c82875a5893c5597a0c1ccdb0d8b40240b1f28b969a", size = 15514, upload-time = "2024-10-18T15:21:01.122Z" }, + { url = "https://files.pythonhosted.org/packages/6b/28/bbf83e3f76936960b850435576dd5e67034e200469571be53f69174a2dfd/MarkupSafe-3.0.2-cp311-cp311-macosx_10_9_universal2.whl", hash = "sha256:9025b4018f3a1314059769c7bf15441064b2207cb3f065e6ea1e7359cb46db9d", size = 14353, upload-time = "2024-10-18T15:21:02.187Z" }, + { url = "https://files.pythonhosted.org/packages/6c/30/316d194b093cde57d448a4c3209f22e3046c5bb2fb0820b118292b334be7/MarkupSafe-3.0.2-cp311-cp311-macosx_11_0_arm64.whl", hash = "sha256:93335ca3812df2f366e80509ae119189886b0f3c2b81325d39efdb84a1e2ae93", size = 12392, upload-time = "2024-10-18T15:21:02.941Z" }, + { url = "https://files.pythonhosted.org/packages/f2/96/9cdafba8445d3a53cae530aaf83c38ec64c4d5427d975c974084af5bc5d2/MarkupSafe-3.0.2-cp311-cp311-manylinux_2_17_aarch64.manylinux2014_aarch64.whl", hash = "sha256:2cb8438c3cbb25e220c2ab33bb226559e7afb3baec11c4f218ffa7308603c832", size = 23984, upload-time = "2024-10-18T15:21:03.953Z" }, + { url = "https://files.pythonhosted.org/packages/f1/a4/aefb044a2cd8d7334c8a47d3fb2c9f328ac48cb349468cc31c20b539305f/MarkupSafe-3.0.2-cp311-cp311-manylinux_2_17_x86_64.manylinux2014_x86_64.whl", hash = "sha256:a123e330ef0853c6e822384873bef7507557d8e4a082961e1defa947aa59ba84", size = 23120, upload-time = "2024-10-18T15:21:06.495Z" }, + { url = "https://files.pythonhosted.org/packages/8d/21/5e4851379f88f3fad1de30361db501300d4f07bcad047d3cb0449fc51f8c/MarkupSafe-3.0.2-cp311-cp311-manylinux_2_5_i686.manylinux1_i686.manylinux_2_17_i686.manylinux2014_i686.whl", hash = "sha256:1e084f686b92e5b83186b07e8a17fc09e38fff551f3602b249881fec658d3eca", size = 23032, upload-time = "2024-10-18T15:21:07.295Z" }, + { url = "https://files.pythonhosted.org/packages/00/7b/e92c64e079b2d0d7ddf69899c98842f3f9a60a1ae72657c89ce2655c999d/MarkupSafe-3.0.2-cp311-cp311-musllinux_1_2_aarch64.whl", hash = "sha256:d8213e09c917a951de9d09ecee036d5c7d36cb6cb7dbaece4c71a60d79fb9798", size = 24057, upload-time = "2024-10-18T15:21:08.073Z" }, + { url = "https://files.pythonhosted.org/packages/f9/ac/46f960ca323037caa0a10662ef97d0a4728e890334fc156b9f9e52bcc4ca/MarkupSafe-3.0.2-cp311-cp311-musllinux_1_2_i686.whl", hash = "sha256:5b02fb34468b6aaa40dfc198d813a641e3a63b98c2b05a16b9f80b7ec314185e", size = 23359, upload-time = "2024-10-18T15:21:09.318Z" }, + { url = "https://files.pythonhosted.org/packages/69/84/83439e16197337b8b14b6a5b9c2105fff81d42c2a7c5b58ac7b62ee2c3b1/MarkupSafe-3.0.2-cp311-cp311-musllinux_1_2_x86_64.whl", hash = "sha256:0bff5e0ae4ef2e1ae4fdf2dfd5b76c75e5c2fa4132d05fc1b0dabcd20c7e28c4", size = 23306, upload-time = "2024-10-18T15:21:10.185Z" }, + { url = "https://files.pythonhosted.org/packages/9a/34/a15aa69f01e2181ed8d2b685c0d2f6655d5cca2c4db0ddea775e631918cd/MarkupSafe-3.0.2-cp311-cp311-win32.whl", hash = "sha256:6c89876f41da747c8d3677a2b540fb32ef5715f97b66eeb0c6b66f5e3ef6f59d", size = 15094, upload-time = "2024-10-18T15:21:11.005Z" }, + { url = "https://files.pythonhosted.org/packages/da/b8/3a3bd761922d416f3dc5d00bfbed11f66b1ab89a0c2b6e887240a30b0f6b/MarkupSafe-3.0.2-cp311-cp311-win_amd64.whl", hash = "sha256:70a87b411535ccad5ef2f1df5136506a10775d267e197e4cf531ced10537bd6b", size = 15521, upload-time = "2024-10-18T15:21:12.911Z" }, + { url = "https://files.pythonhosted.org/packages/22/09/d1f21434c97fc42f09d290cbb6350d44eb12f09cc62c9476effdb33a18aa/MarkupSafe-3.0.2-cp312-cp312-macosx_10_13_universal2.whl", hash = "sha256:9778bd8ab0a994ebf6f84c2b949e65736d5575320a17ae8984a77fab08db94cf", size = 14274, upload-time = "2024-10-18T15:21:13.777Z" }, + { url = "https://files.pythonhosted.org/packages/6b/b0/18f76bba336fa5aecf79d45dcd6c806c280ec44538b3c13671d49099fdd0/MarkupSafe-3.0.2-cp312-cp312-macosx_11_0_arm64.whl", hash = "sha256:846ade7b71e3536c4e56b386c2a47adf5741d2d8b94ec9dc3e92e5e1ee1e2225", size = 12348, upload-time = "2024-10-18T15:21:14.822Z" }, + { url = "https://files.pythonhosted.org/packages/e0/25/dd5c0f6ac1311e9b40f4af06c78efde0f3b5cbf02502f8ef9501294c425b/MarkupSafe-3.0.2-cp312-cp312-manylinux_2_17_aarch64.manylinux2014_aarch64.whl", hash = "sha256:1c99d261bd2d5f6b59325c92c73df481e05e57f19837bdca8413b9eac4bd8028", size = 24149, upload-time = "2024-10-18T15:21:15.642Z" }, + { url = "https://files.pythonhosted.org/packages/f3/f0/89e7aadfb3749d0f52234a0c8c7867877876e0a20b60e2188e9850794c17/MarkupSafe-3.0.2-cp312-cp312-manylinux_2_17_x86_64.manylinux2014_x86_64.whl", hash = "sha256:e17c96c14e19278594aa4841ec148115f9c7615a47382ecb6b82bd8fea3ab0c8", size = 23118, upload-time = "2024-10-18T15:21:17.133Z" }, + { url = "https://files.pythonhosted.org/packages/d5/da/f2eeb64c723f5e3777bc081da884b414671982008c47dcc1873d81f625b6/MarkupSafe-3.0.2-cp312-cp312-manylinux_2_5_i686.manylinux1_i686.manylinux_2_17_i686.manylinux2014_i686.whl", hash = "sha256:88416bd1e65dcea10bc7569faacb2c20ce071dd1f87539ca2ab364bf6231393c", size = 22993, upload-time = "2024-10-18T15:21:18.064Z" }, + { url = "https://files.pythonhosted.org/packages/da/0e/1f32af846df486dce7c227fe0f2398dc7e2e51d4a370508281f3c1c5cddc/MarkupSafe-3.0.2-cp312-cp312-musllinux_1_2_aarch64.whl", hash = "sha256:2181e67807fc2fa785d0592dc2d6206c019b9502410671cc905d132a92866557", size = 24178, upload-time = "2024-10-18T15:21:18.859Z" }, + { url = "https://files.pythonhosted.org/packages/c4/f6/bb3ca0532de8086cbff5f06d137064c8410d10779c4c127e0e47d17c0b71/MarkupSafe-3.0.2-cp312-cp312-musllinux_1_2_i686.whl", hash = "sha256:52305740fe773d09cffb16f8ed0427942901f00adedac82ec8b67752f58a1b22", size = 23319, upload-time = "2024-10-18T15:21:19.671Z" }, + { url = "https://files.pythonhosted.org/packages/a2/82/8be4c96ffee03c5b4a034e60a31294daf481e12c7c43ab8e34a1453ee48b/MarkupSafe-3.0.2-cp312-cp312-musllinux_1_2_x86_64.whl", hash = "sha256:ad10d3ded218f1039f11a75f8091880239651b52e9bb592ca27de44eed242a48", size = 23352, upload-time = "2024-10-18T15:21:20.971Z" }, + { url = "https://files.pythonhosted.org/packages/51/ae/97827349d3fcffee7e184bdf7f41cd6b88d9919c80f0263ba7acd1bbcb18/MarkupSafe-3.0.2-cp312-cp312-win32.whl", hash = "sha256:0f4ca02bea9a23221c0182836703cbf8930c5e9454bacce27e767509fa286a30", size = 15097, upload-time = "2024-10-18T15:21:22.646Z" }, + { url = "https://files.pythonhosted.org/packages/c1/80/a61f99dc3a936413c3ee4e1eecac96c0da5ed07ad56fd975f1a9da5bc630/MarkupSafe-3.0.2-cp312-cp312-win_amd64.whl", hash = "sha256:8e06879fc22a25ca47312fbe7c8264eb0b662f6db27cb2d3bbbc74b1df4b9b87", size = 15601, upload-time = "2024-10-18T15:21:23.499Z" }, + { url = "https://files.pythonhosted.org/packages/83/0e/67eb10a7ecc77a0c2bbe2b0235765b98d164d81600746914bebada795e97/MarkupSafe-3.0.2-cp313-cp313-macosx_10_13_universal2.whl", hash = "sha256:ba9527cdd4c926ed0760bc301f6728ef34d841f405abf9d4f959c478421e4efd", size = 14274, upload-time = "2024-10-18T15:21:24.577Z" }, + { url = "https://files.pythonhosted.org/packages/2b/6d/9409f3684d3335375d04e5f05744dfe7e9f120062c9857df4ab490a1031a/MarkupSafe-3.0.2-cp313-cp313-macosx_11_0_arm64.whl", hash = "sha256:f8b3d067f2e40fe93e1ccdd6b2e1d16c43140e76f02fb1319a05cf2b79d99430", size = 12352, upload-time = "2024-10-18T15:21:25.382Z" }, + { url = "https://files.pythonhosted.org/packages/d2/f5/6eadfcd3885ea85fe2a7c128315cc1bb7241e1987443d78c8fe712d03091/MarkupSafe-3.0.2-cp313-cp313-manylinux_2_17_aarch64.manylinux2014_aarch64.whl", hash = "sha256:569511d3b58c8791ab4c2e1285575265991e6d8f8700c7be0e88f86cb0672094", size = 24122, upload-time = "2024-10-18T15:21:26.199Z" }, + { url = "https://files.pythonhosted.org/packages/0c/91/96cf928db8236f1bfab6ce15ad070dfdd02ed88261c2afafd4b43575e9e9/MarkupSafe-3.0.2-cp313-cp313-manylinux_2_17_x86_64.manylinux2014_x86_64.whl", hash = "sha256:15ab75ef81add55874e7ab7055e9c397312385bd9ced94920f2802310c930396", size = 23085, upload-time = "2024-10-18T15:21:27.029Z" }, + { url = "https://files.pythonhosted.org/packages/c2/cf/c9d56af24d56ea04daae7ac0940232d31d5a8354f2b457c6d856b2057d69/MarkupSafe-3.0.2-cp313-cp313-manylinux_2_5_i686.manylinux1_i686.manylinux_2_17_i686.manylinux2014_i686.whl", hash = "sha256:f3818cb119498c0678015754eba762e0d61e5b52d34c8b13d770f0719f7b1d79", size = 22978, upload-time = "2024-10-18T15:21:27.846Z" }, + { url = "https://files.pythonhosted.org/packages/2a/9f/8619835cd6a711d6272d62abb78c033bda638fdc54c4e7f4272cf1c0962b/MarkupSafe-3.0.2-cp313-cp313-musllinux_1_2_aarch64.whl", hash = "sha256:cdb82a876c47801bb54a690c5ae105a46b392ac6099881cdfb9f6e95e4014c6a", size = 24208, upload-time = "2024-10-18T15:21:28.744Z" }, + { url = "https://files.pythonhosted.org/packages/f9/bf/176950a1792b2cd2102b8ffeb5133e1ed984547b75db47c25a67d3359f77/MarkupSafe-3.0.2-cp313-cp313-musllinux_1_2_i686.whl", hash = "sha256:cabc348d87e913db6ab4aa100f01b08f481097838bdddf7c7a84b7575b7309ca", size = 23357, upload-time = "2024-10-18T15:21:29.545Z" }, + { url = "https://files.pythonhosted.org/packages/ce/4f/9a02c1d335caabe5c4efb90e1b6e8ee944aa245c1aaaab8e8a618987d816/MarkupSafe-3.0.2-cp313-cp313-musllinux_1_2_x86_64.whl", hash = "sha256:444dcda765c8a838eaae23112db52f1efaf750daddb2d9ca300bcae1039adc5c", size = 23344, upload-time = "2024-10-18T15:21:30.366Z" }, + { url = "https://files.pythonhosted.org/packages/ee/55/c271b57db36f748f0e04a759ace9f8f759ccf22b4960c270c78a394f58be/MarkupSafe-3.0.2-cp313-cp313-win32.whl", hash = "sha256:bcf3e58998965654fdaff38e58584d8937aa3096ab5354d493c77d1fdd66d7a1", size = 15101, upload-time = "2024-10-18T15:21:31.207Z" }, + { url = "https://files.pythonhosted.org/packages/29/88/07df22d2dd4df40aba9f3e402e6dc1b8ee86297dddbad4872bd5e7b0094f/MarkupSafe-3.0.2-cp313-cp313-win_amd64.whl", hash = "sha256:e6a2a455bd412959b57a172ce6328d2dd1f01cb2135efda2e4576e8a23fa3b0f", size = 15603, upload-time = "2024-10-18T15:21:32.032Z" }, + { url = "https://files.pythonhosted.org/packages/62/6a/8b89d24db2d32d433dffcd6a8779159da109842434f1dd2f6e71f32f738c/MarkupSafe-3.0.2-cp313-cp313t-macosx_10_13_universal2.whl", hash = "sha256:b5a6b3ada725cea8a5e634536b1b01c30bcdcd7f9c6fff4151548d5bf6b3a36c", size = 14510, upload-time = "2024-10-18T15:21:33.625Z" }, + { url = "https://files.pythonhosted.org/packages/7a/06/a10f955f70a2e5a9bf78d11a161029d278eeacbd35ef806c3fd17b13060d/MarkupSafe-3.0.2-cp313-cp313t-macosx_11_0_arm64.whl", hash = "sha256:a904af0a6162c73e3edcb969eeeb53a63ceeb5d8cf642fade7d39e7963a22ddb", size = 12486, upload-time = "2024-10-18T15:21:34.611Z" }, + { url = "https://files.pythonhosted.org/packages/34/cf/65d4a571869a1a9078198ca28f39fba5fbb910f952f9dbc5220afff9f5e6/MarkupSafe-3.0.2-cp313-cp313t-manylinux_2_17_aarch64.manylinux2014_aarch64.whl", hash = "sha256:4aa4e5faecf353ed117801a068ebab7b7e09ffb6e1d5e412dc852e0da018126c", size = 25480, upload-time = "2024-10-18T15:21:35.398Z" }, + { url = "https://files.pythonhosted.org/packages/0c/e3/90e9651924c430b885468b56b3d597cabf6d72be4b24a0acd1fa0e12af67/MarkupSafe-3.0.2-cp313-cp313t-manylinux_2_17_x86_64.manylinux2014_x86_64.whl", hash = "sha256:c0ef13eaeee5b615fb07c9a7dadb38eac06a0608b41570d8ade51c56539e509d", size = 23914, upload-time = "2024-10-18T15:21:36.231Z" }, + { url = "https://files.pythonhosted.org/packages/66/8c/6c7cf61f95d63bb866db39085150df1f2a5bd3335298f14a66b48e92659c/MarkupSafe-3.0.2-cp313-cp313t-manylinux_2_5_i686.manylinux1_i686.manylinux_2_17_i686.manylinux2014_i686.whl", hash = "sha256:d16a81a06776313e817c951135cf7340a3e91e8c1ff2fac444cfd75fffa04afe", size = 23796, upload-time = "2024-10-18T15:21:37.073Z" }, + { url = "https://files.pythonhosted.org/packages/bb/35/cbe9238ec3f47ac9a7c8b3df7a808e7cb50fe149dc7039f5f454b3fba218/MarkupSafe-3.0.2-cp313-cp313t-musllinux_1_2_aarch64.whl", hash = "sha256:6381026f158fdb7c72a168278597a5e3a5222e83ea18f543112b2662a9b699c5", size = 25473, upload-time = "2024-10-18T15:21:37.932Z" }, + { url = "https://files.pythonhosted.org/packages/e6/32/7621a4382488aa283cc05e8984a9c219abad3bca087be9ec77e89939ded9/MarkupSafe-3.0.2-cp313-cp313t-musllinux_1_2_i686.whl", hash = "sha256:3d79d162e7be8f996986c064d1c7c817f6df3a77fe3d6859f6f9e7be4b8c213a", size = 24114, upload-time = "2024-10-18T15:21:39.799Z" }, + { url = "https://files.pythonhosted.org/packages/0d/80/0985960e4b89922cb5a0bac0ed39c5b96cbc1a536a99f30e8c220a996ed9/MarkupSafe-3.0.2-cp313-cp313t-musllinux_1_2_x86_64.whl", hash = "sha256:131a3c7689c85f5ad20f9f6fb1b866f402c445b220c19fe4308c0b147ccd2ad9", size = 24098, upload-time = "2024-10-18T15:21:40.813Z" }, + { url = "https://files.pythonhosted.org/packages/82/78/fedb03c7d5380df2427038ec8d973587e90561b2d90cd472ce9254cf348b/MarkupSafe-3.0.2-cp313-cp313t-win32.whl", hash = "sha256:ba8062ed2cf21c07a9e295d5b8a2a5ce678b913b45fdf68c32d95d6c1291e0b6", size = 15208, upload-time = "2024-10-18T15:21:41.814Z" }, + { url = "https://files.pythonhosted.org/packages/4f/65/6079a46068dfceaeabb5dcad6d674f5f5c61a6fa5673746f42a9f4c233b3/MarkupSafe-3.0.2-cp313-cp313t-win_amd64.whl", hash = "sha256:e444a31f8db13eb18ada366ab3cf45fd4b31e4db1236a4448f68778c1d1a5a2f", size = 15739, upload-time = "2024-10-18T15:21:42.784Z" }, + { url = "https://files.pythonhosted.org/packages/a7/ea/9b1530c3fdeeca613faeb0fb5cbcf2389d816072fab72a71b45749ef6062/MarkupSafe-3.0.2-cp39-cp39-macosx_10_9_universal2.whl", hash = "sha256:eaa0a10b7f72326f1372a713e73c3f739b524b3af41feb43e4921cb529f5929a", size = 14344, upload-time = "2024-10-18T15:21:43.721Z" }, + { url = "https://files.pythonhosted.org/packages/4b/c2/fbdbfe48848e7112ab05e627e718e854d20192b674952d9042ebd8c9e5de/MarkupSafe-3.0.2-cp39-cp39-macosx_11_0_arm64.whl", hash = "sha256:48032821bbdf20f5799ff537c7ac3d1fba0ba032cfc06194faffa8cda8b560ff", size = 12389, upload-time = "2024-10-18T15:21:44.666Z" }, + { url = "https://files.pythonhosted.org/packages/f0/25/7a7c6e4dbd4f867d95d94ca15449e91e52856f6ed1905d58ef1de5e211d0/MarkupSafe-3.0.2-cp39-cp39-manylinux_2_17_aarch64.manylinux2014_aarch64.whl", hash = "sha256:1a9d3f5f0901fdec14d8d2f66ef7d035f2157240a433441719ac9a3fba440b13", size = 21607, upload-time = "2024-10-18T15:21:45.452Z" }, + { url = "https://files.pythonhosted.org/packages/53/8f/f339c98a178f3c1e545622206b40986a4c3307fe39f70ccd3d9df9a9e425/MarkupSafe-3.0.2-cp39-cp39-manylinux_2_17_x86_64.manylinux2014_x86_64.whl", hash = "sha256:88b49a3b9ff31e19998750c38e030fc7bb937398b1f78cfa599aaef92d693144", size = 20728, upload-time = "2024-10-18T15:21:46.295Z" }, + { url = "https://files.pythonhosted.org/packages/1a/03/8496a1a78308456dbd50b23a385c69b41f2e9661c67ea1329849a598a8f9/MarkupSafe-3.0.2-cp39-cp39-manylinux_2_5_i686.manylinux1_i686.manylinux_2_17_i686.manylinux2014_i686.whl", hash = "sha256:cfad01eed2c2e0c01fd0ecd2ef42c492f7f93902e39a42fc9ee1692961443a29", size = 20826, upload-time = "2024-10-18T15:21:47.134Z" }, + { url = "https://files.pythonhosted.org/packages/e6/cf/0a490a4bd363048c3022f2f475c8c05582179bb179defcee4766fb3dcc18/MarkupSafe-3.0.2-cp39-cp39-musllinux_1_2_aarch64.whl", hash = "sha256:1225beacc926f536dc82e45f8a4d68502949dc67eea90eab715dea3a21c1b5f0", size = 21843, upload-time = "2024-10-18T15:21:48.334Z" }, + { url = "https://files.pythonhosted.org/packages/19/a3/34187a78613920dfd3cdf68ef6ce5e99c4f3417f035694074beb8848cd77/MarkupSafe-3.0.2-cp39-cp39-musllinux_1_2_i686.whl", hash = "sha256:3169b1eefae027567d1ce6ee7cae382c57fe26e82775f460f0b2778beaad66c0", size = 21219, upload-time = "2024-10-18T15:21:49.587Z" }, + { url = "https://files.pythonhosted.org/packages/17/d8/5811082f85bb88410ad7e452263af048d685669bbbfb7b595e8689152498/MarkupSafe-3.0.2-cp39-cp39-musllinux_1_2_x86_64.whl", hash = "sha256:eb7972a85c54febfb25b5c4b4f3af4dcc731994c7da0d8a0b4a6eb0640e1d178", size = 20946, upload-time = "2024-10-18T15:21:50.441Z" }, + { url = "https://files.pythonhosted.org/packages/7c/31/bd635fb5989440d9365c5e3c47556cfea121c7803f5034ac843e8f37c2f2/MarkupSafe-3.0.2-cp39-cp39-win32.whl", hash = "sha256:8c4e8c3ce11e1f92f6536ff07154f9d49677ebaaafc32db9db4620bc11ed480f", size = 15063, upload-time = "2024-10-18T15:21:51.385Z" }, + { url = "https://files.pythonhosted.org/packages/b3/73/085399401383ce949f727afec55ec3abd76648d04b9f22e1c0e99cb4bec3/MarkupSafe-3.0.2-cp39-cp39-win_amd64.whl", hash = "sha256:6e296a513ca3d94054c2c881cc913116e90fd030ad1c656b3869762b754f5f8a", size = 15506, upload-time = "2024-10-18T15:21:52.974Z" }, +] + +[[package]] +name = "mergedeep" +version = "1.3.4" +source = { registry = "https://pypi.org/simple" } +sdist = { url = "https://files.pythonhosted.org/packages/3a/41/580bb4006e3ed0361b8151a01d324fb03f420815446c7def45d02f74c270/mergedeep-1.3.4.tar.gz", hash = "sha256:0096d52e9dad9939c3d975a774666af186eda617e6ca84df4c94dec30004f2a8", size = 4661, upload-time = "2021-02-05T18:55:30.623Z" } +wheels = [ + { url = "https://files.pythonhosted.org/packages/2c/19/04f9b178c2d8a15b076c8b5140708fa6ffc5601fb6f1e975537072df5b2a/mergedeep-1.3.4-py3-none-any.whl", hash = "sha256:70775750742b25c0d8f36c55aed03d24c3384d17c951b3175d898bd778ef0307", size = 6354, upload-time = "2021-02-05T18:55:29.583Z" }, +] + +[[package]] +name = "mkdocs" +version = "1.6.1" +source = { registry = "https://pypi.org/simple" } +dependencies = [ + { name = "click", version = "8.1.8", source = { registry = "https://pypi.org/simple" }, marker = "python_full_version < '3.10'" }, + { name = "click", version = "8.2.1", source = { registry = "https://pypi.org/simple" }, marker = "python_full_version >= '3.10'" }, + { name = "colorama", marker = "sys_platform == 'win32'" }, + { name = "ghp-import" }, + { name = "importlib-metadata", marker = "python_full_version < '3.10'" }, + { name = "jinja2" }, + { name = "markdown" }, + { name = "markupsafe" }, + { name = "mergedeep" }, + { name = "mkdocs-get-deps" }, + { name = "packaging" }, + { name = "pathspec" }, + { name = "pyyaml" }, + { name = "pyyaml-env-tag" }, + { name = "watchdog" }, +] +sdist = { url = "https://files.pythonhosted.org/packages/bc/c6/bbd4f061bd16b378247f12953ffcb04786a618ce5e904b8c5a01a0309061/mkdocs-1.6.1.tar.gz", hash = "sha256:7b432f01d928c084353ab39c57282f29f92136665bdd6abf7c1ec8d822ef86f2", size = 3889159, upload-time = "2024-08-30T12:24:06.899Z" } +wheels = [ + { url = "https://files.pythonhosted.org/packages/22/5b/dbc6a8cddc9cfa9c4971d59fb12bb8d42e161b7e7f8cc89e49137c5b279c/mkdocs-1.6.1-py3-none-any.whl", hash = "sha256:db91759624d1647f3f34aa0c3f327dd2601beae39a366d6e064c03468d35c20e", size = 3864451, upload-time = "2024-08-30T12:24:05.054Z" }, +] + +[[package]] +name = "mkdocs-get-deps" +version = "0.2.0" +source = { registry = "https://pypi.org/simple" } +dependencies = [ + { name = "importlib-metadata", marker = "python_full_version < '3.10'" }, + { name = "mergedeep" }, + { name = "platformdirs" }, + { name = "pyyaml" }, +] +sdist = { url = "https://files.pythonhosted.org/packages/98/f5/ed29cd50067784976f25ed0ed6fcd3c2ce9eb90650aa3b2796ddf7b6870b/mkdocs_get_deps-0.2.0.tar.gz", hash = "sha256:162b3d129c7fad9b19abfdcb9c1458a651628e4b1dea628ac68790fb3061c60c", size = 10239, upload-time = "2023-11-20T17:51:09.981Z" } +wheels = [ + { url = "https://files.pythonhosted.org/packages/9f/d4/029f984e8d3f3b6b726bd33cafc473b75e9e44c0f7e80a5b29abc466bdea/mkdocs_get_deps-0.2.0-py3-none-any.whl", hash = "sha256:2bf11d0b133e77a0dd036abeeb06dec8775e46efa526dc70667d8863eefc6134", size = 9521, upload-time = "2023-11-20T17:51:08.587Z" }, +] + +[[package]] +name = "mypy-extensions" +version = "1.1.0" +source = { registry = "https://pypi.org/simple" } +sdist = { url = "https://files.pythonhosted.org/packages/a2/6e/371856a3fb9d31ca8dac321cda606860fa4548858c0cc45d9d1d4ca2628b/mypy_extensions-1.1.0.tar.gz", hash = "sha256:52e68efc3284861e772bbcd66823fde5ae21fd2fdb51c62a211403730b916558", size = 6343, upload-time = "2025-04-22T14:54:24.164Z" } +wheels = [ + { url = "https://files.pythonhosted.org/packages/79/7b/2c79738432f5c924bef5071f933bcc9efd0473bac3b4aa584a6f7c1c8df8/mypy_extensions-1.1.0-py3-none-any.whl", hash = "sha256:1be4cccdb0f2482337c4743e60421de3a356cd97508abadd57d47403e94f5505", size = 4963, upload-time = "2025-04-22T14:54:22.983Z" }, +] + +[[package]] +name = "packaging" +version = "25.0" +source = { registry = "https://pypi.org/simple" } +sdist = { url = "https://files.pythonhosted.org/packages/a1/d4/1fc4078c65507b51b96ca8f8c3ba19e6a61c8253c72794544580a7b6c24d/packaging-25.0.tar.gz", hash = "sha256:d443872c98d677bf60f6a1f2f8c1cb748e8fe762d2bf9d3148b5599295b0fc4f", size = 165727, upload-time = "2025-04-19T11:48:59.673Z" } +wheels = [ + { url = "https://files.pythonhosted.org/packages/20/12/38679034af332785aac8774540895e234f4d07f7545804097de4b666afd8/packaging-25.0-py3-none-any.whl", hash = "sha256:29572ef2b1f17581046b3a2227d5c611fb25ec70ca1ba8554b24b0e69331a484", size = 66469, upload-time = "2025-04-19T11:48:57.875Z" }, +] + +[[package]] +name = "pathspec" +version = "0.12.1" +source = { registry = "https://pypi.org/simple" } +sdist = { url = "https://files.pythonhosted.org/packages/ca/bc/f35b8446f4531a7cb215605d100cd88b7ac6f44ab3fc94870c120ab3adbf/pathspec-0.12.1.tar.gz", hash = "sha256:a482d51503a1ab33b1c67a6c3813a26953dbdc71c31dacaef9a838c4e29f5712", size = 51043, upload-time = "2023-12-10T22:30:45Z" } +wheels = [ + { url = "https://files.pythonhosted.org/packages/cc/20/ff623b09d963f88bfde16306a54e12ee5ea43e9b597108672ff3a408aad6/pathspec-0.12.1-py3-none-any.whl", hash = "sha256:a0d503e138a4c123b27490a4f7beda6a01c6f288df0e4a8b79c7eb0dc7b4cc08", size = 31191, upload-time = "2023-12-10T22:30:43.14Z" }, +] + +[[package]] +name = "platformdirs" +version = "4.3.8" +source = { registry = "https://pypi.org/simple" } +sdist = { url = "https://files.pythonhosted.org/packages/fe/8b/3c73abc9c759ecd3f1f7ceff6685840859e8070c4d947c93fae71f6a0bf2/platformdirs-4.3.8.tar.gz", hash = "sha256:3d512d96e16bcb959a814c9f348431070822a6496326a4be0911c40b5a74c2bc", size = 21362, upload-time = "2025-05-07T22:47:42.121Z" } +wheels = [ + { url = "https://files.pythonhosted.org/packages/fe/39/979e8e21520d4e47a0bbe349e2713c0aac6f3d853d0e5b34d76206c439aa/platformdirs-4.3.8-py3-none-any.whl", hash = "sha256:ff7059bb7eb1179e2685604f4aaf157cfd9535242bd23742eadc3c13542139b4", size = 18567, upload-time = "2025-05-07T22:47:40.376Z" }, +] + +[[package]] +name = "pluggy" +version = "1.6.0" +source = { registry = "https://pypi.org/simple" } +sdist = { url = "https://files.pythonhosted.org/packages/f9/e2/3e91f31a7d2b083fe6ef3fa267035b518369d9511ffab804f839851d2779/pluggy-1.6.0.tar.gz", hash = "sha256:7dcc130b76258d33b90f61b658791dede3486c3e6bfb003ee5c9bfb396dd22f3", size = 69412, upload-time = "2025-05-15T12:30:07.975Z" } +wheels = [ + { url = "https://files.pythonhosted.org/packages/54/20/4d324d65cc6d9205fabedc306948156824eb9f0ee1633355a8f7ec5c66bf/pluggy-1.6.0-py3-none-any.whl", hash = "sha256:e920276dd6813095e9377c0bc5566d94c932c33b27a3e3945d8389c374dd4746", size = 20538, upload-time = "2025-05-15T12:30:06.134Z" }, +] + +[[package]] +name = "pyproject-api" +version = "1.9.1" +source = { registry = "https://pypi.org/simple" } +dependencies = [ + { name = "packaging" }, + { name = "tomli", marker = "python_full_version < '3.11'" }, +] +sdist = { url = "https://files.pythonhosted.org/packages/19/fd/437901c891f58a7b9096511750247535e891d2d5a5a6eefbc9386a2b41d5/pyproject_api-1.9.1.tar.gz", hash = "sha256:43c9918f49daab37e302038fc1aed54a8c7a91a9fa935d00b9a485f37e0f5335", size = 22710, upload-time = "2025-05-12T14:41:58.025Z" } +wheels = [ + { url = "https://files.pythonhosted.org/packages/ef/e6/c293c06695d4a3ab0260ef124a74ebadba5f4c511ce3a4259e976902c00b/pyproject_api-1.9.1-py3-none-any.whl", hash = "sha256:7d6238d92f8962773dd75b5f0c4a6a27cce092a14b623b811dba656f3b628948", size = 13158, upload-time = "2025-05-12T14:41:56.217Z" }, +] + +[[package]] +name = "pytest" +version = "7.4.4" +source = { registry = "https://pypi.org/simple" } +dependencies = [ + { name = "colorama", marker = "sys_platform == 'win32'" }, + { name = "exceptiongroup", marker = "python_full_version < '3.11'" }, + { name = "iniconfig" }, + { name = "packaging" }, + { name = "pluggy" }, + { name = "tomli", marker = "python_full_version < '3.11'" }, +] +sdist = { url = "https://files.pythonhosted.org/packages/80/1f/9d8e98e4133ffb16c90f3b405c43e38d3abb715bb5d7a63a5a684f7e46a3/pytest-7.4.4.tar.gz", hash = "sha256:2cf0005922c6ace4a3e2ec8b4080eb0d9753fdc93107415332f50ce9e7994280", size = 1357116, upload-time = "2023-12-31T12:00:18.035Z" } +wheels = [ + { url = "https://files.pythonhosted.org/packages/51/ff/f6e8b8f39e08547faece4bd80f89d5a8de68a38b2d179cc1c4490ffa3286/pytest-7.4.4-py3-none-any.whl", hash = "sha256:b090cdf5ed60bf4c45261be03239c2c1c22df034fbffe691abe93cd80cea01d8", size = 325287, upload-time = "2023-12-31T12:00:13.963Z" }, +] + +[[package]] +name = "pytest-cov" +version = "6.2.1" +source = { registry = "https://pypi.org/simple" } +dependencies = [ + { name = "coverage", extra = ["toml"] }, + { name = "pluggy" }, + { name = "pytest" }, +] +sdist = { url = "https://files.pythonhosted.org/packages/18/99/668cade231f434aaa59bbfbf49469068d2ddd945000621d3d165d2e7dd7b/pytest_cov-6.2.1.tar.gz", hash = "sha256:25cc6cc0a5358204b8108ecedc51a9b57b34cc6b8c967cc2c01a4e00d8a67da2", size = 69432, upload-time = "2025-06-12T10:47:47.684Z" } +wheels = [ + { url = "https://files.pythonhosted.org/packages/bc/16/4ea354101abb1287856baa4af2732be351c7bee728065aed451b678153fd/pytest_cov-6.2.1-py3-none-any.whl", hash = "sha256:f5bc4c23f42f1cdd23c70b1dab1bbaef4fc505ba950d53e0081d0730dd7e86d5", size = 24644, upload-time = "2025-06-12T10:47:45.932Z" }, +] + +[[package]] +name = "pytest-cover" +version = "3.0.0" +source = { registry = "https://pypi.org/simple" } +dependencies = [ + { name = "pytest-cov" }, +] +sdist = { url = "https://files.pythonhosted.org/packages/30/27/20964101a7cdb260f8d6c4e854659026968321d10c90552b1fe7f6c5f913/pytest-cover-3.0.0.tar.gz", hash = "sha256:5bdb6c1cc3dd75583bb7bc2c57f5e1034a1bfcb79d27c71aceb0b16af981dbf4", size = 3211, upload-time = "2015-08-01T19:20:22.562Z" } +wheels = [ + { url = "https://files.pythonhosted.org/packages/71/9b/7b4700c462628e169bd859c6368d596a6aedc87936bde733bead9f875fce/pytest_cover-3.0.0-py2.py3-none-any.whl", hash = "sha256:578249955eb3b5f3991209df6e532bb770b647743b7392d3d97698dc02f39ebb", size = 3769, upload-time = "2015-08-01T19:20:18.534Z" }, +] + +[[package]] +name = "pytest-coverage" +version = "0.0" +source = { registry = "https://pypi.org/simple" } +dependencies = [ + { name = "pytest-cover" }, +] +sdist = { url = "https://files.pythonhosted.org/packages/01/81/1d954849aed17b254d1c397eb4447a05eedce612a56b627c071df2ce00c1/pytest-coverage-0.0.tar.gz", hash = "sha256:db6af2cbd7e458c7c9fd2b4207cee75258243c8a81cad31a7ee8cfad5be93c05", size = 873, upload-time = "2015-06-17T21:50:38.956Z" } +wheels = [ + { url = "https://files.pythonhosted.org/packages/5b/4b/d95b052f87db89a2383233c0754c45f6d3b427b7a4bcb771ac9316a6fae1/pytest_coverage-0.0-py2.py3-none-any.whl", hash = "sha256:dedd084c5e74d8e669355325916dc011539b190355021b037242514dee546368", size = 2013, upload-time = "2015-06-17T22:08:36.771Z" }, +] + +[[package]] +name = "python-coveralls" +version = "2.9.3" +source = { registry = "https://pypi.org/simple" } +dependencies = [ + { name = "coverage" }, + { name = "pyyaml" }, + { name = "requests" }, + { name = "six" }, +] +sdist = { url = "https://files.pythonhosted.org/packages/a2/55/9db73eeecbb832252e763dc66aa60551fb4560deffda493b56e83602429c/python-coveralls-2.9.3.tar.gz", hash = "sha256:bfaf7811e7dc5628e83b6b162962a4e2485dbff184b30e49f380374ed1bcee55", size = 9036, upload-time = "2019-08-01T19:12:17.54Z" } +wheels = [ + { url = "https://files.pythonhosted.org/packages/3b/2d/8c4cefb1de18817d9e05552e29b3780a713122d6fff6c535461836c90186/python_coveralls-2.9.3-py2.py3-none-any.whl", hash = "sha256:fb0ff49bb1551dac10b06bd55e9790287d898a0f1e2c959802235cae08dd0bff", size = 9878, upload-time = "2019-08-01T19:12:20.159Z" }, +] + +[[package]] +name = "python-dateutil" +version = "2.9.0.post0" +source = { registry = "https://pypi.org/simple" } +dependencies = [ + { name = "six" }, +] +sdist = { url = "https://files.pythonhosted.org/packages/66/c0/0c8b6ad9f17a802ee498c46e004a0eb49bc148f2fd230864601a86dcf6db/python-dateutil-2.9.0.post0.tar.gz", hash = "sha256:37dd54208da7e1cd875388217d5e00ebd4179249f90fb72437e91a35459a0ad3", size = 342432, upload-time = "2024-03-01T18:36:20.211Z" } +wheels = [ + { url = "https://files.pythonhosted.org/packages/ec/57/56b9bcc3c9c6a792fcbaf139543cee77261f3651ca9da0c93f5c1221264b/python_dateutil-2.9.0.post0-py2.py3-none-any.whl", hash = "sha256:a8b2bc7bffae282281c8140a97d3aa9c14da0b136dfe83f850eea9a5f7470427", size = 229892, upload-time = "2024-03-01T18:36:18.57Z" }, +] + +[[package]] +name = "pywin32" +version = "311" +source = { registry = "https://pypi.org/simple" } +wheels = [ + { url = "https://files.pythonhosted.org/packages/7b/40/44efbb0dfbd33aca6a6483191dae0716070ed99e2ecb0c53683f400a0b4f/pywin32-311-cp310-cp310-win32.whl", hash = "sha256:d03ff496d2a0cd4a5893504789d4a15399133fe82517455e78bad62efbb7f0a3", size = 8760432, upload-time = "2025-07-14T20:13:05.9Z" }, + { url = "https://files.pythonhosted.org/packages/5e/bf/360243b1e953bd254a82f12653974be395ba880e7ec23e3731d9f73921cc/pywin32-311-cp310-cp310-win_amd64.whl", hash = "sha256:797c2772017851984b97180b0bebe4b620bb86328e8a884bb626156295a63b3b", size = 9590103, upload-time = "2025-07-14T20:13:07.698Z" }, + { url = "https://files.pythonhosted.org/packages/57/38/d290720e6f138086fb3d5ffe0b6caa019a791dd57866940c82e4eeaf2012/pywin32-311-cp310-cp310-win_arm64.whl", hash = "sha256:0502d1facf1fed4839a9a51ccbcc63d952cf318f78ffc00a7e78528ac27d7a2b", size = 8778557, upload-time = "2025-07-14T20:13:11.11Z" }, + { url = "https://files.pythonhosted.org/packages/7c/af/449a6a91e5d6db51420875c54f6aff7c97a86a3b13a0b4f1a5c13b988de3/pywin32-311-cp311-cp311-win32.whl", hash = "sha256:184eb5e436dea364dcd3d2316d577d625c0351bf237c4e9a5fabbcfa5a58b151", size = 8697031, upload-time = "2025-07-14T20:13:13.266Z" }, + { url = "https://files.pythonhosted.org/packages/51/8f/9bb81dd5bb77d22243d33c8397f09377056d5c687aa6d4042bea7fbf8364/pywin32-311-cp311-cp311-win_amd64.whl", hash = "sha256:3ce80b34b22b17ccbd937a6e78e7225d80c52f5ab9940fe0506a1a16f3dab503", size = 9508308, upload-time = "2025-07-14T20:13:15.147Z" }, + { url = "https://files.pythonhosted.org/packages/44/7b/9c2ab54f74a138c491aba1b1cd0795ba61f144c711daea84a88b63dc0f6c/pywin32-311-cp311-cp311-win_arm64.whl", hash = "sha256:a733f1388e1a842abb67ffa8e7aad0e70ac519e09b0f6a784e65a136ec7cefd2", size = 8703930, upload-time = "2025-07-14T20:13:16.945Z" }, + { url = "https://files.pythonhosted.org/packages/e7/ab/01ea1943d4eba0f850c3c61e78e8dd59757ff815ff3ccd0a84de5f541f42/pywin32-311-cp312-cp312-win32.whl", hash = "sha256:750ec6e621af2b948540032557b10a2d43b0cee2ae9758c54154d711cc852d31", size = 8706543, upload-time = "2025-07-14T20:13:20.765Z" }, + { url = "https://files.pythonhosted.org/packages/d1/a8/a0e8d07d4d051ec7502cd58b291ec98dcc0c3fff027caad0470b72cfcc2f/pywin32-311-cp312-cp312-win_amd64.whl", hash = "sha256:b8c095edad5c211ff31c05223658e71bf7116daa0ecf3ad85f3201ea3190d067", size = 9495040, upload-time = "2025-07-14T20:13:22.543Z" }, + { url = "https://files.pythonhosted.org/packages/ba/3a/2ae996277b4b50f17d61f0603efd8253cb2d79cc7ae159468007b586396d/pywin32-311-cp312-cp312-win_arm64.whl", hash = "sha256:e286f46a9a39c4a18b319c28f59b61de793654af2f395c102b4f819e584b5852", size = 8710102, upload-time = "2025-07-14T20:13:24.682Z" }, + { url = "https://files.pythonhosted.org/packages/a5/be/3fd5de0979fcb3994bfee0d65ed8ca9506a8a1260651b86174f6a86f52b3/pywin32-311-cp313-cp313-win32.whl", hash = "sha256:f95ba5a847cba10dd8c4d8fefa9f2a6cf283b8b88ed6178fa8a6c1ab16054d0d", size = 8705700, upload-time = "2025-07-14T20:13:26.471Z" }, + { url = "https://files.pythonhosted.org/packages/e3/28/e0a1909523c6890208295a29e05c2adb2126364e289826c0a8bc7297bd5c/pywin32-311-cp313-cp313-win_amd64.whl", hash = "sha256:718a38f7e5b058e76aee1c56ddd06908116d35147e133427e59a3983f703a20d", size = 9494700, upload-time = "2025-07-14T20:13:28.243Z" }, + { url = "https://files.pythonhosted.org/packages/04/bf/90339ac0f55726dce7d794e6d79a18a91265bdf3aa70b6b9ca52f35e022a/pywin32-311-cp313-cp313-win_arm64.whl", hash = "sha256:7b4075d959648406202d92a2310cb990fea19b535c7f4a78d3f5e10b926eeb8a", size = 8709318, upload-time = "2025-07-14T20:13:30.348Z" }, + { url = "https://files.pythonhosted.org/packages/59/42/b86689aac0cdaee7ae1c58d464b0ff04ca909c19bb6502d4973cdd9f9544/pywin32-311-cp39-cp39-win32.whl", hash = "sha256:aba8f82d551a942cb20d4a83413ccbac30790b50efb89a75e4f586ac0bb8056b", size = 8760837, upload-time = "2025-07-14T20:12:59.59Z" }, + { url = "https://files.pythonhosted.org/packages/9f/8a/1403d0353f8c5a2f0829d2b1c4becbf9da2f0a4d040886404fc4a5431e4d/pywin32-311-cp39-cp39-win_amd64.whl", hash = "sha256:e0c4cfb0621281fe40387df582097fd796e80430597cb9944f0ae70447bacd91", size = 9590187, upload-time = "2025-07-14T20:13:01.419Z" }, + { url = "https://files.pythonhosted.org/packages/60/22/e0e8d802f124772cec9c75430b01a212f86f9de7546bda715e54140d5aeb/pywin32-311-cp39-cp39-win_arm64.whl", hash = "sha256:62ea666235135fee79bb154e695f3ff67370afefd71bd7fea7512fc70ef31e3d", size = 8778162, upload-time = "2025-07-14T20:13:03.544Z" }, +] + +[[package]] +name = "pyyaml" +version = "6.0.2" +source = { registry = "https://pypi.org/simple" } +sdist = { url = "https://files.pythonhosted.org/packages/54/ed/79a089b6be93607fa5cdaedf301d7dfb23af5f25c398d5ead2525b063e17/pyyaml-6.0.2.tar.gz", hash = "sha256:d584d9ec91ad65861cc08d42e834324ef890a082e591037abe114850ff7bbc3e", size = 130631, upload-time = "2024-08-06T20:33:50.674Z" } +wheels = [ + { url = "https://files.pythonhosted.org/packages/9b/95/a3fac87cb7158e231b5a6012e438c647e1a87f09f8e0d123acec8ab8bf71/PyYAML-6.0.2-cp310-cp310-macosx_10_9_x86_64.whl", hash = "sha256:0a9a2848a5b7feac301353437eb7d5957887edbf81d56e903999a75a3d743086", size = 184199, upload-time = "2024-08-06T20:31:40.178Z" }, + { url = "https://files.pythonhosted.org/packages/c7/7a/68bd47624dab8fd4afbfd3c48e3b79efe09098ae941de5b58abcbadff5cb/PyYAML-6.0.2-cp310-cp310-macosx_11_0_arm64.whl", hash = "sha256:29717114e51c84ddfba879543fb232a6ed60086602313ca38cce623c1d62cfbf", size = 171758, upload-time = "2024-08-06T20:31:42.173Z" }, + { url = "https://files.pythonhosted.org/packages/49/ee/14c54df452143b9ee9f0f29074d7ca5516a36edb0b4cc40c3f280131656f/PyYAML-6.0.2-cp310-cp310-manylinux_2_17_aarch64.manylinux2014_aarch64.whl", hash = "sha256:8824b5a04a04a047e72eea5cec3bc266db09e35de6bdfe34c9436ac5ee27d237", size = 718463, upload-time = "2024-08-06T20:31:44.263Z" }, + { url = "https://files.pythonhosted.org/packages/4d/61/de363a97476e766574650d742205be468921a7b532aa2499fcd886b62530/PyYAML-6.0.2-cp310-cp310-manylinux_2_17_s390x.manylinux2014_s390x.whl", hash = "sha256:7c36280e6fb8385e520936c3cb3b8042851904eba0e58d277dca80a5cfed590b", size = 719280, upload-time = "2024-08-06T20:31:50.199Z" }, + { url = "https://files.pythonhosted.org/packages/6b/4e/1523cb902fd98355e2e9ea5e5eb237cbc5f3ad5f3075fa65087aa0ecb669/PyYAML-6.0.2-cp310-cp310-manylinux_2_17_x86_64.manylinux2014_x86_64.whl", hash = "sha256:ec031d5d2feb36d1d1a24380e4db6d43695f3748343d99434e6f5f9156aaa2ed", size = 751239, upload-time = "2024-08-06T20:31:52.292Z" }, + { url = "https://files.pythonhosted.org/packages/b7/33/5504b3a9a4464893c32f118a9cc045190a91637b119a9c881da1cf6b7a72/PyYAML-6.0.2-cp310-cp310-musllinux_1_1_aarch64.whl", hash = "sha256:936d68689298c36b53b29f23c6dbb74de12b4ac12ca6cfe0e047bedceea56180", size = 695802, upload-time = "2024-08-06T20:31:53.836Z" }, + { url = "https://files.pythonhosted.org/packages/5c/20/8347dcabd41ef3a3cdc4f7b7a2aff3d06598c8779faa189cdbf878b626a4/PyYAML-6.0.2-cp310-cp310-musllinux_1_1_x86_64.whl", hash = "sha256:23502f431948090f597378482b4812b0caae32c22213aecf3b55325e049a6c68", size = 720527, upload-time = "2024-08-06T20:31:55.565Z" }, + { url = "https://files.pythonhosted.org/packages/be/aa/5afe99233fb360d0ff37377145a949ae258aaab831bde4792b32650a4378/PyYAML-6.0.2-cp310-cp310-win32.whl", hash = "sha256:2e99c6826ffa974fe6e27cdb5ed0021786b03fc98e5ee3c5bfe1fd5015f42b99", size = 144052, upload-time = "2024-08-06T20:31:56.914Z" }, + { url = "https://files.pythonhosted.org/packages/b5/84/0fa4b06f6d6c958d207620fc60005e241ecedceee58931bb20138e1e5776/PyYAML-6.0.2-cp310-cp310-win_amd64.whl", hash = "sha256:a4d3091415f010369ae4ed1fc6b79def9416358877534caf6a0fdd2146c87a3e", size = 161774, upload-time = "2024-08-06T20:31:58.304Z" }, + { url = "https://files.pythonhosted.org/packages/f8/aa/7af4e81f7acba21a4c6be026da38fd2b872ca46226673c89a758ebdc4fd2/PyYAML-6.0.2-cp311-cp311-macosx_10_9_x86_64.whl", hash = "sha256:cc1c1159b3d456576af7a3e4d1ba7e6924cb39de8f67111c735f6fc832082774", size = 184612, upload-time = "2024-08-06T20:32:03.408Z" }, + { url = "https://files.pythonhosted.org/packages/8b/62/b9faa998fd185f65c1371643678e4d58254add437edb764a08c5a98fb986/PyYAML-6.0.2-cp311-cp311-macosx_11_0_arm64.whl", hash = "sha256:1e2120ef853f59c7419231f3bf4e7021f1b936f6ebd222406c3b60212205d2ee", size = 172040, upload-time = "2024-08-06T20:32:04.926Z" }, + { url = "https://files.pythonhosted.org/packages/ad/0c/c804f5f922a9a6563bab712d8dcc70251e8af811fce4524d57c2c0fd49a4/PyYAML-6.0.2-cp311-cp311-manylinux_2_17_aarch64.manylinux2014_aarch64.whl", hash = "sha256:5d225db5a45f21e78dd9358e58a98702a0302f2659a3c6cd320564b75b86f47c", size = 736829, upload-time = "2024-08-06T20:32:06.459Z" }, + { url = "https://files.pythonhosted.org/packages/51/16/6af8d6a6b210c8e54f1406a6b9481febf9c64a3109c541567e35a49aa2e7/PyYAML-6.0.2-cp311-cp311-manylinux_2_17_s390x.manylinux2014_s390x.whl", hash = "sha256:5ac9328ec4831237bec75defaf839f7d4564be1e6b25ac710bd1a96321cc8317", size = 764167, upload-time = "2024-08-06T20:32:08.338Z" }, + { url = "https://files.pythonhosted.org/packages/75/e4/2c27590dfc9992f73aabbeb9241ae20220bd9452df27483b6e56d3975cc5/PyYAML-6.0.2-cp311-cp311-manylinux_2_17_x86_64.manylinux2014_x86_64.whl", hash = "sha256:3ad2a3decf9aaba3d29c8f537ac4b243e36bef957511b4766cb0057d32b0be85", size = 762952, upload-time = "2024-08-06T20:32:14.124Z" }, + { url = "https://files.pythonhosted.org/packages/9b/97/ecc1abf4a823f5ac61941a9c00fe501b02ac3ab0e373c3857f7d4b83e2b6/PyYAML-6.0.2-cp311-cp311-musllinux_1_1_aarch64.whl", hash = "sha256:ff3824dc5261f50c9b0dfb3be22b4567a6f938ccce4587b38952d85fd9e9afe4", size = 735301, upload-time = "2024-08-06T20:32:16.17Z" }, + { url = "https://files.pythonhosted.org/packages/45/73/0f49dacd6e82c9430e46f4a027baa4ca205e8b0a9dce1397f44edc23559d/PyYAML-6.0.2-cp311-cp311-musllinux_1_1_x86_64.whl", hash = "sha256:797b4f722ffa07cc8d62053e4cff1486fa6dc094105d13fea7b1de7d8bf71c9e", size = 756638, upload-time = "2024-08-06T20:32:18.555Z" }, + { url = "https://files.pythonhosted.org/packages/22/5f/956f0f9fc65223a58fbc14459bf34b4cc48dec52e00535c79b8db361aabd/PyYAML-6.0.2-cp311-cp311-win32.whl", hash = "sha256:11d8f3dd2b9c1207dcaf2ee0bbbfd5991f571186ec9cc78427ba5bd32afae4b5", size = 143850, upload-time = "2024-08-06T20:32:19.889Z" }, + { url = "https://files.pythonhosted.org/packages/ed/23/8da0bbe2ab9dcdd11f4f4557ccaf95c10b9811b13ecced089d43ce59c3c8/PyYAML-6.0.2-cp311-cp311-win_amd64.whl", hash = "sha256:e10ce637b18caea04431ce14fabcf5c64a1c61ec9c56b071a4b7ca131ca52d44", size = 161980, upload-time = "2024-08-06T20:32:21.273Z" }, + { url = "https://files.pythonhosted.org/packages/86/0c/c581167fc46d6d6d7ddcfb8c843a4de25bdd27e4466938109ca68492292c/PyYAML-6.0.2-cp312-cp312-macosx_10_9_x86_64.whl", hash = "sha256:c70c95198c015b85feafc136515252a261a84561b7b1d51e3384e0655ddf25ab", size = 183873, upload-time = "2024-08-06T20:32:25.131Z" }, + { url = "https://files.pythonhosted.org/packages/a8/0c/38374f5bb272c051e2a69281d71cba6fdb983413e6758b84482905e29a5d/PyYAML-6.0.2-cp312-cp312-macosx_11_0_arm64.whl", hash = "sha256:ce826d6ef20b1bc864f0a68340c8b3287705cae2f8b4b1d932177dcc76721725", size = 173302, upload-time = "2024-08-06T20:32:26.511Z" }, + { url = "https://files.pythonhosted.org/packages/c3/93/9916574aa8c00aa06bbac729972eb1071d002b8e158bd0e83a3b9a20a1f7/PyYAML-6.0.2-cp312-cp312-manylinux_2_17_aarch64.manylinux2014_aarch64.whl", hash = "sha256:1f71ea527786de97d1a0cc0eacd1defc0985dcf6b3f17bb77dcfc8c34bec4dc5", size = 739154, upload-time = "2024-08-06T20:32:28.363Z" }, + { url = "https://files.pythonhosted.org/packages/95/0f/b8938f1cbd09739c6da569d172531567dbcc9789e0029aa070856f123984/PyYAML-6.0.2-cp312-cp312-manylinux_2_17_s390x.manylinux2014_s390x.whl", hash = "sha256:9b22676e8097e9e22e36d6b7bda33190d0d400f345f23d4065d48f4ca7ae0425", size = 766223, upload-time = "2024-08-06T20:32:30.058Z" }, + { url = "https://files.pythonhosted.org/packages/b9/2b/614b4752f2e127db5cc206abc23a8c19678e92b23c3db30fc86ab731d3bd/PyYAML-6.0.2-cp312-cp312-manylinux_2_17_x86_64.manylinux2014_x86_64.whl", hash = "sha256:80bab7bfc629882493af4aa31a4cfa43a4c57c83813253626916b8c7ada83476", size = 767542, upload-time = "2024-08-06T20:32:31.881Z" }, + { url = "https://files.pythonhosted.org/packages/d4/00/dd137d5bcc7efea1836d6264f049359861cf548469d18da90cd8216cf05f/PyYAML-6.0.2-cp312-cp312-musllinux_1_1_aarch64.whl", hash = "sha256:0833f8694549e586547b576dcfaba4a6b55b9e96098b36cdc7ebefe667dfed48", size = 731164, upload-time = "2024-08-06T20:32:37.083Z" }, + { url = "https://files.pythonhosted.org/packages/c9/1f/4f998c900485e5c0ef43838363ba4a9723ac0ad73a9dc42068b12aaba4e4/PyYAML-6.0.2-cp312-cp312-musllinux_1_1_x86_64.whl", hash = "sha256:8b9c7197f7cb2738065c481a0461e50ad02f18c78cd75775628afb4d7137fb3b", size = 756611, upload-time = "2024-08-06T20:32:38.898Z" }, + { url = "https://files.pythonhosted.org/packages/df/d1/f5a275fdb252768b7a11ec63585bc38d0e87c9e05668a139fea92b80634c/PyYAML-6.0.2-cp312-cp312-win32.whl", hash = "sha256:ef6107725bd54b262d6dedcc2af448a266975032bc85ef0172c5f059da6325b4", size = 140591, upload-time = "2024-08-06T20:32:40.241Z" }, + { url = "https://files.pythonhosted.org/packages/0c/e8/4f648c598b17c3d06e8753d7d13d57542b30d56e6c2dedf9c331ae56312e/PyYAML-6.0.2-cp312-cp312-win_amd64.whl", hash = "sha256:7e7401d0de89a9a855c839bc697c079a4af81cf878373abd7dc625847d25cbd8", size = 156338, upload-time = "2024-08-06T20:32:41.93Z" }, + { url = "https://files.pythonhosted.org/packages/ef/e3/3af305b830494fa85d95f6d95ef7fa73f2ee1cc8ef5b495c7c3269fb835f/PyYAML-6.0.2-cp313-cp313-macosx_10_13_x86_64.whl", hash = "sha256:efdca5630322a10774e8e98e1af481aad470dd62c3170801852d752aa7a783ba", size = 181309, upload-time = "2024-08-06T20:32:43.4Z" }, + { url = "https://files.pythonhosted.org/packages/45/9f/3b1c20a0b7a3200524eb0076cc027a970d320bd3a6592873c85c92a08731/PyYAML-6.0.2-cp313-cp313-macosx_11_0_arm64.whl", hash = "sha256:50187695423ffe49e2deacb8cd10510bc361faac997de9efef88badc3bb9e2d1", size = 171679, upload-time = "2024-08-06T20:32:44.801Z" }, + { url = "https://files.pythonhosted.org/packages/7c/9a/337322f27005c33bcb656c655fa78325b730324c78620e8328ae28b64d0c/PyYAML-6.0.2-cp313-cp313-manylinux_2_17_aarch64.manylinux2014_aarch64.whl", hash = "sha256:0ffe8360bab4910ef1b9e87fb812d8bc0a308b0d0eef8c8f44e0254ab3b07133", size = 733428, upload-time = "2024-08-06T20:32:46.432Z" }, + { url = "https://files.pythonhosted.org/packages/a3/69/864fbe19e6c18ea3cc196cbe5d392175b4cf3d5d0ac1403ec3f2d237ebb5/PyYAML-6.0.2-cp313-cp313-manylinux_2_17_s390x.manylinux2014_s390x.whl", hash = "sha256:17e311b6c678207928d649faa7cb0d7b4c26a0ba73d41e99c4fff6b6c3276484", size = 763361, upload-time = "2024-08-06T20:32:51.188Z" }, + { url = "https://files.pythonhosted.org/packages/04/24/b7721e4845c2f162d26f50521b825fb061bc0a5afcf9a386840f23ea19fa/PyYAML-6.0.2-cp313-cp313-manylinux_2_17_x86_64.manylinux2014_x86_64.whl", hash = "sha256:70b189594dbe54f75ab3a1acec5f1e3faa7e8cf2f1e08d9b561cb41b845f69d5", size = 759523, upload-time = "2024-08-06T20:32:53.019Z" }, + { url = "https://files.pythonhosted.org/packages/2b/b2/e3234f59ba06559c6ff63c4e10baea10e5e7df868092bf9ab40e5b9c56b6/PyYAML-6.0.2-cp313-cp313-musllinux_1_1_aarch64.whl", hash = "sha256:41e4e3953a79407c794916fa277a82531dd93aad34e29c2a514c2c0c5fe971cc", size = 726660, upload-time = "2024-08-06T20:32:54.708Z" }, + { url = "https://files.pythonhosted.org/packages/fe/0f/25911a9f080464c59fab9027482f822b86bf0608957a5fcc6eaac85aa515/PyYAML-6.0.2-cp313-cp313-musllinux_1_1_x86_64.whl", hash = "sha256:68ccc6023a3400877818152ad9a1033e3db8625d899c72eacb5a668902e4d652", size = 751597, upload-time = "2024-08-06T20:32:56.985Z" }, + { url = "https://files.pythonhosted.org/packages/14/0d/e2c3b43bbce3cf6bd97c840b46088a3031085179e596d4929729d8d68270/PyYAML-6.0.2-cp313-cp313-win32.whl", hash = "sha256:bc2fa7c6b47d6bc618dd7fb02ef6fdedb1090ec036abab80d4681424b84c1183", size = 140527, upload-time = "2024-08-06T20:33:03.001Z" }, + { url = "https://files.pythonhosted.org/packages/fa/de/02b54f42487e3d3c6efb3f89428677074ca7bf43aae402517bc7cca949f3/PyYAML-6.0.2-cp313-cp313-win_amd64.whl", hash = "sha256:8388ee1976c416731879ac16da0aff3f63b286ffdd57cdeb95f3f2e085687563", size = 156446, upload-time = "2024-08-06T20:33:04.33Z" }, + { url = "https://files.pythonhosted.org/packages/65/d8/b7a1db13636d7fb7d4ff431593c510c8b8fca920ade06ca8ef20015493c5/PyYAML-6.0.2-cp39-cp39-macosx_10_9_x86_64.whl", hash = "sha256:688ba32a1cffef67fd2e9398a2efebaea461578b0923624778664cc1c914db5d", size = 184777, upload-time = "2024-08-06T20:33:25.896Z" }, + { url = "https://files.pythonhosted.org/packages/0a/02/6ec546cd45143fdf9840b2c6be8d875116a64076218b61d68e12548e5839/PyYAML-6.0.2-cp39-cp39-macosx_11_0_arm64.whl", hash = "sha256:a8786accb172bd8afb8be14490a16625cbc387036876ab6ba70912730faf8e1f", size = 172318, upload-time = "2024-08-06T20:33:27.212Z" }, + { url = "https://files.pythonhosted.org/packages/0e/9a/8cc68be846c972bda34f6c2a93abb644fb2476f4dcc924d52175786932c9/PyYAML-6.0.2-cp39-cp39-manylinux_2_17_aarch64.manylinux2014_aarch64.whl", hash = "sha256:d8e03406cac8513435335dbab54c0d385e4a49e4945d2909a581c83647ca0290", size = 720891, upload-time = "2024-08-06T20:33:28.974Z" }, + { url = "https://files.pythonhosted.org/packages/e9/6c/6e1b7f40181bc4805e2e07f4abc10a88ce4648e7e95ff1abe4ae4014a9b2/PyYAML-6.0.2-cp39-cp39-manylinux_2_17_s390x.manylinux2014_s390x.whl", hash = "sha256:f753120cb8181e736c57ef7636e83f31b9c0d1722c516f7e86cf15b7aa57ff12", size = 722614, upload-time = "2024-08-06T20:33:34.157Z" }, + { url = "https://files.pythonhosted.org/packages/3d/32/e7bd8535d22ea2874cef6a81021ba019474ace0d13a4819c2a4bce79bd6a/PyYAML-6.0.2-cp39-cp39-manylinux_2_17_x86_64.manylinux2014_x86_64.whl", hash = "sha256:3b1fdb9dc17f5a7677423d508ab4f243a726dea51fa5e70992e59a7411c89d19", size = 737360, upload-time = "2024-08-06T20:33:35.84Z" }, + { url = "https://files.pythonhosted.org/packages/d7/12/7322c1e30b9be969670b672573d45479edef72c9a0deac3bb2868f5d7469/PyYAML-6.0.2-cp39-cp39-musllinux_1_1_aarch64.whl", hash = "sha256:0b69e4ce7a131fe56b7e4d770c67429700908fc0752af059838b1cfb41960e4e", size = 699006, upload-time = "2024-08-06T20:33:37.501Z" }, + { url = "https://files.pythonhosted.org/packages/82/72/04fcad41ca56491995076630c3ec1e834be241664c0c09a64c9a2589b507/PyYAML-6.0.2-cp39-cp39-musllinux_1_1_x86_64.whl", hash = "sha256:a9f8c2e67970f13b16084e04f134610fd1d374bf477b17ec1599185cf611d725", size = 723577, upload-time = "2024-08-06T20:33:39.389Z" }, + { url = "https://files.pythonhosted.org/packages/ed/5e/46168b1f2757f1fcd442bc3029cd8767d88a98c9c05770d8b420948743bb/PyYAML-6.0.2-cp39-cp39-win32.whl", hash = "sha256:6395c297d42274772abc367baaa79683958044e5d3835486c16da75d2a694631", size = 144593, upload-time = "2024-08-06T20:33:46.63Z" }, + { url = "https://files.pythonhosted.org/packages/19/87/5124b1c1f2412bb95c59ec481eaf936cd32f0fe2a7b16b97b81c4c017a6a/PyYAML-6.0.2-cp39-cp39-win_amd64.whl", hash = "sha256:39693e1f8320ae4f43943590b49779ffb98acb81f788220ea932a6b6c51004d8", size = 162312, upload-time = "2024-08-06T20:33:49.073Z" }, +] + +[[package]] +name = "pyyaml-env-tag" +version = "1.1" +source = { registry = "https://pypi.org/simple" } +dependencies = [ + { name = "pyyaml" }, +] +sdist = { url = "https://files.pythonhosted.org/packages/eb/2e/79c822141bfd05a853236b504869ebc6b70159afc570e1d5a20641782eaa/pyyaml_env_tag-1.1.tar.gz", hash = "sha256:2eb38b75a2d21ee0475d6d97ec19c63287a7e140231e4214969d0eac923cd7ff", size = 5737, upload-time = "2025-05-13T15:24:01.64Z" } +wheels = [ + { url = "https://files.pythonhosted.org/packages/04/11/432f32f8097b03e3cd5fe57e88efb685d964e2e5178a48ed61e841f7fdce/pyyaml_env_tag-1.1-py3-none-any.whl", hash = "sha256:17109e1a528561e32f026364712fee1264bc2ea6715120891174ed1b980d2e04", size = 4722, upload-time = "2025-05-13T15:23:59.629Z" }, +] + +[[package]] +name = "requests" +version = "2.32.4" +source = { registry = "https://pypi.org/simple" } +dependencies = [ + { name = "certifi" }, + { name = "charset-normalizer" }, + { name = "idna" }, + { name = "urllib3" }, +] +sdist = { url = "https://files.pythonhosted.org/packages/e1/0a/929373653770d8a0d7ea76c37de6e41f11eb07559b103b1c02cafb3f7cf8/requests-2.32.4.tar.gz", hash = "sha256:27d0316682c8a29834d3264820024b62a36942083d52caf2f14c0591336d3422", size = 135258, upload-time = "2025-06-09T16:43:07.34Z" } +wheels = [ + { url = "https://files.pythonhosted.org/packages/7c/e4/56027c4a6b4ae70ca9de302488c5ca95ad4a39e190093d6c1a8ace08341b/requests-2.32.4-py3-none-any.whl", hash = "sha256:27babd3cda2a6d50b30443204ee89830707d396671944c998b5975b031ac2b2c", size = 64847, upload-time = "2025-06-09T16:43:05.728Z" }, +] + +[[package]] +name = "responses" +version = "0.25.7" +source = { registry = "https://pypi.org/simple" } +dependencies = [ + { name = "pyyaml" }, + { name = "requests" }, + { name = "urllib3" }, +] +sdist = { url = "https://files.pythonhosted.org/packages/81/7e/2345ac3299bd62bd7163216702bbc88976c099cfceba5b889f2a457727a1/responses-0.25.7.tar.gz", hash = "sha256:8ebae11405d7a5df79ab6fd54277f6f2bc29b2d002d0dd2d5c632594d1ddcedb", size = 79203, upload-time = "2025-03-11T15:36:16.624Z" } +wheels = [ + { url = "https://files.pythonhosted.org/packages/e4/fc/1d20b64fa90e81e4fa0a34c9b0240a6cfb1326b7e06d18a5432a9917c316/responses-0.25.7-py3-none-any.whl", hash = "sha256:92ca17416c90fe6b35921f52179bff29332076bb32694c0df02dcac2c6bc043c", size = 34732, upload-time = "2025-03-11T15:36:14.589Z" }, +] + +[[package]] +name = "six" +version = "1.17.0" +source = { registry = "https://pypi.org/simple" } +sdist = { url = "https://files.pythonhosted.org/packages/94/e7/b2c673351809dca68a0e064b6af791aa332cf192da575fd474ed7d6f16a2/six-1.17.0.tar.gz", hash = "sha256:ff70335d468e7eb6ec65b95b99d3a2836546063f63acc5171de367e834932a81", size = 34031, upload-time = "2024-12-04T17:35:28.174Z" } +wheels = [ + { url = "https://files.pythonhosted.org/packages/b7/ce/149a00dd41f10bc29e5921b496af8b574d8413afcd5e30dfa0ed46c2cc5e/six-1.17.0-py2.py3-none-any.whl", hash = "sha256:4721f391ed90541fddacab5acf947aa0d3dc7d27b2e1e8eda2be8970586c3274", size = 11050, upload-time = "2024-12-04T17:35:26.475Z" }, +] + +[[package]] +name = "testcontainers" +version = "3.7.1" +source = { registry = "https://pypi.org/simple" } +dependencies = [ + { name = "deprecation" }, + { name = "docker" }, + { name = "wrapt" }, +] +wheels = [ + { url = "https://files.pythonhosted.org/packages/b3/37/38c595414d764cb1d9f3a0c907878c4146a21505ab974c63bcf3d8145807/testcontainers-3.7.1-py2.py3-none-any.whl", hash = "sha256:7f48cef4bf0ccd78f1a4534d4b701a003a3bace851f24eae58a32f9e3f0aeba0", size = 45321, upload-time = "2022-12-06T17:55:37.701Z" }, +] + +[[package]] +name = "tomli" +version = "2.2.1" +source = { registry = "https://pypi.org/simple" } +sdist = { url = "https://files.pythonhosted.org/packages/18/87/302344fed471e44a87289cf4967697d07e532f2421fdaf868a303cbae4ff/tomli-2.2.1.tar.gz", hash = "sha256:cd45e1dc79c835ce60f7404ec8119f2eb06d38b1deba146f07ced3bbc44505ff", size = 17175, upload-time = "2024-11-27T22:38:36.873Z" } +wheels = [ + { url = "https://files.pythonhosted.org/packages/43/ca/75707e6efa2b37c77dadb324ae7d9571cb424e61ea73fad7c56c2d14527f/tomli-2.2.1-cp311-cp311-macosx_10_9_x86_64.whl", hash = "sha256:678e4fa69e4575eb77d103de3df8a895e1591b48e740211bd1067378c69e8249", size = 131077, upload-time = "2024-11-27T22:37:54.956Z" }, + { url = "https://files.pythonhosted.org/packages/c7/16/51ae563a8615d472fdbffc43a3f3d46588c264ac4f024f63f01283becfbb/tomli-2.2.1-cp311-cp311-macosx_11_0_arm64.whl", hash = "sha256:023aa114dd824ade0100497eb2318602af309e5a55595f76b626d6d9f3b7b0a6", size = 123429, upload-time = "2024-11-27T22:37:56.698Z" }, + { url = "https://files.pythonhosted.org/packages/f1/dd/4f6cd1e7b160041db83c694abc78e100473c15d54620083dbd5aae7b990e/tomli-2.2.1-cp311-cp311-manylinux_2_17_aarch64.manylinux2014_aarch64.whl", hash = "sha256:ece47d672db52ac607a3d9599a9d48dcb2f2f735c6c2d1f34130085bb12b112a", size = 226067, upload-time = "2024-11-27T22:37:57.63Z" }, + { url = "https://files.pythonhosted.org/packages/a9/6b/c54ede5dc70d648cc6361eaf429304b02f2871a345bbdd51e993d6cdf550/tomli-2.2.1-cp311-cp311-manylinux_2_17_x86_64.manylinux2014_x86_64.whl", hash = "sha256:6972ca9c9cc9f0acaa56a8ca1ff51e7af152a9f87fb64623e31d5c83700080ee", size = 236030, upload-time = "2024-11-27T22:37:59.344Z" }, + { url = "https://files.pythonhosted.org/packages/1f/47/999514fa49cfaf7a92c805a86c3c43f4215621855d151b61c602abb38091/tomli-2.2.1-cp311-cp311-manylinux_2_5_i686.manylinux1_i686.manylinux_2_17_i686.manylinux2014_i686.whl", hash = "sha256:c954d2250168d28797dd4e3ac5cf812a406cd5a92674ee4c8f123c889786aa8e", size = 240898, upload-time = "2024-11-27T22:38:00.429Z" }, + { url = "https://files.pythonhosted.org/packages/73/41/0a01279a7ae09ee1573b423318e7934674ce06eb33f50936655071d81a24/tomli-2.2.1-cp311-cp311-musllinux_1_2_aarch64.whl", hash = "sha256:8dd28b3e155b80f4d54beb40a441d366adcfe740969820caf156c019fb5c7ec4", size = 229894, upload-time = "2024-11-27T22:38:02.094Z" }, + { url = "https://files.pythonhosted.org/packages/55/18/5d8bc5b0a0362311ce4d18830a5d28943667599a60d20118074ea1b01bb7/tomli-2.2.1-cp311-cp311-musllinux_1_2_i686.whl", hash = "sha256:e59e304978767a54663af13c07b3d1af22ddee3bb2fb0618ca1593e4f593a106", size = 245319, upload-time = "2024-11-27T22:38:03.206Z" }, + { url = "https://files.pythonhosted.org/packages/92/a3/7ade0576d17f3cdf5ff44d61390d4b3febb8a9fc2b480c75c47ea048c646/tomli-2.2.1-cp311-cp311-musllinux_1_2_x86_64.whl", hash = "sha256:33580bccab0338d00994d7f16f4c4ec25b776af3ffaac1ed74e0b3fc95e885a8", size = 238273, upload-time = "2024-11-27T22:38:04.217Z" }, + { url = "https://files.pythonhosted.org/packages/72/6f/fa64ef058ac1446a1e51110c375339b3ec6be245af9d14c87c4a6412dd32/tomli-2.2.1-cp311-cp311-win32.whl", hash = "sha256:465af0e0875402f1d226519c9904f37254b3045fc5084697cefb9bdde1ff99ff", size = 98310, upload-time = "2024-11-27T22:38:05.908Z" }, + { url = "https://files.pythonhosted.org/packages/6a/1c/4a2dcde4a51b81be3530565e92eda625d94dafb46dbeb15069df4caffc34/tomli-2.2.1-cp311-cp311-win_amd64.whl", hash = "sha256:2d0f2fdd22b02c6d81637a3c95f8cd77f995846af7414c5c4b8d0545afa1bc4b", size = 108309, upload-time = "2024-11-27T22:38:06.812Z" }, + { url = "https://files.pythonhosted.org/packages/52/e1/f8af4c2fcde17500422858155aeb0d7e93477a0d59a98e56cbfe75070fd0/tomli-2.2.1-cp312-cp312-macosx_10_13_x86_64.whl", hash = "sha256:4a8f6e44de52d5e6c657c9fe83b562f5f4256d8ebbfe4ff922c495620a7f6cea", size = 132762, upload-time = "2024-11-27T22:38:07.731Z" }, + { url = "https://files.pythonhosted.org/packages/03/b8/152c68bb84fc00396b83e7bbddd5ec0bd3dd409db4195e2a9b3e398ad2e3/tomli-2.2.1-cp312-cp312-macosx_11_0_arm64.whl", hash = "sha256:8d57ca8095a641b8237d5b079147646153d22552f1c637fd3ba7f4b0b29167a8", size = 123453, upload-time = "2024-11-27T22:38:09.384Z" }, + { url = "https://files.pythonhosted.org/packages/c8/d6/fc9267af9166f79ac528ff7e8c55c8181ded34eb4b0e93daa767b8841573/tomli-2.2.1-cp312-cp312-manylinux_2_17_aarch64.manylinux2014_aarch64.whl", hash = "sha256:4e340144ad7ae1533cb897d406382b4b6fede8890a03738ff1683af800d54192", size = 233486, upload-time = "2024-11-27T22:38:10.329Z" }, + { url = "https://files.pythonhosted.org/packages/5c/51/51c3f2884d7bab89af25f678447ea7d297b53b5a3b5730a7cb2ef6069f07/tomli-2.2.1-cp312-cp312-manylinux_2_17_x86_64.manylinux2014_x86_64.whl", hash = "sha256:db2b95f9de79181805df90bedc5a5ab4c165e6ec3fe99f970d0e302f384ad222", size = 242349, upload-time = "2024-11-27T22:38:11.443Z" }, + { url = "https://files.pythonhosted.org/packages/ab/df/bfa89627d13a5cc22402e441e8a931ef2108403db390ff3345c05253935e/tomli-2.2.1-cp312-cp312-manylinux_2_5_i686.manylinux1_i686.manylinux_2_17_i686.manylinux2014_i686.whl", hash = "sha256:40741994320b232529c802f8bc86da4e1aa9f413db394617b9a256ae0f9a7f77", size = 252159, upload-time = "2024-11-27T22:38:13.099Z" }, + { url = "https://files.pythonhosted.org/packages/9e/6e/fa2b916dced65763a5168c6ccb91066f7639bdc88b48adda990db10c8c0b/tomli-2.2.1-cp312-cp312-musllinux_1_2_aarch64.whl", hash = "sha256:400e720fe168c0f8521520190686ef8ef033fb19fc493da09779e592861b78c6", size = 237243, upload-time = "2024-11-27T22:38:14.766Z" }, + { url = "https://files.pythonhosted.org/packages/b4/04/885d3b1f650e1153cbb93a6a9782c58a972b94ea4483ae4ac5cedd5e4a09/tomli-2.2.1-cp312-cp312-musllinux_1_2_i686.whl", hash = "sha256:02abe224de6ae62c19f090f68da4e27b10af2b93213d36cf44e6e1c5abd19fdd", size = 259645, upload-time = "2024-11-27T22:38:15.843Z" }, + { url = "https://files.pythonhosted.org/packages/9c/de/6b432d66e986e501586da298e28ebeefd3edc2c780f3ad73d22566034239/tomli-2.2.1-cp312-cp312-musllinux_1_2_x86_64.whl", hash = "sha256:b82ebccc8c8a36f2094e969560a1b836758481f3dc360ce9a3277c65f374285e", size = 244584, upload-time = "2024-11-27T22:38:17.645Z" }, + { url = "https://files.pythonhosted.org/packages/1c/9a/47c0449b98e6e7d1be6cbac02f93dd79003234ddc4aaab6ba07a9a7482e2/tomli-2.2.1-cp312-cp312-win32.whl", hash = "sha256:889f80ef92701b9dbb224e49ec87c645ce5df3fa2cc548664eb8a25e03127a98", size = 98875, upload-time = "2024-11-27T22:38:19.159Z" }, + { url = "https://files.pythonhosted.org/packages/ef/60/9b9638f081c6f1261e2688bd487625cd1e660d0a85bd469e91d8db969734/tomli-2.2.1-cp312-cp312-win_amd64.whl", hash = "sha256:7fc04e92e1d624a4a63c76474610238576942d6b8950a2d7f908a340494e67e4", size = 109418, upload-time = "2024-11-27T22:38:20.064Z" }, + { url = "https://files.pythonhosted.org/packages/04/90/2ee5f2e0362cb8a0b6499dc44f4d7d48f8fff06d28ba46e6f1eaa61a1388/tomli-2.2.1-cp313-cp313-macosx_10_13_x86_64.whl", hash = "sha256:f4039b9cbc3048b2416cc57ab3bda989a6fcf9b36cf8937f01a6e731b64f80d7", size = 132708, upload-time = "2024-11-27T22:38:21.659Z" }, + { url = "https://files.pythonhosted.org/packages/c0/ec/46b4108816de6b385141f082ba99e315501ccd0a2ea23db4a100dd3990ea/tomli-2.2.1-cp313-cp313-macosx_11_0_arm64.whl", hash = "sha256:286f0ca2ffeeb5b9bd4fcc8d6c330534323ec51b2f52da063b11c502da16f30c", size = 123582, upload-time = "2024-11-27T22:38:22.693Z" }, + { url = "https://files.pythonhosted.org/packages/a0/bd/b470466d0137b37b68d24556c38a0cc819e8febe392d5b199dcd7f578365/tomli-2.2.1-cp313-cp313-manylinux_2_17_aarch64.manylinux2014_aarch64.whl", hash = "sha256:a92ef1a44547e894e2a17d24e7557a5e85a9e1d0048b0b5e7541f76c5032cb13", size = 232543, upload-time = "2024-11-27T22:38:24.367Z" }, + { url = "https://files.pythonhosted.org/packages/d9/e5/82e80ff3b751373f7cead2815bcbe2d51c895b3c990686741a8e56ec42ab/tomli-2.2.1-cp313-cp313-manylinux_2_17_x86_64.manylinux2014_x86_64.whl", hash = "sha256:9316dc65bed1684c9a98ee68759ceaed29d229e985297003e494aa825ebb0281", size = 241691, upload-time = "2024-11-27T22:38:26.081Z" }, + { url = "https://files.pythonhosted.org/packages/05/7e/2a110bc2713557d6a1bfb06af23dd01e7dde52b6ee7dadc589868f9abfac/tomli-2.2.1-cp313-cp313-manylinux_2_5_i686.manylinux1_i686.manylinux_2_17_i686.manylinux2014_i686.whl", hash = "sha256:e85e99945e688e32d5a35c1ff38ed0b3f41f43fad8df0bdf79f72b2ba7bc5272", size = 251170, upload-time = "2024-11-27T22:38:27.921Z" }, + { url = "https://files.pythonhosted.org/packages/64/7b/22d713946efe00e0adbcdfd6d1aa119ae03fd0b60ebed51ebb3fa9f5a2e5/tomli-2.2.1-cp313-cp313-musllinux_1_2_aarch64.whl", hash = "sha256:ac065718db92ca818f8d6141b5f66369833d4a80a9d74435a268c52bdfa73140", size = 236530, upload-time = "2024-11-27T22:38:29.591Z" }, + { url = "https://files.pythonhosted.org/packages/38/31/3a76f67da4b0cf37b742ca76beaf819dca0ebef26d78fc794a576e08accf/tomli-2.2.1-cp313-cp313-musllinux_1_2_i686.whl", hash = "sha256:d920f33822747519673ee656a4b6ac33e382eca9d331c87770faa3eef562aeb2", size = 258666, upload-time = "2024-11-27T22:38:30.639Z" }, + { url = "https://files.pythonhosted.org/packages/07/10/5af1293da642aded87e8a988753945d0cf7e00a9452d3911dd3bb354c9e2/tomli-2.2.1-cp313-cp313-musllinux_1_2_x86_64.whl", hash = "sha256:a198f10c4d1b1375d7687bc25294306e551bf1abfa4eace6650070a5c1ae2744", size = 243954, upload-time = "2024-11-27T22:38:31.702Z" }, + { url = "https://files.pythonhosted.org/packages/5b/b9/1ed31d167be802da0fc95020d04cd27b7d7065cc6fbefdd2f9186f60d7bd/tomli-2.2.1-cp313-cp313-win32.whl", hash = "sha256:d3f5614314d758649ab2ab3a62d4f2004c825922f9e370b29416484086b264ec", size = 98724, upload-time = "2024-11-27T22:38:32.837Z" }, + { url = "https://files.pythonhosted.org/packages/c7/32/b0963458706accd9afcfeb867c0f9175a741bf7b19cd424230714d722198/tomli-2.2.1-cp313-cp313-win_amd64.whl", hash = "sha256:a38aa0308e754b0e3c67e344754dff64999ff9b513e691d0e786265c93583c69", size = 109383, upload-time = "2024-11-27T22:38:34.455Z" }, + { url = "https://files.pythonhosted.org/packages/6e/c2/61d3e0f47e2b74ef40a68b9e6ad5984f6241a942f7cd3bbfbdbd03861ea9/tomli-2.2.1-py3-none-any.whl", hash = "sha256:cb55c73c5f4408779d0cf3eef9f762b9c9f147a77de7b258bef0a5628adc85cc", size = 14257, upload-time = "2024-11-27T22:38:35.385Z" }, +] + +[[package]] +name = "tox" +version = "4.28.3" +source = { registry = "https://pypi.org/simple" } +dependencies = [ + { name = "cachetools" }, + { name = "chardet" }, + { name = "colorama" }, + { name = "filelock" }, + { name = "packaging" }, + { name = "platformdirs" }, + { name = "pluggy" }, + { name = "pyproject-api" }, + { name = "tomli", marker = "python_full_version < '3.11'" }, + { name = "typing-extensions", marker = "python_full_version < '3.11'" }, + { name = "virtualenv" }, +] +sdist = { url = "https://files.pythonhosted.org/packages/22/ca/9114e959d8b18f891327b58346a7b6ed6fc71815504fb2f3773dd5950b14/tox-4.28.3.tar.gz", hash = "sha256:b91db7219e5242002cf4040a299c8852026d6af35fcd21274d456fb62dafee7b", size = 199617, upload-time = "2025-07-26T00:45:59.34Z" } +wheels = [ + { url = "https://files.pythonhosted.org/packages/51/14/bc4935af126b676334ace4c44f451fa4f4a8b2dcfec75b11929d0aff8b3f/tox-4.28.3-py3-none-any.whl", hash = "sha256:1debe9daf0b7e64d425ef99a17292b0792385686b1d541df34c7298211e99269", size = 174011, upload-time = "2025-07-26T00:45:57.474Z" }, +] + +[[package]] +name = "typing-extensions" +version = "4.14.1" +source = { registry = "https://pypi.org/simple" } +sdist = { url = "https://files.pythonhosted.org/packages/98/5a/da40306b885cc8c09109dc2e1abd358d5684b1425678151cdaed4731c822/typing_extensions-4.14.1.tar.gz", hash = "sha256:38b39f4aeeab64884ce9f74c94263ef78f3c22467c8724005483154c26648d36", size = 107673, upload-time = "2025-07-04T13:28:34.16Z" } +wheels = [ + { url = "https://files.pythonhosted.org/packages/b5/00/d631e67a838026495268c2f6884f3711a15a9a2a96cd244fdaea53b823fb/typing_extensions-4.14.1-py3-none-any.whl", hash = "sha256:d1e1e3b58374dc93031d6eda2420a48ea44a36c2b4766a4fdeb3710755731d76", size = 43906, upload-time = "2025-07-04T13:28:32.743Z" }, +] + +[[package]] +name = "urllib3" +version = "2.5.0" +source = { registry = "https://pypi.org/simple" } +sdist = { url = "https://files.pythonhosted.org/packages/15/22/9ee70a2574a4f4599c47dd506532914ce044817c7752a79b6a51286319bc/urllib3-2.5.0.tar.gz", hash = "sha256:3fc47733c7e419d4bc3f6b3dc2b4f890bb743906a30d56ba4a5bfa4bbff92760", size = 393185, upload-time = "2025-06-18T14:07:41.644Z" } +wheels = [ + { url = "https://files.pythonhosted.org/packages/a7/c2/fe1e52489ae3122415c51f387e221dd0773709bad6c6cdaa599e8a2c5185/urllib3-2.5.0-py3-none-any.whl", hash = "sha256:e6b01673c0fa6a13e374b50871808eb3bf7046c4b125b216f6bf1cc604cff0dc", size = 129795, upload-time = "2025-06-18T14:07:40.39Z" }, +] + +[[package]] +name = "virtualenv" +version = "20.32.0" +source = { registry = "https://pypi.org/simple" } +dependencies = [ + { name = "distlib" }, + { name = "filelock" }, + { name = "platformdirs" }, +] +sdist = { url = "https://files.pythonhosted.org/packages/a9/96/0834f30fa08dca3738614e6a9d42752b6420ee94e58971d702118f7cfd30/virtualenv-20.32.0.tar.gz", hash = "sha256:886bf75cadfdc964674e6e33eb74d787dff31ca314ceace03ca5810620f4ecf0", size = 6076970, upload-time = "2025-07-21T04:09:50.985Z" } +wheels = [ + { url = "https://files.pythonhosted.org/packages/5c/c6/f8f28009920a736d0df434b52e9feebfb4d702ba942f15338cb4a83eafc1/virtualenv-20.32.0-py3-none-any.whl", hash = "sha256:2c310aecb62e5aa1b06103ed7c2977b81e042695de2697d01017ff0f1034af56", size = 6057761, upload-time = "2025-07-21T04:09:48.059Z" }, +] + +[[package]] +name = "watchdog" +version = "3.0.0" +source = { registry = "https://pypi.org/simple" } +sdist = { url = "https://files.pythonhosted.org/packages/95/a6/d6ef450393dac5734c63c40a131f66808d2e6f59f6165ab38c98fbe4e6ec/watchdog-3.0.0.tar.gz", hash = "sha256:4d98a320595da7a7c5a18fc48cb633c2e73cda78f93cac2ef42d42bf609a33f9", size = 124593, upload-time = "2023-03-20T09:21:11.367Z" } +wheels = [ + { url = "https://files.pythonhosted.org/packages/06/fd/58b82550ebe4883bb2a5e1b6c14d8702b5ce0f36c58470bba51dc777df46/watchdog-3.0.0-cp310-cp310-macosx_10_9_universal2.whl", hash = "sha256:336adfc6f5cc4e037d52db31194f7581ff744b67382eb6021c868322e32eef41", size = 100697, upload-time = "2023-03-20T09:20:25.047Z" }, + { url = "https://files.pythonhosted.org/packages/92/dd/42f47ffdfadff4c41b89c54163f323f875eb963bf90088e477c43b8f7b15/watchdog-3.0.0-cp310-cp310-macosx_10_9_x86_64.whl", hash = "sha256:a70a8dcde91be523c35b2bf96196edc5730edb347e374c7de7cd20c43ed95397", size = 91219, upload-time = "2023-03-20T09:20:26.864Z" }, + { url = "https://files.pythonhosted.org/packages/9b/39/30bb3c2e4f8e89b5c60e98589acf5c5a001cb0efde249aa05d748d1734a2/watchdog-3.0.0-cp310-cp310-macosx_11_0_arm64.whl", hash = "sha256:adfdeab2da79ea2f76f87eb42a3ab1966a5313e5a69a0213a3cc06ef692b0e96", size = 91756, upload-time = "2023-03-20T09:20:28.309Z" }, + { url = "https://files.pythonhosted.org/packages/00/9e/a9711f35f1ad6571e92dc2e955e7de9dfac21a1b33e9cd212f066a60a387/watchdog-3.0.0-cp311-cp311-macosx_10_9_universal2.whl", hash = "sha256:2b57a1e730af3156d13b7fdddfc23dea6487fceca29fc75c5a868beed29177ae", size = 100700, upload-time = "2023-03-20T09:20:29.847Z" }, + { url = "https://files.pythonhosted.org/packages/84/ab/67001e62603bf2ea35ace40023f7c74f61e8b047160d6bb078373cec1a67/watchdog-3.0.0-cp311-cp311-macosx_10_9_x86_64.whl", hash = "sha256:7ade88d0d778b1b222adebcc0927428f883db07017618a5e684fd03b83342bd9", size = 91251, upload-time = "2023-03-20T09:20:31.892Z" }, + { url = "https://files.pythonhosted.org/packages/58/db/d419fdbd3051b42b0a8091ddf78f70540b6d9d277a84845f7c5955f9de92/watchdog-3.0.0-cp311-cp311-macosx_11_0_arm64.whl", hash = "sha256:7e447d172af52ad204d19982739aa2346245cc5ba6f579d16dac4bfec226d2e7", size = 91753, upload-time = "2023-03-20T09:20:33.337Z" }, + { url = "https://files.pythonhosted.org/packages/75/fe/d9a37d8df76878853f68dd665ec6d2c7a984645de460164cb880a93ffe6b/watchdog-3.0.0-cp39-cp39-macosx_10_9_universal2.whl", hash = "sha256:7c5f84b5194c24dd573fa6472685b2a27cc5a17fe5f7b6fd40345378ca6812e3", size = 100653, upload-time = "2023-03-20T09:20:42.936Z" }, + { url = "https://files.pythonhosted.org/packages/94/ce/70c65a6c4b0330129c402624d42f67ce82d6a0ba2036de67628aeffda3c1/watchdog-3.0.0-cp39-cp39-macosx_10_9_x86_64.whl", hash = "sha256:3aa7f6a12e831ddfe78cdd4f8996af9cf334fd6346531b16cec61c3b3c0d8da0", size = 91247, upload-time = "2023-03-20T09:20:45.157Z" }, + { url = "https://files.pythonhosted.org/packages/51/b9/444a984b1667013bac41b31b45d9718e069cc7502a43a924896806605d83/watchdog-3.0.0-cp39-cp39-macosx_11_0_arm64.whl", hash = "sha256:233b5817932685d39a7896b1090353fc8efc1ef99c9c054e46c8002561252fb8", size = 91753, upload-time = "2023-03-20T09:20:46.913Z" }, + { url = "https://files.pythonhosted.org/packages/30/65/9e36a3c821d47a22e54a8fc73681586b2d26e82d24ea3af63acf2ef78f97/watchdog-3.0.0-pp39-pypy39_pp73-macosx_10_9_x86_64.whl", hash = "sha256:c9d8c8ec7efb887333cf71e328e39cffbf771d8f8f95d308ea4125bf5f90ba64", size = 90428, upload-time = "2023-03-20T09:20:52.216Z" }, + { url = "https://files.pythonhosted.org/packages/92/28/631872d7fbc45527037060db8c838b47a129a6c09d2297d6dddcfa283cf2/watchdog-3.0.0-py3-none-manylinux2014_aarch64.whl", hash = "sha256:0e06ab8858a76e1219e68c7573dfeba9dd1c0219476c5a44d5333b01d7e1743a", size = 82049, upload-time = "2023-03-20T09:20:53.951Z" }, + { url = "https://files.pythonhosted.org/packages/c0/a2/4e3230bdc1fb878b152a2c66aa941732776f4545bd68135d490591d66713/watchdog-3.0.0-py3-none-manylinux2014_armv7l.whl", hash = "sha256:d00e6be486affb5781468457b21a6cbe848c33ef43f9ea4a73b4882e5f188a44", size = 82049, upload-time = "2023-03-20T09:20:55.583Z" }, + { url = "https://files.pythonhosted.org/packages/21/72/46fd174352cd88b9157ade77e3b8835125d4b1e5186fc7f1e8c44664e029/watchdog-3.0.0-py3-none-manylinux2014_i686.whl", hash = "sha256:c07253088265c363d1ddf4b3cdb808d59a0468ecd017770ed716991620b8f77a", size = 82052, upload-time = "2023-03-20T09:20:57.124Z" }, + { url = "https://files.pythonhosted.org/packages/74/3c/e4b77f4f069aca2b6e35925db7a1aa6cb600dcb52fc3e962284640ca37f3/watchdog-3.0.0-py3-none-manylinux2014_ppc64.whl", hash = "sha256:5113334cf8cf0ac8cd45e1f8309a603291b614191c9add34d33075727a967709", size = 82050, upload-time = "2023-03-20T09:20:58.864Z" }, + { url = "https://files.pythonhosted.org/packages/71/3a/b12740f4f60861240d57b42a2ac6ac0a2821db506c4435f7872c1fad867d/watchdog-3.0.0-py3-none-manylinux2014_ppc64le.whl", hash = "sha256:51f90f73b4697bac9c9a78394c3acbbd331ccd3655c11be1a15ae6fe289a8c83", size = 82050, upload-time = "2023-03-20T09:21:00.452Z" }, + { url = "https://files.pythonhosted.org/packages/40/1b/4e6d3e0f587587931f590531b4ed08070d71a9efb35541d792a68d8ee593/watchdog-3.0.0-py3-none-manylinux2014_s390x.whl", hash = "sha256:ba07e92756c97e3aca0912b5cbc4e5ad802f4557212788e72a72a47ff376950d", size = 82049, upload-time = "2023-03-20T09:21:01.979Z" }, + { url = "https://files.pythonhosted.org/packages/2b/f0/456948b865ab259784f774154e7d65844fa9757522fdb11533fbf8ae7aca/watchdog-3.0.0-py3-none-manylinux2014_x86_64.whl", hash = "sha256:d429c2430c93b7903914e4db9a966c7f2b068dd2ebdd2fa9b9ce094c7d459f33", size = 82051, upload-time = "2023-03-20T09:21:03.67Z" }, + { url = "https://files.pythonhosted.org/packages/55/0d/bfc2a0d425b12444a2dc245a934c065bbb7bd9833fff071cba79c21bb76e/watchdog-3.0.0-py3-none-win32.whl", hash = "sha256:3ed7c71a9dccfe838c2f0b6314ed0d9b22e77d268c67e015450a29036a81f60f", size = 82038, upload-time = "2023-03-20T09:21:05.492Z" }, + { url = "https://files.pythonhosted.org/packages/9b/6e/ce8d124d03cd3f2941365d9c81d62e3afe43f2dc7e6e86274fa9c2ec2d5b/watchdog-3.0.0-py3-none-win_amd64.whl", hash = "sha256:4c9956d27be0bb08fc5f30d9d0179a855436e655f046d288e2bcc11adfae893c", size = 82040, upload-time = "2023-03-20T09:21:07.609Z" }, + { url = "https://files.pythonhosted.org/packages/ba/0c/cd0337069c468f22ef256e768ece74c78b511092f1004ab260268e1af4a9/watchdog-3.0.0-py3-none-win_ia64.whl", hash = "sha256:5d9f3a10e02d7371cd929b5d8f11e87d4bad890212ed3901f9b4d68767bee759", size = 82040, upload-time = "2023-03-20T09:21:09.178Z" }, +] + +[[package]] +name = "wheel" +version = "0.40.0" +source = { registry = "https://pypi.org/simple" } +sdist = { url = "https://files.pythonhosted.org/packages/fc/ef/0335f7217dd1e8096a9e8383e1d472aa14717878ffe07c4772e68b6e8735/wheel-0.40.0.tar.gz", hash = "sha256:cd1196f3faee2b31968d626e1731c94f99cbdb67cf5a46e4f5656cbee7738873", size = 96226, upload-time = "2023-03-14T15:10:02.873Z" } +wheels = [ + { url = "https://files.pythonhosted.org/packages/61/86/cc8d1ff2ca31a312a25a708c891cf9facbad4eae493b3872638db6785eb5/wheel-0.40.0-py3-none-any.whl", hash = "sha256:d236b20e7cb522daf2390fa84c55eea81c5c30190f90f29ae2ca1ad8355bf247", size = 64545, upload-time = "2023-03-14T15:10:00.828Z" }, +] + +[[package]] +name = "wiremock" +version = "2.7.0" +source = { virtual = "." } +dependencies = [ + { name = "requests" }, +] + +[package.optional-dependencies] +testing = [ + { name = "docker" }, + { name = "testcontainers" }, +] + +[package.dev-dependencies] +dev = [ + { name = "black" }, + { name = "coverage" }, + { name = "pytest" }, + { name = "pytest-coverage" }, + { name = "python-coveralls" }, + { name = "responses" }, + { name = "tox" }, + { name = "watchdog" }, + { name = "wheel" }, +] +docs = [ + { name = "markdown-include" }, + { name = "mkdocs" }, +] + +[package.metadata] +requires-dist = [ + { name = "docker", marker = "extra == 'testing'", specifier = ">=7.1.0" }, + { name = "requests", specifier = ">=2.32.4" }, + { name = "testcontainers", marker = "extra == 'testing'", specifier = ">=3.7.1,<4.0.0" }, +] +provides-extras = ["testing"] + +[package.metadata.requires-dev] +dev = [ + { name = "black", specifier = ">=24.0.0" }, + { name = "coverage", specifier = ">=7.2.3,<8.0.0" }, + { name = "pytest", specifier = ">=7.3.1,<8.0.0" }, + { name = "pytest-coverage", specifier = ">=0.0,<1.0.0" }, + { name = "python-coveralls", specifier = ">=2.9.3,<3.0.0" }, + { name = "responses", specifier = ">=0.23.1,<1.0.0" }, + { name = "tox", specifier = ">=4.4.12,<5.0.0" }, + { name = "watchdog", specifier = ">=3.0.0,<4.0.0" }, + { name = "wheel", specifier = ">=0.40.0,<0.41.0" }, +] +docs = [ + { name = "markdown-include", specifier = ">=0.8.1,<0.9.0" }, + { name = "mkdocs", specifier = ">=1.3.0,<2.0.0" }, +] + +[[package]] +name = "wrapt" +version = "1.17.2" +source = { registry = "https://pypi.org/simple" } +sdist = { url = "https://files.pythonhosted.org/packages/c3/fc/e91cc220803d7bc4db93fb02facd8461c37364151b8494762cc88b0fbcef/wrapt-1.17.2.tar.gz", hash = "sha256:41388e9d4d1522446fe79d3213196bd9e3b301a336965b9e27ca2788ebd122f3", size = 55531, upload-time = "2025-01-14T10:35:45.465Z" } +wheels = [ + { url = "https://files.pythonhosted.org/packages/5a/d1/1daec934997e8b160040c78d7b31789f19b122110a75eca3d4e8da0049e1/wrapt-1.17.2-cp310-cp310-macosx_10_9_universal2.whl", hash = "sha256:3d57c572081fed831ad2d26fd430d565b76aa277ed1d30ff4d40670b1c0dd984", size = 53307, upload-time = "2025-01-14T10:33:13.616Z" }, + { url = "https://files.pythonhosted.org/packages/1b/7b/13369d42651b809389c1a7153baa01d9700430576c81a2f5c5e460df0ed9/wrapt-1.17.2-cp310-cp310-macosx_10_9_x86_64.whl", hash = "sha256:b5e251054542ae57ac7f3fba5d10bfff615b6c2fb09abeb37d2f1463f841ae22", size = 38486, upload-time = "2025-01-14T10:33:15.947Z" }, + { url = "https://files.pythonhosted.org/packages/62/bf/e0105016f907c30b4bd9e377867c48c34dc9c6c0c104556c9c9126bd89ed/wrapt-1.17.2-cp310-cp310-macosx_11_0_arm64.whl", hash = "sha256:80dd7db6a7cb57ffbc279c4394246414ec99537ae81ffd702443335a61dbf3a7", size = 38777, upload-time = "2025-01-14T10:33:17.462Z" }, + { url = "https://files.pythonhosted.org/packages/27/70/0f6e0679845cbf8b165e027d43402a55494779295c4b08414097b258ac87/wrapt-1.17.2-cp310-cp310-manylinux_2_17_aarch64.manylinux2014_aarch64.whl", hash = "sha256:0a6e821770cf99cc586d33833b2ff32faebdbe886bd6322395606cf55153246c", size = 83314, upload-time = "2025-01-14T10:33:21.282Z" }, + { url = "https://files.pythonhosted.org/packages/0f/77/0576d841bf84af8579124a93d216f55d6f74374e4445264cb378a6ed33eb/wrapt-1.17.2-cp310-cp310-manylinux_2_5_i686.manylinux1_i686.manylinux_2_17_i686.manylinux2014_i686.whl", hash = "sha256:b60fb58b90c6d63779cb0c0c54eeb38941bae3ecf7a73c764c52c88c2dcb9d72", size = 74947, upload-time = "2025-01-14T10:33:24.414Z" }, + { url = "https://files.pythonhosted.org/packages/90/ec/00759565518f268ed707dcc40f7eeec38637d46b098a1f5143bff488fe97/wrapt-1.17.2-cp310-cp310-manylinux_2_5_x86_64.manylinux1_x86_64.manylinux_2_17_x86_64.manylinux2014_x86_64.whl", hash = "sha256:b870b5df5b71d8c3359d21be8f0d6c485fa0ebdb6477dda51a1ea54a9b558061", size = 82778, upload-time = "2025-01-14T10:33:26.152Z" }, + { url = "https://files.pythonhosted.org/packages/f8/5a/7cffd26b1c607b0b0c8a9ca9d75757ad7620c9c0a9b4a25d3f8a1480fafc/wrapt-1.17.2-cp310-cp310-musllinux_1_2_aarch64.whl", hash = "sha256:4011d137b9955791f9084749cba9a367c68d50ab8d11d64c50ba1688c9b457f2", size = 81716, upload-time = "2025-01-14T10:33:27.372Z" }, + { url = "https://files.pythonhosted.org/packages/7e/09/dccf68fa98e862df7e6a60a61d43d644b7d095a5fc36dbb591bbd4a1c7b2/wrapt-1.17.2-cp310-cp310-musllinux_1_2_i686.whl", hash = "sha256:1473400e5b2733e58b396a04eb7f35f541e1fb976d0c0724d0223dd607e0f74c", size = 74548, upload-time = "2025-01-14T10:33:28.52Z" }, + { url = "https://files.pythonhosted.org/packages/b7/8e/067021fa3c8814952c5e228d916963c1115b983e21393289de15128e867e/wrapt-1.17.2-cp310-cp310-musllinux_1_2_x86_64.whl", hash = "sha256:3cedbfa9c940fdad3e6e941db7138e26ce8aad38ab5fe9dcfadfed9db7a54e62", size = 81334, upload-time = "2025-01-14T10:33:29.643Z" }, + { url = "https://files.pythonhosted.org/packages/4b/0d/9d4b5219ae4393f718699ca1c05f5ebc0c40d076f7e65fd48f5f693294fb/wrapt-1.17.2-cp310-cp310-win32.whl", hash = "sha256:582530701bff1dec6779efa00c516496968edd851fba224fbd86e46cc6b73563", size = 36427, upload-time = "2025-01-14T10:33:30.832Z" }, + { url = "https://files.pythonhosted.org/packages/72/6a/c5a83e8f61aec1e1aeef939807602fb880e5872371e95df2137142f5c58e/wrapt-1.17.2-cp310-cp310-win_amd64.whl", hash = "sha256:58705da316756681ad3c9c73fd15499aa4d8c69f9fd38dc8a35e06c12468582f", size = 38774, upload-time = "2025-01-14T10:33:32.897Z" }, + { url = "https://files.pythonhosted.org/packages/cd/f7/a2aab2cbc7a665efab072344a8949a71081eed1d2f451f7f7d2b966594a2/wrapt-1.17.2-cp311-cp311-macosx_10_9_universal2.whl", hash = "sha256:ff04ef6eec3eee8a5efef2401495967a916feaa353643defcc03fc74fe213b58", size = 53308, upload-time = "2025-01-14T10:33:33.992Z" }, + { url = "https://files.pythonhosted.org/packages/50/ff/149aba8365fdacef52b31a258c4dc1c57c79759c335eff0b3316a2664a64/wrapt-1.17.2-cp311-cp311-macosx_10_9_x86_64.whl", hash = "sha256:4db983e7bca53819efdbd64590ee96c9213894272c776966ca6306b73e4affda", size = 38488, upload-time = "2025-01-14T10:33:35.264Z" }, + { url = "https://files.pythonhosted.org/packages/65/46/5a917ce85b5c3b490d35c02bf71aedaa9f2f63f2d15d9949cc4ba56e8ba9/wrapt-1.17.2-cp311-cp311-macosx_11_0_arm64.whl", hash = "sha256:9abc77a4ce4c6f2a3168ff34b1da9b0f311a8f1cfd694ec96b0603dff1c79438", size = 38776, upload-time = "2025-01-14T10:33:38.28Z" }, + { url = "https://files.pythonhosted.org/packages/ca/74/336c918d2915a4943501c77566db41d1bd6e9f4dbc317f356b9a244dfe83/wrapt-1.17.2-cp311-cp311-manylinux_2_17_aarch64.manylinux2014_aarch64.whl", hash = "sha256:0b929ac182f5ace000d459c59c2c9c33047e20e935f8e39371fa6e3b85d56f4a", size = 83776, upload-time = "2025-01-14T10:33:40.678Z" }, + { url = "https://files.pythonhosted.org/packages/09/99/c0c844a5ccde0fe5761d4305485297f91d67cf2a1a824c5f282e661ec7ff/wrapt-1.17.2-cp311-cp311-manylinux_2_5_i686.manylinux1_i686.manylinux_2_17_i686.manylinux2014_i686.whl", hash = "sha256:f09b286faeff3c750a879d336fb6d8713206fc97af3adc14def0cdd349df6000", size = 75420, upload-time = "2025-01-14T10:33:41.868Z" }, + { url = "https://files.pythonhosted.org/packages/b4/b0/9fc566b0fe08b282c850063591a756057c3247b2362b9286429ec5bf1721/wrapt-1.17.2-cp311-cp311-manylinux_2_5_x86_64.manylinux1_x86_64.manylinux_2_17_x86_64.manylinux2014_x86_64.whl", hash = "sha256:1a7ed2d9d039bd41e889f6fb9364554052ca21ce823580f6a07c4ec245c1f5d6", size = 83199, upload-time = "2025-01-14T10:33:43.598Z" }, + { url = "https://files.pythonhosted.org/packages/9d/4b/71996e62d543b0a0bd95dda485219856def3347e3e9380cc0d6cf10cfb2f/wrapt-1.17.2-cp311-cp311-musllinux_1_2_aarch64.whl", hash = "sha256:129a150f5c445165ff941fc02ee27df65940fcb8a22a61828b1853c98763a64b", size = 82307, upload-time = "2025-01-14T10:33:48.499Z" }, + { url = "https://files.pythonhosted.org/packages/39/35/0282c0d8789c0dc9bcc738911776c762a701f95cfe113fb8f0b40e45c2b9/wrapt-1.17.2-cp311-cp311-musllinux_1_2_i686.whl", hash = "sha256:1fb5699e4464afe5c7e65fa51d4f99e0b2eadcc176e4aa33600a3df7801d6662", size = 75025, upload-time = "2025-01-14T10:33:51.191Z" }, + { url = "https://files.pythonhosted.org/packages/4f/6d/90c9fd2c3c6fee181feecb620d95105370198b6b98a0770cba090441a828/wrapt-1.17.2-cp311-cp311-musllinux_1_2_x86_64.whl", hash = "sha256:9a2bce789a5ea90e51a02dfcc39e31b7f1e662bc3317979aa7e5538e3a034f72", size = 81879, upload-time = "2025-01-14T10:33:52.328Z" }, + { url = "https://files.pythonhosted.org/packages/8f/fa/9fb6e594f2ce03ef03eddbdb5f4f90acb1452221a5351116c7c4708ac865/wrapt-1.17.2-cp311-cp311-win32.whl", hash = "sha256:4afd5814270fdf6380616b321fd31435a462019d834f83c8611a0ce7484c7317", size = 36419, upload-time = "2025-01-14T10:33:53.551Z" }, + { url = "https://files.pythonhosted.org/packages/47/f8/fb1773491a253cbc123c5d5dc15c86041f746ed30416535f2a8df1f4a392/wrapt-1.17.2-cp311-cp311-win_amd64.whl", hash = "sha256:acc130bc0375999da18e3d19e5a86403667ac0c4042a094fefb7eec8ebac7cf3", size = 38773, upload-time = "2025-01-14T10:33:56.323Z" }, + { url = "https://files.pythonhosted.org/packages/a1/bd/ab55f849fd1f9a58ed7ea47f5559ff09741b25f00c191231f9f059c83949/wrapt-1.17.2-cp312-cp312-macosx_10_13_universal2.whl", hash = "sha256:d5e2439eecc762cd85e7bd37161d4714aa03a33c5ba884e26c81559817ca0925", size = 53799, upload-time = "2025-01-14T10:33:57.4Z" }, + { url = "https://files.pythonhosted.org/packages/53/18/75ddc64c3f63988f5a1d7e10fb204ffe5762bc663f8023f18ecaf31a332e/wrapt-1.17.2-cp312-cp312-macosx_10_13_x86_64.whl", hash = "sha256:3fc7cb4c1c744f8c05cd5f9438a3caa6ab94ce8344e952d7c45a8ed59dd88392", size = 38821, upload-time = "2025-01-14T10:33:59.334Z" }, + { url = "https://files.pythonhosted.org/packages/48/2a/97928387d6ed1c1ebbfd4efc4133a0633546bec8481a2dd5ec961313a1c7/wrapt-1.17.2-cp312-cp312-macosx_11_0_arm64.whl", hash = "sha256:8fdbdb757d5390f7c675e558fd3186d590973244fab0c5fe63d373ade3e99d40", size = 38919, upload-time = "2025-01-14T10:34:04.093Z" }, + { url = "https://files.pythonhosted.org/packages/73/54/3bfe5a1febbbccb7a2f77de47b989c0b85ed3a6a41614b104204a788c20e/wrapt-1.17.2-cp312-cp312-manylinux_2_17_aarch64.manylinux2014_aarch64.whl", hash = "sha256:5bb1d0dbf99411f3d871deb6faa9aabb9d4e744d67dcaaa05399af89d847a91d", size = 88721, upload-time = "2025-01-14T10:34:07.163Z" }, + { url = "https://files.pythonhosted.org/packages/25/cb/7262bc1b0300b4b64af50c2720ef958c2c1917525238d661c3e9a2b71b7b/wrapt-1.17.2-cp312-cp312-manylinux_2_5_i686.manylinux1_i686.manylinux_2_17_i686.manylinux2014_i686.whl", hash = "sha256:d18a4865f46b8579d44e4fe1e2bcbc6472ad83d98e22a26c963d46e4c125ef0b", size = 80899, upload-time = "2025-01-14T10:34:09.82Z" }, + { url = "https://files.pythonhosted.org/packages/2a/5a/04cde32b07a7431d4ed0553a76fdb7a61270e78c5fd5a603e190ac389f14/wrapt-1.17.2-cp312-cp312-manylinux_2_5_x86_64.manylinux1_x86_64.manylinux_2_17_x86_64.manylinux2014_x86_64.whl", hash = "sha256:bc570b5f14a79734437cb7b0500376b6b791153314986074486e0b0fa8d71d98", size = 89222, upload-time = "2025-01-14T10:34:11.258Z" }, + { url = "https://files.pythonhosted.org/packages/09/28/2e45a4f4771fcfb109e244d5dbe54259e970362a311b67a965555ba65026/wrapt-1.17.2-cp312-cp312-musllinux_1_2_aarch64.whl", hash = "sha256:6d9187b01bebc3875bac9b087948a2bccefe464a7d8f627cf6e48b1bbae30f82", size = 86707, upload-time = "2025-01-14T10:34:12.49Z" }, + { url = "https://files.pythonhosted.org/packages/c6/d2/dcb56bf5f32fcd4bd9aacc77b50a539abdd5b6536872413fd3f428b21bed/wrapt-1.17.2-cp312-cp312-musllinux_1_2_i686.whl", hash = "sha256:9e8659775f1adf02eb1e6f109751268e493c73716ca5761f8acb695e52a756ae", size = 79685, upload-time = "2025-01-14T10:34:15.043Z" }, + { url = "https://files.pythonhosted.org/packages/80/4e/eb8b353e36711347893f502ce91c770b0b0929f8f0bed2670a6856e667a9/wrapt-1.17.2-cp312-cp312-musllinux_1_2_x86_64.whl", hash = "sha256:e8b2816ebef96d83657b56306152a93909a83f23994f4b30ad4573b00bd11bb9", size = 87567, upload-time = "2025-01-14T10:34:16.563Z" }, + { url = "https://files.pythonhosted.org/packages/17/27/4fe749a54e7fae6e7146f1c7d914d28ef599dacd4416566c055564080fe2/wrapt-1.17.2-cp312-cp312-win32.whl", hash = "sha256:468090021f391fe0056ad3e807e3d9034e0fd01adcd3bdfba977b6fdf4213ea9", size = 36672, upload-time = "2025-01-14T10:34:17.727Z" }, + { url = "https://files.pythonhosted.org/packages/15/06/1dbf478ea45c03e78a6a8c4be4fdc3c3bddea5c8de8a93bc971415e47f0f/wrapt-1.17.2-cp312-cp312-win_amd64.whl", hash = "sha256:ec89ed91f2fa8e3f52ae53cd3cf640d6feff92ba90d62236a81e4e563ac0e991", size = 38865, upload-time = "2025-01-14T10:34:19.577Z" }, + { url = "https://files.pythonhosted.org/packages/ce/b9/0ffd557a92f3b11d4c5d5e0c5e4ad057bd9eb8586615cdaf901409920b14/wrapt-1.17.2-cp313-cp313-macosx_10_13_universal2.whl", hash = "sha256:6ed6ffac43aecfe6d86ec5b74b06a5be33d5bb9243d055141e8cabb12aa08125", size = 53800, upload-time = "2025-01-14T10:34:21.571Z" }, + { url = "https://files.pythonhosted.org/packages/c0/ef/8be90a0b7e73c32e550c73cfb2fa09db62234227ece47b0e80a05073b375/wrapt-1.17.2-cp313-cp313-macosx_10_13_x86_64.whl", hash = "sha256:35621ae4c00e056adb0009f8e86e28eb4a41a4bfa8f9bfa9fca7d343fe94f998", size = 38824, upload-time = "2025-01-14T10:34:22.999Z" }, + { url = "https://files.pythonhosted.org/packages/36/89/0aae34c10fe524cce30fe5fc433210376bce94cf74d05b0d68344c8ba46e/wrapt-1.17.2-cp313-cp313-macosx_11_0_arm64.whl", hash = "sha256:a604bf7a053f8362d27eb9fefd2097f82600b856d5abe996d623babd067b1ab5", size = 38920, upload-time = "2025-01-14T10:34:25.386Z" }, + { url = "https://files.pythonhosted.org/packages/3b/24/11c4510de906d77e0cfb5197f1b1445d4fec42c9a39ea853d482698ac681/wrapt-1.17.2-cp313-cp313-manylinux_2_17_aarch64.manylinux2014_aarch64.whl", hash = "sha256:5cbabee4f083b6b4cd282f5b817a867cf0b1028c54d445b7ec7cfe6505057cf8", size = 88690, upload-time = "2025-01-14T10:34:28.058Z" }, + { url = "https://files.pythonhosted.org/packages/71/d7/cfcf842291267bf455b3e266c0c29dcb675b5540ee8b50ba1699abf3af45/wrapt-1.17.2-cp313-cp313-manylinux_2_5_i686.manylinux1_i686.manylinux_2_17_i686.manylinux2014_i686.whl", hash = "sha256:49703ce2ddc220df165bd2962f8e03b84c89fee2d65e1c24a7defff6f988f4d6", size = 80861, upload-time = "2025-01-14T10:34:29.167Z" }, + { url = "https://files.pythonhosted.org/packages/d5/66/5d973e9f3e7370fd686fb47a9af3319418ed925c27d72ce16b791231576d/wrapt-1.17.2-cp313-cp313-manylinux_2_5_x86_64.manylinux1_x86_64.manylinux_2_17_x86_64.manylinux2014_x86_64.whl", hash = "sha256:8112e52c5822fc4253f3901b676c55ddf288614dc7011634e2719718eaa187dc", size = 89174, upload-time = "2025-01-14T10:34:31.702Z" }, + { url = "https://files.pythonhosted.org/packages/a7/d3/8e17bb70f6ae25dabc1aaf990f86824e4fd98ee9cadf197054e068500d27/wrapt-1.17.2-cp313-cp313-musllinux_1_2_aarch64.whl", hash = "sha256:9fee687dce376205d9a494e9c121e27183b2a3df18037f89d69bd7b35bcf59e2", size = 86721, upload-time = "2025-01-14T10:34:32.91Z" }, + { url = "https://files.pythonhosted.org/packages/6f/54/f170dfb278fe1c30d0ff864513cff526d624ab8de3254b20abb9cffedc24/wrapt-1.17.2-cp313-cp313-musllinux_1_2_i686.whl", hash = "sha256:18983c537e04d11cf027fbb60a1e8dfd5190e2b60cc27bc0808e653e7b218d1b", size = 79763, upload-time = "2025-01-14T10:34:34.903Z" }, + { url = "https://files.pythonhosted.org/packages/4a/98/de07243751f1c4a9b15c76019250210dd3486ce098c3d80d5f729cba029c/wrapt-1.17.2-cp313-cp313-musllinux_1_2_x86_64.whl", hash = "sha256:703919b1633412ab54bcf920ab388735832fdcb9f9a00ae49387f0fe67dad504", size = 87585, upload-time = "2025-01-14T10:34:36.13Z" }, + { url = "https://files.pythonhosted.org/packages/f9/f0/13925f4bd6548013038cdeb11ee2cbd4e37c30f8bfd5db9e5a2a370d6e20/wrapt-1.17.2-cp313-cp313-win32.whl", hash = "sha256:abbb9e76177c35d4e8568e58650aa6926040d6a9f6f03435b7a522bf1c487f9a", size = 36676, upload-time = "2025-01-14T10:34:37.962Z" }, + { url = "https://files.pythonhosted.org/packages/bf/ae/743f16ef8c2e3628df3ddfd652b7d4c555d12c84b53f3d8218498f4ade9b/wrapt-1.17.2-cp313-cp313-win_amd64.whl", hash = "sha256:69606d7bb691b50a4240ce6b22ebb319c1cfb164e5f6569835058196e0f3a845", size = 38871, upload-time = "2025-01-14T10:34:39.13Z" }, + { url = "https://files.pythonhosted.org/packages/3d/bc/30f903f891a82d402ffb5fda27ec1d621cc97cb74c16fea0b6141f1d4e87/wrapt-1.17.2-cp313-cp313t-macosx_10_13_universal2.whl", hash = "sha256:4a721d3c943dae44f8e243b380cb645a709ba5bd35d3ad27bc2ed947e9c68192", size = 56312, upload-time = "2025-01-14T10:34:40.604Z" }, + { url = "https://files.pythonhosted.org/packages/8a/04/c97273eb491b5f1c918857cd26f314b74fc9b29224521f5b83f872253725/wrapt-1.17.2-cp313-cp313t-macosx_10_13_x86_64.whl", hash = "sha256:766d8bbefcb9e00c3ac3b000d9acc51f1b399513f44d77dfe0eb026ad7c9a19b", size = 40062, upload-time = "2025-01-14T10:34:45.011Z" }, + { url = "https://files.pythonhosted.org/packages/4e/ca/3b7afa1eae3a9e7fefe499db9b96813f41828b9fdb016ee836c4c379dadb/wrapt-1.17.2-cp313-cp313t-macosx_11_0_arm64.whl", hash = "sha256:e496a8ce2c256da1eb98bd15803a79bee00fc351f5dfb9ea82594a3f058309e0", size = 40155, upload-time = "2025-01-14T10:34:47.25Z" }, + { url = "https://files.pythonhosted.org/packages/89/be/7c1baed43290775cb9030c774bc53c860db140397047cc49aedaf0a15477/wrapt-1.17.2-cp313-cp313t-manylinux_2_17_aarch64.manylinux2014_aarch64.whl", hash = "sha256:40d615e4fe22f4ad3528448c193b218e077656ca9ccb22ce2cb20db730f8d306", size = 113471, upload-time = "2025-01-14T10:34:50.934Z" }, + { url = "https://files.pythonhosted.org/packages/32/98/4ed894cf012b6d6aae5f5cc974006bdeb92f0241775addad3f8cd6ab71c8/wrapt-1.17.2-cp313-cp313t-manylinux_2_5_i686.manylinux1_i686.manylinux_2_17_i686.manylinux2014_i686.whl", hash = "sha256:a5aaeff38654462bc4b09023918b7f21790efb807f54c000a39d41d69cf552cb", size = 101208, upload-time = "2025-01-14T10:34:52.297Z" }, + { url = "https://files.pythonhosted.org/packages/ea/fd/0c30f2301ca94e655e5e057012e83284ce8c545df7661a78d8bfca2fac7a/wrapt-1.17.2-cp313-cp313t-manylinux_2_5_x86_64.manylinux1_x86_64.manylinux_2_17_x86_64.manylinux2014_x86_64.whl", hash = "sha256:9a7d15bbd2bc99e92e39f49a04653062ee6085c0e18b3b7512a4f2fe91f2d681", size = 109339, upload-time = "2025-01-14T10:34:53.489Z" }, + { url = "https://files.pythonhosted.org/packages/75/56/05d000de894c4cfcb84bcd6b1df6214297b8089a7bd324c21a4765e49b14/wrapt-1.17.2-cp313-cp313t-musllinux_1_2_aarch64.whl", hash = "sha256:e3890b508a23299083e065f435a492b5435eba6e304a7114d2f919d400888cc6", size = 110232, upload-time = "2025-01-14T10:34:55.327Z" }, + { url = "https://files.pythonhosted.org/packages/53/f8/c3f6b2cf9b9277fb0813418e1503e68414cd036b3b099c823379c9575e6d/wrapt-1.17.2-cp313-cp313t-musllinux_1_2_i686.whl", hash = "sha256:8c8b293cd65ad716d13d8dd3624e42e5a19cc2a2f1acc74b30c2c13f15cb61a6", size = 100476, upload-time = "2025-01-14T10:34:58.055Z" }, + { url = "https://files.pythonhosted.org/packages/a7/b1/0bb11e29aa5139d90b770ebbfa167267b1fc548d2302c30c8f7572851738/wrapt-1.17.2-cp313-cp313t-musllinux_1_2_x86_64.whl", hash = "sha256:4c82b8785d98cdd9fed4cac84d765d234ed3251bd6afe34cb7ac523cb93e8b4f", size = 106377, upload-time = "2025-01-14T10:34:59.3Z" }, + { url = "https://files.pythonhosted.org/packages/6a/e1/0122853035b40b3f333bbb25f1939fc1045e21dd518f7f0922b60c156f7c/wrapt-1.17.2-cp313-cp313t-win32.whl", hash = "sha256:13e6afb7fe71fe7485a4550a8844cc9ffbe263c0f1a1eea569bc7091d4898555", size = 37986, upload-time = "2025-01-14T10:35:00.498Z" }, + { url = "https://files.pythonhosted.org/packages/09/5e/1655cf481e079c1f22d0cabdd4e51733679932718dc23bf2db175f329b76/wrapt-1.17.2-cp313-cp313t-win_amd64.whl", hash = "sha256:eaf675418ed6b3b31c7a989fd007fa7c3be66ce14e5c3b27336383604c9da85c", size = 40750, upload-time = "2025-01-14T10:35:03.378Z" }, + { url = "https://files.pythonhosted.org/packages/8a/f4/6ed2b8f6f1c832933283974839b88ec7c983fd12905e01e97889dadf7559/wrapt-1.17.2-cp39-cp39-macosx_10_9_universal2.whl", hash = "sha256:99039fa9e6306880572915728d7f6c24a86ec57b0a83f6b2491e1d8ab0235b9a", size = 53308, upload-time = "2025-01-14T10:35:24.413Z" }, + { url = "https://files.pythonhosted.org/packages/a2/a9/712a53f8f4f4545768ac532619f6e56d5d0364a87b2212531685e89aeef8/wrapt-1.17.2-cp39-cp39-macosx_10_9_x86_64.whl", hash = "sha256:2696993ee1eebd20b8e4ee4356483c4cb696066ddc24bd70bcbb80fa56ff9061", size = 38489, upload-time = "2025-01-14T10:35:26.913Z" }, + { url = "https://files.pythonhosted.org/packages/fa/9b/e172c8f28a489a2888df18f953e2f6cb8d33b1a2e78c9dfc52d8bf6a5ead/wrapt-1.17.2-cp39-cp39-macosx_11_0_arm64.whl", hash = "sha256:612dff5db80beef9e649c6d803a8d50c409082f1fedc9dbcdfde2983b2025b82", size = 38776, upload-time = "2025-01-14T10:35:28.183Z" }, + { url = "https://files.pythonhosted.org/packages/cf/cb/7a07b51762dcd59bdbe07aa97f87b3169766cadf240f48d1cbe70a1be9db/wrapt-1.17.2-cp39-cp39-manylinux_2_17_aarch64.manylinux2014_aarch64.whl", hash = "sha256:62c2caa1585c82b3f7a7ab56afef7b3602021d6da34fbc1cf234ff139fed3cd9", size = 83050, upload-time = "2025-01-14T10:35:30.645Z" }, + { url = "https://files.pythonhosted.org/packages/a5/51/a42757dd41032afd6d8037617aa3bc6803ba971850733b24dfb7d5c627c4/wrapt-1.17.2-cp39-cp39-manylinux_2_5_i686.manylinux1_i686.manylinux_2_17_i686.manylinux2014_i686.whl", hash = "sha256:c958bcfd59bacc2d0249dcfe575e71da54f9dcf4a8bdf89c4cb9a68a1170d73f", size = 74718, upload-time = "2025-01-14T10:35:32.047Z" }, + { url = "https://files.pythonhosted.org/packages/bf/bb/d552bfe47db02fcfc950fc563073a33500f8108efa5f7b41db2f83a59028/wrapt-1.17.2-cp39-cp39-manylinux_2_5_x86_64.manylinux1_x86_64.manylinux_2_17_x86_64.manylinux2014_x86_64.whl", hash = "sha256:fc78a84e2dfbc27afe4b2bd7c80c8db9bca75cc5b85df52bfe634596a1da846b", size = 82590, upload-time = "2025-01-14T10:35:33.329Z" }, + { url = "https://files.pythonhosted.org/packages/77/99/77b06b3c3c410dbae411105bf22496facf03a5496bfaca8fbcf9da381889/wrapt-1.17.2-cp39-cp39-musllinux_1_2_aarch64.whl", hash = "sha256:ba0f0eb61ef00ea10e00eb53a9129501f52385c44853dbd6c4ad3f403603083f", size = 81462, upload-time = "2025-01-14T10:35:34.933Z" }, + { url = "https://files.pythonhosted.org/packages/2d/21/cf0bd85ae66f92600829ea1de8e1da778e5e9f6e574ccbe74b66db0d95db/wrapt-1.17.2-cp39-cp39-musllinux_1_2_i686.whl", hash = "sha256:1e1fe0e6ab7775fd842bc39e86f6dcfc4507ab0ffe206093e76d61cde37225c8", size = 74309, upload-time = "2025-01-14T10:35:37.542Z" }, + { url = "https://files.pythonhosted.org/packages/6d/16/112d25e9092398a0dd6fec50ab7ac1b775a0c19b428f049785096067ada9/wrapt-1.17.2-cp39-cp39-musllinux_1_2_x86_64.whl", hash = "sha256:c86563182421896d73858e08e1db93afdd2b947a70064b813d515d66549e15f9", size = 81081, upload-time = "2025-01-14T10:35:38.9Z" }, + { url = "https://files.pythonhosted.org/packages/2b/49/364a615a0cc0872685646c495c7172e4fc7bf1959e3b12a1807a03014e05/wrapt-1.17.2-cp39-cp39-win32.whl", hash = "sha256:f393cda562f79828f38a819f4788641ac7c4085f30f1ce1a68672baa686482bb", size = 36423, upload-time = "2025-01-14T10:35:40.177Z" }, + { url = "https://files.pythonhosted.org/packages/00/ad/5d2c1b34ba3202cd833d9221833e74d6500ce66730974993a8dc9a94fb8c/wrapt-1.17.2-cp39-cp39-win_amd64.whl", hash = "sha256:36ccae62f64235cf8ddb682073a60519426fdd4725524ae38874adf72b5f2aeb", size = 38772, upload-time = "2025-01-14T10:35:42.763Z" }, + { url = "https://files.pythonhosted.org/packages/2d/82/f56956041adef78f849db6b289b282e72b55ab8045a75abad81898c28d19/wrapt-1.17.2-py3-none-any.whl", hash = "sha256:b18f2d1533a71f069c7f82d524a52599053d4c7166e9dd374ae2136b7f40f7c8", size = 23594, upload-time = "2025-01-14T10:35:44.018Z" }, +] + +[[package]] +name = "zipp" +version = "3.23.0" +source = { registry = "https://pypi.org/simple" } +sdist = { url = "https://files.pythonhosted.org/packages/e3/02/0f2892c661036d50ede074e376733dca2ae7c6eb617489437771209d4180/zipp-3.23.0.tar.gz", hash = "sha256:a07157588a12518c9d4034df3fbbee09c814741a33ff63c05fa29d26a2404166", size = 25547, upload-time = "2025-06-08T17:06:39.4Z" } +wheels = [ + { url = "https://files.pythonhosted.org/packages/2e/54/647ade08bf0db230bfea292f893923872fd20be6ac6f53b2b936ba839d75/zipp-3.23.0-py3-none-any.whl", hash = "sha256:071652d6115ed432f5ce1d34c336c0adfd6a884660d1e9712a256d3d3bd4b14e", size = 10276, upload-time = "2025-06-08T17:06:38.034Z" }, +] diff --git a/wiremock/VERSION b/wiremock/VERSION index eca07e4..2bf1c1c 100644 --- a/wiremock/VERSION +++ b/wiremock/VERSION @@ -1 +1 @@ -2.1.2 +2.3.1 diff --git a/wiremock/__init__.py b/wiremock/__init__.py index 966ed80..9bdd35e 100644 --- a/wiremock/__init__.py +++ b/wiremock/__init__.py @@ -1,4 +1,5 @@ import os __wiremock_version_path__ = os.path.realpath(__file__ + '/../VERSION') -__version__ = open(__wiremock_version_path__, 'r').readline().strip() +with open(__wiremock_version_path__, 'r') as f: + __version__ = f.readline().strip() diff --git a/wiremock/base/base_resource.py b/wiremock/base/base_resource.py index 3c9c91c..714da80 100644 --- a/wiremock/base/base_resource.py +++ b/wiremock/base/base_resource.py @@ -1,14 +1,19 @@ import json +from typing import List +from urllib.parse import urljoin + import requests from requests import exceptions as rexc from wiremock.base.base_entity import BaseAbstractEntity -from wiremock.constants import make_headers, Config, logger +from wiremock.constants import Config, logger, make_headers from wiremock.exceptions import * class RestClient(object): - def __init__(self, timeout=None, base_url=None, requests_verify=None, requests_cert=None): + def __init__( + self, timeout=None, base_url=None, requests_verify=None, requests_cert=None + ): self.timeout = timeout self.base_url = base_url self.requests_verify = requests_verify @@ -28,7 +33,18 @@ def _requests_cert(self): def _log(self, action, url, **kwargs): ctx = {"timeout": kwargs.get("timeout")} - logger.debug("%s [%s] - %s", action, url, kwargs.get("json", json.dumps(kwargs.get("data", None))), extra=ctx) + logger.debug( + "%s [%s] - %s", + action, + url, + kwargs.get("json", json.dumps(kwargs.get("data", None))), + extra=ctx, + ) + + def _get_url(self, *uri_parts: List[str]) -> str: + + uri = "/".join(map(lambda x: str(x).rstrip("/"), uri_parts)) + return f"{self._base_url().rstrip('/')}{uri}" def post(self, uri, **kwargs): if "timeout" not in kwargs: @@ -38,7 +54,7 @@ def post(self, uri, **kwargs): if "requests_cert" not in kwargs: kwargs["cert"] = self._requests_cert() try: - url = self._base_url() + uri + url = self._get_url(uri) self._log("POST", url, **kwargs) return requests.post(url, **kwargs) except rexc.Timeout as e: # pragma: no cover @@ -54,7 +70,7 @@ def get(self, uri, **kwargs): if "requests_cert" not in kwargs: kwargs["cert"] = self._requests_cert() try: - url = self._base_url() + uri + url = self._get_url(uri) self._log("GET", url, **kwargs) return requests.get(url, **kwargs) except rexc.Timeout as e: # pragma: no cover @@ -70,7 +86,7 @@ def put(self, uri, **kwargs): if "requests_cert" not in kwargs: kwargs["cert"] = self._requests_cert() try: - url = self._base_url() + uri + url = self._get_url(uri) self._log("PUT", url, **kwargs) return requests.put(url, **kwargs) except rexc.Timeout as e: # pragma: no cover @@ -86,7 +102,7 @@ def patch(self, uri, **kwargs): # pragma: no cover if "requests_cert" not in kwargs: kwargs["cert"] = self._requests_cert() try: - url = self._base_url() + uri + url = self._get_url(uri) self._log("PATCH", url, **kwargs) return requests.patch(url, **kwargs) except rexc.Timeout as e: # pragma: no cover @@ -102,7 +118,7 @@ def delete(self, uri, **kwargs): if "requests_cert" not in kwargs: kwargs["cert"] = self._requests_cert() try: - url = self._base_url() + uri + url = self._get_url(uri) self._log("DELETE", url, **kwargs) return requests.delete(url, **kwargs) except rexc.Timeout as e: # pragma: no cover @@ -118,7 +134,7 @@ def options(self, uri, **kwargs): # pragma: no cover if "requests_cert" not in kwargs: kwargs["cert"] = self._requests_cert() try: - url = self._base_url() + uri + url = self._get_url(uri) self._log("OPTIONS", url, **kwargs) return requests.options(url, **kwargs) except rexc.Timeout as e: # pragma: no cover @@ -134,7 +150,7 @@ def head(self, uri, **kwargs): # pragma: no cover if "requests_cert" not in kwargs: kwargs["cert"] = self._requests_cert() try: - url = self._base_url() + uri + url = self._get_url(uri) self._log("HEAD", url, **kwargs) return requests.head(url, **kwargs) except rexc.Timeout as e: # pragma: no cover @@ -189,7 +205,9 @@ def get_base_uri(cls, endpoint, **id_dict): @staticmethod def get_entity_id(entity_id, entityClass): - if not (isinstance(entity_id, (int, str)) or isinstance(entity_id, entityClass)): + if not ( + isinstance(entity_id, (int, str)) or isinstance(entity_id, entityClass) + ): raise InvalidInputException(422, entity_id) if isinstance(entity_id, entityClass): entity_id = entity_id.id @@ -205,16 +223,24 @@ def validate_is_entity(entity, entityClass): def _create(cls, entity, parameters=None, ids={}): # pragma: no cover if isinstance(entity, BaseAbstractEntity): response = cls.REST_CLIENT.post( - cls.get_base_uri(cls.endpoint(), **ids), json=entity.get_json_data(), headers=make_headers(), params=parameters + cls.get_base_uri(cls.endpoint(), **ids), + json=entity.get_json_data(), + headers=make_headers(), + params=parameters, ) else: response = cls.REST_CLIENT.post( - cls.get_base_uri(cls.endpoint(), **ids), data=json.dumps(entity), headers=make_headers(), params=parameters + cls.get_base_uri(cls.endpoint(), **ids), + data=json.dumps(entity), + headers=make_headers(), + params=parameters, ) response = cls.REST_CLIENT.handle_response(response) - if cls.entity_class() is None or not issubclass(cls.entity_class(), BaseAbstractEntity): + if cls.entity_class() is None or not issubclass( + cls.entity_class(), BaseAbstractEntity + ): return response # pragma: no cover else: return cls.entity_class().from_dict(response.json()) @@ -226,16 +252,24 @@ def _update(cls, entity, parameters=None, ids={}): # pragma: no cover ids["id"] = entity_id if isinstance(entity, BaseAbstractEntity): response = cls.REST_CLIENT.put( - cls.get_base_uri(cls.endpoint_single(), **ids), json=entity.get_json_data(), headers=make_headers(), params=parameters + cls.get_base_uri(cls.endpoint_single(), **ids), + json=entity.get_json_data(), + headers=make_headers(), + params=parameters, ) else: response = cls.REST_CLIENT.put( - cls.get_base_uri(cls.endpoint_single(), **ids), data=json.dumps(entity), headers=make_headers(), params=parameters + cls.get_base_uri(cls.endpoint_single(), **ids), + data=json.dumps(entity), + headers=make_headers(), + params=parameters, ) response = cls.REST_CLIENT.handle_response(response) - if cls.entity_class() is None or not issubclass(cls.entity_class(), BaseAbstractEntity): + if cls.entity_class() is None or not issubclass( + cls.entity_class(), BaseAbstractEntity + ): return response # pragma: no cover else: return cls.entity_class().from_dict(response.json()) @@ -247,26 +281,40 @@ def _partial_update(cls, entity, parameters=None, ids={}): # pragma: no cover ids["id"] = entity_id if isinstance(entity, BaseAbstractEntity): response = cls.REST_CLIENT.patch( - cls.get_base_uri(cls.endpoint_single(), **ids), json=entity.get_json_data(), headers=make_headers(), params=parameters + cls.get_base_uri(cls.endpoint_single(), **ids), + json=entity.get_json_data(), + headers=make_headers(), + params=parameters, ) else: response = cls.REST_CLIENT.patch( - cls.get_base_uri(cls.endpoint_single(), **ids), data=json.dumps(entity), headers=make_headers(), params=parameters + cls.get_base_uri(cls.endpoint_single(), **ids), + data=json.dumps(entity), + headers=make_headers(), + params=parameters, ) response = cls.REST_CLIENT.handle_response(response) - if cls.entity_class() is None or not issubclass(cls.entity_class(), BaseAbstractEntity): + if cls.entity_class() is None or not issubclass( + cls.entity_class(), BaseAbstractEntity + ): return response # pragma: no cover else: return cls.entity_class().from_dict(response.json()) @classmethod def _retreive_all(cls, parameters=None, ids={}): # pragma: no cover - response = cls.REST_CLIENT.get(cls.get_base_uri(cls.endpoint(), **ids), headers=make_headers(), params=parameters) + response = cls.REST_CLIENT.get( + cls.get_base_uri(cls.endpoint(), **ids), + headers=make_headers(), + params=parameters, + ) response = cls.REST_CLIENT.handle_response(response) - if cls.entity_class() is None or not issubclass(cls.entity_class(), BaseAbstractEntity): + if cls.entity_class() is None or not issubclass( + cls.entity_class(), BaseAbstractEntity + ): return response # pragma: no cover else: response_json = response.json() @@ -283,17 +331,31 @@ def _retreive_all(cls, parameters=None, ids={}): # pragma: no cover def _retreive_one(cls, entity, parameters=None, ids={}): # pragma: no cover if isinstance(entity, (int, float)): ids["id"] = entity - response = cls.REST_CLIENT.get(cls.get_base_uri(cls.endpoint_single(), **ids), headers=make_headers(), params=parameters) + response = cls.REST_CLIENT.get( + cls.get_base_uri(cls.endpoint_single(), **ids), + headers=make_headers(), + params=parameters, + ) elif entity is not None and issubclass(entity, BaseAbstractEntity): entity_id = getattr(entity, "id", None) ids["id"] = entity_id - response = cls.REST_CLIENT.get(cls.get_base_uri(cls.endpoint_single(), **ids), headers=make_headers(), params=parameters) + response = cls.REST_CLIENT.get( + cls.get_base_uri(cls.endpoint_single(), **ids), + headers=make_headers(), + params=parameters, + ) else: - response = cls.REST_CLIENT.get(cls.get_base_uri(cls.endpoint_single(), **ids), headers=make_headers(), params=parameters) + response = cls.REST_CLIENT.get( + cls.get_base_uri(cls.endpoint_single(), **ids), + headers=make_headers(), + params=parameters, + ) response = cls.REST_CLIENT.handle_response(response) - if cls.entity_class() is None or not issubclass(cls.entity_class(), BaseAbstractEntity): + if cls.entity_class() is None or not issubclass( + cls.entity_class(), BaseAbstractEntity + ): return response # pragma: no cover else: return cls.entity_class().from_dict(response.json()) @@ -302,19 +364,33 @@ def _retreive_one(cls, entity, parameters=None, ids={}): # pragma: no cover def _delete(cls, entity, parameters=None, ids={}): # pragma: no cover if isinstance(entity, (int, float)): ids["id"] = entity - response = cls.REST_CLIENT.delete(cls.get_base_uri(cls.endpoint_single(), **ids), headers=make_headers(), params=parameters) + response = cls.REST_CLIENT.delete( + cls.get_base_uri(cls.endpoint_single(), **ids), + headers=make_headers(), + params=parameters, + ) elif isinstance(entity, BaseAbstractEntity): entity_id = getattr(entity, "id", None) ids["id"] = entity_id - response = cls.REST_CLIENT.delete(cls.get_base_uri(cls.endpoint_single(), **ids), headers=make_headers(), params=parameters) + response = cls.REST_CLIENT.delete( + cls.get_base_uri(cls.endpoint_single(), **ids), + headers=make_headers(), + params=parameters, + ) else: - response = cls.REST_CLIENT.delete(cls.get_base_uri(cls.endpoint_single(), **ids), headers=make_headers(), params=parameters) + response = cls.REST_CLIENT.delete( + cls.get_base_uri(cls.endpoint_single(), **ids), + headers=make_headers(), + params=parameters, + ) response = cls.REST_CLIENT.handle_response(response) if response is None: return entity - if cls.entity_class() is None or not issubclass(cls.entity_class(), BaseAbstractEntity): + if cls.entity_class() is None or not issubclass( + cls.entity_class(), BaseAbstractEntity + ): return response # pragma: no cover else: try: diff --git a/wiremock/resources/mappings/models.py b/wiremock/resources/mappings/models.py index ba3f2af..35a8a59 100644 --- a/wiremock/resources/mappings/models.py +++ b/wiremock/resources/mappings/models.py @@ -1,5 +1,10 @@ from wiremock._compat import add_metaclass -from wiremock.base import BaseEntity, JsonProperty, BaseAbstractEntity, BaseEntityMetaType +from wiremock.base import ( + BaseAbstractEntity, + BaseEntity, + BaseEntityMetaType, + JsonProperty, +) class HttpMethods(object): @@ -124,16 +129,21 @@ class MappingRequest(BaseAbstractEntity): url_path = JsonProperty("urlPath") url_path_pattern = JsonProperty("urlPathPattern") url_pattern = JsonProperty("urlPattern") - basic_auth_credentials = JsonProperty("basicAuthCredentials", klass=BasicAuthCredentials) + basic_auth_credentials = JsonProperty( + "basicAuthCredentials", klass=BasicAuthCredentials + ) cookies = JsonProperty("cookies", klass=dict) headers = JsonProperty("headers", klass=dict) query_parameters = JsonProperty("queryParameters", klass=dict) body_patterns = JsonProperty("bodyPatterns", klass=list, list_klass=dict) + metadata = JsonProperty("metadata", klass=dict) @add_metaclass(BaseEntityMetaType) class MappingResponse(BaseAbstractEntity): - additional_proxy_request_headers = JsonProperty("additionalProxyRequestHeaders", klass=dict) + additional_proxy_request_headers = JsonProperty( + "additionalProxyRequestHeaders", klass=dict + ) base64_body = JsonProperty("base64Body") body = JsonProperty("body") body_file_name = JsonProperty("bodyFileName") @@ -148,6 +158,7 @@ class MappingResponse(BaseAbstractEntity): status_message = JsonProperty("statusMessage") transformer_parameters = JsonProperty("transformerParameters", klass=dict) transformers = JsonProperty("transformers", klass=list) + metadata = JsonProperty("metadata", klass=dict) class Mapping(BaseEntity): @@ -159,6 +170,7 @@ class Mapping(BaseEntity): new_scenario_state = JsonProperty("newScenarioState") required_scenario_state = JsonProperty("requiredScenarioState") scenario_name = JsonProperty("scenarioName") + metadata = JsonProperty("metadata", klass=dict) @add_metaclass(BaseEntityMetaType) diff --git a/wiremock/resources/mappings/resource.py b/wiremock/resources/mappings/resource.py index e7a72af..83501ba 100644 --- a/wiremock/resources/mappings/resource.py +++ b/wiremock/resources/mappings/resource.py @@ -1,6 +1,6 @@ -from wiremock.constants import make_headers from wiremock.base.base_resource import BaseResource -from wiremock.resources.mappings import Mapping, AllMappings, MappingResponse +from wiremock.constants import make_headers +from wiremock.resources.mappings import AllMappings, Mapping, MappingResponse class Mappings(BaseResource): @@ -12,6 +12,10 @@ def endpoint(cls): def endpoint_single(cls): return "/mappings/{id}" + @classmethod + def endpoint_delete_by_metadata(cls): + return "/mappings/remove-by-metadata" + @classmethod def entity_class(cls): return MappingResponse @@ -19,13 +23,20 @@ def entity_class(cls): @classmethod def create_mapping(cls, mapping, parameters={}): cls.validate_is_entity(mapping, Mapping) - response = cls.REST_CLIENT.post(cls.get_base_uri(cls.endpoint()), json=mapping.get_json_data(), headers=make_headers(), params=parameters) + response = cls.REST_CLIENT.post( + cls.get_base_uri(cls.endpoint()), + json=mapping.get_json_data(), + headers=make_headers(), + params=parameters, + ) response = cls.REST_CLIENT.handle_response(response) - return MappingResponse.from_dict(response.json()) + return Mapping.from_dict(response.json()) @classmethod def retrieve_all_mappings(cls, parameters={}): - response = cls.REST_CLIENT.get(cls.get_base_uri(cls.endpoint()), headers=make_headers(), params=parameters) + response = cls.REST_CLIENT.get( + cls.get_base_uri(cls.endpoint()), headers=make_headers(), params=parameters + ) response = cls.REST_CLIENT.handle_response(response) return AllMappings.from_dict(response.json()) @@ -33,7 +44,11 @@ def retrieve_all_mappings(cls, parameters={}): def retrieve_mapping(cls, mapping_id, parameters={}): mapping_id = cls.get_entity_id(mapping_id, Mapping) ids = {"id": mapping_id} - response = cls.REST_CLIENT.get(cls.get_base_uri(cls.endpoint_single(), **ids), headers=make_headers(), params=parameters) + response = cls.REST_CLIENT.get( + cls.get_base_uri(cls.endpoint_single(), **ids), + headers=make_headers(), + params=parameters, + ) response = cls.REST_CLIENT.handle_response(response) return Mapping.from_dict(response.json()) @@ -43,7 +58,10 @@ def update_mapping(cls, mapping, parameters={}): mapping_id = cls.get_entity_id(mapping, Mapping) ids = {"id": mapping_id} response = cls.REST_CLIENT.put( - cls.get_base_uri(cls.endpoint_single(), **ids), json=mapping.get_json_data(), headers=make_headers(), params=parameters + cls.get_base_uri(cls.endpoint_single(), **ids), + json=mapping.get_json_data(), + headers=make_headers(), + params=parameters, ) response = cls.REST_CLIENT.handle_response(response) return Mapping.from_dict(response.json()) @@ -51,25 +69,50 @@ def update_mapping(cls, mapping, parameters={}): @classmethod def persist_mappings(cls, parameters={}): ids = {"id": "save"} - response = cls.REST_CLIENT.post(cls.get_base_uri(cls.endpoint_single(), **ids), headers=make_headers(), params=parameters) + response = cls.REST_CLIENT.post( + cls.get_base_uri(cls.endpoint_single(), **ids), + headers=make_headers(), + params=parameters, + ) return cls.REST_CLIENT.handle_response(response) @classmethod def reset_mappings(cls, parameters={}): ids = {"id": "reset"} - response = cls.REST_CLIENT.post(cls.get_base_uri(cls.endpoint_single(), **ids), headers=make_headers(), params=parameters) + response = cls.REST_CLIENT.post( + cls.get_base_uri(cls.endpoint_single(), **ids), + headers=make_headers(), + params=parameters, + ) return cls.REST_CLIENT.handle_response(response) @classmethod def delete_all_mappings(cls, parameters={}): - response = cls.REST_CLIENT.delete(cls.get_base_uri(cls.endpoint()), headers=make_headers(), params=parameters) + response = cls.REST_CLIENT.delete( + cls.get_base_uri(cls.endpoint()), headers=make_headers(), params=parameters + ) return cls.REST_CLIENT.handle_response(response) @classmethod def delete_mapping(cls, mapping_id, parameters={}): mapping_id = cls.get_entity_id(mapping_id, Mapping) ids = {"id": mapping_id} - response = cls.REST_CLIENT.delete(cls.get_base_uri(cls.endpoint_single(), **ids), headers=make_headers(), params=parameters) + response = cls.REST_CLIENT.delete( + cls.get_base_uri(cls.endpoint_single(), **ids), + headers=make_headers(), + params=parameters, + ) + return cls.REST_CLIENT.handle_response(response) + + @classmethod + def delete_mapping_by_metadata(cls, metadata, parameters={}): + response = cls.REST_CLIENT.post( + cls.get_base_uri(cls.endpoint_delete_by_metadata()), + headers=make_headers(), + params=parameters, + json=metadata, + ) + return cls.REST_CLIENT.handle_response(response) diff --git a/wiremock/server/server.py b/wiremock/server/server.py index 868f0fa..e3594cb 100644 --- a/wiremock/server/server.py +++ b/wiremock/server/server.py @@ -2,28 +2,38 @@ """WireMock Server Management.""" import atexit import socket - import time +from subprocess import PIPE, STDOUT, Popen import requests -from pkg_resources import resource_filename -from subprocess import Popen, PIPE, STDOUT +from importlib.resources import files -from wiremock.server.exceptions import WireMockServerAlreadyStartedError, WireMockServerNotStartedError +from wiremock.server.exceptions import ( + WireMockServerAlreadyStartedError, + WireMockServerNotStartedError, +) class WireMockServer(object): DEFAULT_JAVA = "java" # Assume java in PATH - DEFAULT_JAR = resource_filename("wiremock", "server/wiremock-standalone-2.6.0.jar") - - def __init__(self, java_path=DEFAULT_JAVA, jar_path=DEFAULT_JAR, port=None, max_attempts=10): + DEFAULT_JAR = files("wiremock") / "server" / "wiremock-standalone-2.35.1.jar" + + def __init__( + self, + java_path=DEFAULT_JAVA, + jar_path=DEFAULT_JAR, + port=None, + max_attempts=10, + root_dir=None, + ): self.java_path = java_path self.jar_path = jar_path self.port = port or self._get_free_port() self.__subprocess = None self.__running = False self.max_attempts = max_attempts + self.root_dir = root_dir def __enter__(self): self.start() @@ -38,9 +48,21 @@ def is_running(self): def start(self): if self.is_running: - raise WireMockServerAlreadyStartedError("WireMockServer already started on port {}".format(self.port)) + raise WireMockServerAlreadyStartedError( + "WireMockServer already started on port {}".format(self.port) + ) - cmd = [self.java_path, "-jar", self.jar_path, "--port", str(self.port), "--local-response-templating"] + cmd = [ + self.java_path, + "-jar", + self.jar_path, + "--port", + str(self.port), + "--local-response-templating", + ] + if self.root_dir is not None: + cmd.append("--root-dir") + cmd.append(str(self.root_dir)) try: self.__subprocess = Popen(cmd, stdin=PIPE, stdout=PIPE, stderr=STDOUT) except OSError as e: @@ -50,7 +72,13 @@ def start(self): if self.__subprocess.poll() is not None: # Process complete - server not started raise WireMockServerNotStartedError( - "\n".join(["returncode: {}".format(self.__subprocess.returncode), "stdout:", str(self.__subprocess.stdout.read())]) + "\n".join( + [ + "returncode: {}".format(self.__subprocess.returncode), + "stdout:", + str(self.__subprocess.stdout.read()), + ] + ) ) # Call the /__admin endpoint as a check for running state @@ -63,12 +91,17 @@ def start(self): if resp.status_code == 200: success = True break - time.sleep(0.25) except requests.exceptions.ConnectionError: pass + time.sleep(0.25) + if not success: - raise WireMockServerNotStartedError("unable to get a successful GET http://localhost:{}/__admin response".format(self.port)) + raise WireMockServerNotStartedError( + "unable to get a successful GET http://localhost:{}/__admin response".format( + self.port + ) + ) atexit.register(self.stop, raise_on_error=False) self.__running = True diff --git a/wiremock/server/wiremock-standalone-2.35.1.jar b/wiremock/server/wiremock-standalone-2.35.1.jar new file mode 100644 index 0000000..d0143c9 Binary files /dev/null and b/wiremock/server/wiremock-standalone-2.35.1.jar differ diff --git a/wiremock/server/wiremock-standalone-2.6.0.jar b/wiremock/server/wiremock-standalone-2.6.0.jar deleted file mode 100644 index 650abe2..0000000 Binary files a/wiremock/server/wiremock-standalone-2.6.0.jar and /dev/null differ diff --git a/wiremock/tests/resource_tests/near_misses_tests/__init__.py b/wiremock/testing/__init__.py similarity index 100% rename from wiremock/tests/resource_tests/near_misses_tests/__init__.py rename to wiremock/testing/__init__.py diff --git a/wiremock/testing/testcontainer.py b/wiremock/testing/testcontainer.py new file mode 100644 index 0000000..b9580a1 --- /dev/null +++ b/wiremock/testing/testcontainer.py @@ -0,0 +1,307 @@ +import json +import os +import tarfile +import tempfile +import time +from contextlib import contextmanager +from pathlib import Path +from typing import Any, Dict, Generator, List, Optional, Tuple, Union +from urllib.parse import urljoin + +import docker +import requests +from testcontainers.core.container import DockerContainer +from testcontainers.core.exceptions import ContainerStartException +from testcontainers.core.waiting_utils import wait_container_is_ready + +from wiremock.resources.mappings.models import Mapping + +TMappingConfigs = Dict[Union[str, Dict], Union[str, int, Dict, Mapping]] + + +class WireMockContainerException(Exception): + pass + + +class WireMockContainer(DockerContainer): + """ + Wiremock container. + """ + + MAPPINGS_DIR: str = "/home/wiremock/mappings/" + FILES_DIR: str = "/home/wiremock/__files/" + + def __init__( + self, + image: str = "wiremock/wiremock:2.35.1-1", + http_server_port: int = 8080, + https_server_port: int = 8443, + secure: bool = True, + verify_ssl_certs: bool = True, + init: bool = True, + docker_client_kwargs: Dict[str, Any] = {}, + ) -> None: + self.http_server_port = http_server_port + self.https_server_port = https_server_port + self.secure = secure + self.verify_ssl_certs = verify_ssl_certs + super(WireMockContainer, self).__init__(image, **docker_client_kwargs) + + if init: + self.initialize() + + def initialize(self) -> None: + self.wire_mock_args: List[str] = [] + self.mapping_stubs: Dict[str, str] = {} + self.mapping_files: Dict[str, str] = {} + self.extensions: Dict[str, bytes] = {} + + if self.secure: + self.with_https_port() + else: + self.with_http_port() + + def with_http_port(self) -> None: + self.with_cli_arg("--port", str(self.http_server_port)) + self.with_exposed_ports(self.http_server_port) + + def with_https_port(self) -> None: + self.with_cli_arg("--https-port", str(self.https_server_port)) + self.with_exposed_ports(self.https_server_port) + + def with_cli_arg(self, arg_name: str, arg_value: str) -> "WireMockContainer": + self.wire_mock_args.append(arg_name) + self.wire_mock_args.append(arg_value) + return self + + def with_mapping(self, name: str, data: TMappingConfigs) -> "WireMockContainer": + self.mapping_stubs[name] = json.dumps(data) + return self + + def with_file(self, name: str, data: Dict[str, Any]): + self.mapping_files[name] = json.dumps(data) + return self + + def with_command(self, cmd: Optional[str] = None) -> "WireMockContainer": + + if not cmd: + cmd = " ".join(self.wire_mock_args) + + super().with_command(cmd) + + return self + + def copy_file_to_container(self, host_path: Path, container_path: Path) -> None: + with open(host_path, "rb") as fp: + self.get_wrapped_container().put_archive( + path=container_path.as_posix(), data=fp.read() + ) + + def copy_files_to_container( + self, configs: Dict[str, Any], container_dir_path: Path, mode: str = "w+" + ) -> None: + + temp_dir = tempfile.mkdtemp() + + # generate temp files all config files + for config_name, config_content in configs.items(): + file_name = os.path.basename(config_name) + destination_path = os.path.join(temp_dir, file_name) + with open(destination_path, mode) as fp: + fp.write(config_content) + + # tar all files from temp dir + tarfile_path = f"{temp_dir}.tar.gz" + with tarfile.open(tarfile_path, "w:gz") as tar: + for root, _, files in os.walk(temp_dir): + for file in files: + file_path = os.path.join(root, file) + arcname = os.path.relpath(file_path, temp_dir) + tar.add(file_path, arcname=arcname) + + # copy tar archive onto container and extract at {container_dir_path} + self.copy_file_to_container( + host_path=Path(tarfile_path), container_path=container_dir_path + ) + + def copy_mappings_to_container(self) -> None: + """Copies all mappings files generated with + `.with_mapping('hello-world.json', {...})` to the container under + the configured MAPPINGS_DIR + """ + + self.copy_files_to_container( + configs=self.mapping_stubs, container_dir_path=Path(f"{self.MAPPINGS_DIR}") + ) + + def copy_mapping_files_to_container(self) -> None: + """Copies all mappings files generated with + `.with_file('hello.json', {...})` to the container under + the configured FILES_DIR + """ + self.copy_files_to_container( + configs=self.mapping_files, container_dir_path=Path(f"{self.FILES_DIR}") + ) + + def server_running(self, retry_count: int = 10, retry_delay: int = 1) -> bool: + """Pings the __admin/mappings endpoint of the wiremock server running inside the + container as a proxy for checking if the server is up and running. + + {retry_count} attempts requests will be made with a delay of {retry_delay} + to allow for race conditions when containers are being spun up + quickly between tests. + + Args: + retry_count: The number of attempts made to ping the server + retry_delay: The number of seconds to wait before each attempt + + Returns: + True if the request is successful + """ + + for _ in range(retry_count): + try: + response = requests.get( + self.get_url("__admin/mappings"), verify=self.verify_ssl_certs + ) + if response.status_code == 200: + return True + except requests.exceptions.RequestException as e: + print(f"Request failed: {e}") + + time.sleep(retry_delay) + + return False + + def reload_mappings(self) -> requests.Response: + """When mappings are mounted into a container via files + the server will already be running as it will start as soon as the container + starts. reload_mappings is called via the rest api to ensure any mappings + added after the server starts are picked up. + """ + resp = requests.post( + self.get_url("__admin/mappings/reset"), verify=self.verify_ssl_certs + ) + if not resp.status_code <= 300: + raise WireMockContainerException("Failed to reload mappings") + + return resp + + @wait_container_is_ready() + def configure(self) -> None: + if not self.server_running(): + raise WireMockContainerException( + "Server does not appear to be running in container" + ) + + self.copy_mappings_to_container() + self.copy_mapping_files_to_container() + + self.reload_mappings() + + def get_base_url(self) -> str: + """Generate the base url of the container wiremock-server + + Returns: + The base to the container based on the hostname and exposed ports + """ + proto = "https" if self.secure else "http" + port = self.https_server_port if self.secure else self.http_server_port + + if os.environ.get("WIREMOCK_DIND", False): + host = "host.docker.internal" + else: + host = self.get_container_host_ip() + + return f"{proto}://{host}:{self.get_exposed_port(port)}" + + def get_url(self, path: str) -> str: + return urljoin(self.get_base_url(), path) + + def start(self, cmd: Optional[str] = None) -> "WireMockContainer": + self.with_command(cmd) + super().start() + self.configure() + return self + + +@contextmanager +def wiremock_container( + image: str = "wiremock/wiremock:2.35.1-1", + http_server_port: int = 8080, + https_server_port: int = 8443, + secure: bool = True, + verify_ssl_certs: bool = True, + mappings: List[Tuple[str, TMappingConfigs]] = [], + start: bool = True, + docker_client_kwargs: Dict[str, Any] = {}, +) -> Generator[WireMockContainer, None, None]: + """ + Start a wiremock test container using Testcontainers + + Attributes + image (str): specify the docker image name and version for wiremock server. + http_server_port (int): The port of the HTTP server port + https_server_port (int): The port of the HTTPS server port + secure (bool): Set True If you're connecting to the server via ssl. + verify_ssl_certs (bool): Should requests verify ssl certs when using + secure connections. + mappings list[Tuple[str, TMappingConfigs]]: a list of tuples containing + mapping name and mapping dictionary. + start (bool): If true, start the container, otherwise just yield + container instance + docker_client_kwargs (dict): Kwargs to pass to the docker client + + Examples: + + Mappings can be provided as tuples of mapping name, TMappingConfigs. This + will create mapping config files in the container. + + ``` + mappings = [ + ( + "hello-world.json", + { + "request": {"method": "GET", "url": "/hello"}, + "response": {"status": 200, "body": "hello"}, + }, + ) + ] + + with wiremock_container(mappings=mappings, verify_ssl_certs=False) as wm: + + resp1 = requests.get(wm.get_url("/hello"), verify=False) + assert resp1.status_code == 200 + ``` + + Or you can use the SDK directly to create mappings via the API. + + + :return: WireMockContainer instance + """ + + client = docker.from_env() + client.ping() + try: + wm = WireMockContainer( + image=image, + http_server_port=http_server_port, + https_server_port=https_server_port, + secure=secure, + verify_ssl_certs=verify_ssl_certs, + docker_client_kwargs=docker_client_kwargs, + ) + [wm.with_mapping(m_name, m_data) for m_name, m_data in mappings] + if start: + with wm: + yield wm + else: + yield wm + except ContainerStartException as e: + raise WireMockContainerException("Error starting wiremock container") from e + except requests.exceptions.RequestException as e: + raise WireMockContainerException( + "Error connecting to wiremock container" + ) from e + finally: + client.close() diff --git a/wiremock/tests/__init__.py b/wiremock/tests/__init__.py deleted file mode 100644 index 4a00840..0000000 --- a/wiremock/tests/__init__.py +++ /dev/null @@ -1 +0,0 @@ -from .base import BaseClientTestCase diff --git a/wiremock/tests/base.py b/wiremock/tests/base.py deleted file mode 100644 index 5d37ab8..0000000 --- a/wiremock/tests/base.py +++ /dev/null @@ -1,80 +0,0 @@ -import json -import logging -from nose.tools import nottest -from nose.plugins.attrib import attr -import responses -from unittest import TestCase - -from wiremock.constants import Config - - -logging.basicConfig(level=logging.DEBUG) - - -class BaseClientTestCase(TestCase): - """ - Adds utility methods. - """ - - @classmethod - def setUpClass(cls): - Config.base_url = "http://localhost/__admin" - Config.timeout = 1 - super(BaseClientTestCase, cls).setUpClass() - - def assertHasAttr(self, obj, attr): - self.assertTrue(hasattr(obj, attr), "%s doesn't have attribute: %s" % (obj, attr)) - - def assertNotHasAttr(self, obj, attr): - self.assertFalse(hasattr(obj, attr), "%s shouldn't have attribute: %s" % (obj, attr)) - - def assertAttrEqual(self, obj, attr, value): - self.assertHasAttr(obj, attr) - self.assertEqual(getattr(obj, attr), value) - - def assertAttrNotEqual(self, obj, attr, value): - self.assertHasAttr(obj, attr) - self.assertNotEqual(getattr(obj, attr), value) - - def assertNotRaise(self, callableObj, *args, **kwargs): - try: - callableObj(*args, **kwargs) - except Exception as e: - raise AssertionError("Shouldn't raise and exception: {}".format(e)) - - def assertAnyRaise(self, callableObj, *args, **kwargs): - try: - callableObj(*args, **kwargs) - except: - return - raise AssertionError("Should raise an exception") - - def assertIsSubclass(self, C, B): - if issubclass(C, B): - return - else: - raise AssertionError("{} is Not a Subclass of {}".format(B, C)) - - def assertDictContainsKey(self, obj, key): - if key in obj: - return - else: - raise AssertionError("{} is not in dict: {}".format(key, obj)) - - def assertDictContainsKeyWithValue(self, obj, key, value): - if key in obj: - self.assertEquals(value, obj[key]) - else: - raise AssertionError("{} is not in dict: {}".format(key, obj)) - - def assertDictContainsKeyWithValueType(self, obj, key, B): - if key in obj: - if isinstance(obj[key], B): - return - else: - raise AssertionError("dict[{}]={} is not of type: {}".format(key, obj[key], B)) - else: - raise AssertionError("{} is not in dict: {}".format(key, obj)) - - -__all__ = ["BaseClientTestCase", "nottest", "attr", "json", "responses"] diff --git a/wiremock/tests/base_tests/__init__.py b/wiremock/tests/base_tests/__init__.py deleted file mode 100644 index 2309c00..0000000 --- a/wiremock/tests/base_tests/__init__.py +++ /dev/null @@ -1,2 +0,0 @@ -# -*- coding: utf-8 -*- -"""Tests for base sub-package.""" diff --git a/wiremock/tests/base_tests/base_resource_tests.py b/wiremock/tests/base_tests/base_resource_tests.py deleted file mode 100644 index d0f2fb8..0000000 --- a/wiremock/tests/base_tests/base_resource_tests.py +++ /dev/null @@ -1,38 +0,0 @@ -# -*- coding: utf-8 -*- -"""Tests for base_resource module.""" - -import unittest - -from requests import Response - -from wiremock.base import RestClient -from wiremock.exceptions import UnexpectedResponseException -from wiremock.tests.base import BaseClientTestCase, attr - - -class RestClientTestCase(BaseClientTestCase): - def setUp(self): - super(RestClientTestCase, self).setUp() - self.client = RestClient() - - @attr("unit") - def test_handle_response(self): - for status_code in [200, 201, 204]: - resp = self._create_dummy_response(status_code) - returned = self.client.handle_response(resp) - self.assertEqual(returned, resp) - - resp = self._create_dummy_response(203) - with self.assertRaises(UnexpectedResponseException): - self.client.handle_response(resp) - - # Helpers - - def _create_dummy_response(self, status_code=200): - resp = Response() - resp.status_code = status_code - return resp - - -if __name__ == "__main__": - unittest.main() diff --git a/wiremock/tests/resource_tests/mappings_tests/resource_tests.py b/wiremock/tests/resource_tests/mappings_tests/resource_tests.py deleted file mode 100644 index 4fccd83..0000000 --- a/wiremock/tests/resource_tests/mappings_tests/resource_tests.py +++ /dev/null @@ -1,89 +0,0 @@ -import responses - -from wiremock.tests.base import BaseClientTestCase, attr -from wiremock.client import Mapping, MappingMeta, MappingRequest, MappingResponse, Mappings, AllMappings - - -class MappingsResourceTests(BaseClientTestCase): - @attr("unit", "mappings", "resource") - @responses.activate - def test_create_mapping(self): - e = MappingResponse(body="test", status=200) - resp = e.get_json_data() - responses.add(responses.POST, "http://localhost/__admin/mappings", json=resp, status=200) - - m = Mapping(priority=1, request=MappingRequest(url="test", method="GET"), response=MappingResponse(status=200, body="test")) - - r = Mappings.create_mapping(m) - self.assertIsInstance(r, MappingResponse) - self.assertEquals(200, r.status) - self.assertEquals("test", r.body) - - @attr("unit", "mappings", "resource") - @responses.activate - def test_retrieve_all_mappings(self): - e = AllMappings(mappings=[Mapping(id="1234-5678", priority=1),], meta=MappingMeta(total=1)) - resp = e.get_json_data() - responses.add(responses.GET, "http://localhost/__admin/mappings", json=resp, status=200) - - r = Mappings.retrieve_all_mappings() - self.assertIsInstance(r, AllMappings) - self.assertIsInstance(r.meta, MappingMeta) - self.assertEquals(1, r.meta.total) - - @attr("unit", "mappings", "resource") - @responses.activate - def test_retrieve_mapping(self): - e = Mapping(id="1234-5678", priority=1) - resp = e.get_json_data() - responses.add(responses.GET, "http://localhost/__admin/mappings/1234-5678", json=resp, status=200) - - r = Mappings.retrieve_mapping(e) - self.assertIsInstance(r, Mapping) - self.assertEquals("1234-5678", r.id) - self.assertEquals(1, r.priority) - - @attr("unit", "mappings", "resource") - @responses.activate - def test_update_mapping(self): - e = Mapping(id="1234-5678", priority=1) - resp = e.get_json_data() - responses.add(responses.PUT, "http://localhost/__admin/mappings/1234-5678", json=resp, status=200) - - r = Mappings.update_mapping(e) - self.assertIsInstance(r, Mapping) - self.assertEquals("1234-5678", r.id) - self.assertEquals(1, r.priority) - - @attr("unit", "mappings", "resource") - @responses.activate - def test_persist_mappings(self): - responses.add(responses.POST, "http://localhost/__admin/mappings/save", body="", status=200) - - r = Mappings.persist_mappings() - self.assertEquals(200, r.status_code) - - @attr("unit", "mappings", "resource") - @responses.activate - def test_reset_mappings(self): - responses.add(responses.POST, "http://localhost/__admin/mappings/reset", body="", status=200) - - r = Mappings.reset_mappings() - self.assertEquals(200, r.status_code) - - @attr("unit", "mappings", "resource") - @responses.activate - def test_delete_all_mappings(self): - responses.add(responses.DELETE, "http://localhost/__admin/mappings", body="", status=200) - - r = Mappings.delete_all_mappings() - self.assertEquals(200, r.status_code) - - @attr("unit", "mappings", "resource") - @responses.activate - def test_delete_mapping(self): - e = Mapping(id="1234-5678", priority=1) - responses.add(responses.DELETE, "http://localhost/__admin/mappings/1234-5678", body="", status=200) - - r = Mappings.delete_mapping(e) - self.assertEquals(200, r.status_code) diff --git a/wiremock/tests/resource_tests/mappings_tests/serialization_tests.py b/wiremock/tests/resource_tests/mappings_tests/serialization_tests.py deleted file mode 100644 index de4510e..0000000 --- a/wiremock/tests/resource_tests/mappings_tests/serialization_tests.py +++ /dev/null @@ -1,259 +0,0 @@ -from wiremock.tests.base import BaseClientTestCase, attr -from wiremock.resources.mappings import ( - BasicAuthCredentials, - Mapping, - MappingRequest, - MappingMeta, - MappingResponse, - AllMappings, - DelayDistribution, - DelayDistributionMethods, -) - - -class MappingsSerializationTests(BaseClientTestCase): - @attr("unit", "serialization", "mappings") - def test_basic_auth_credentials_serialization(self): - e = BasicAuthCredentials(username="username", password="password") - serialized = e.get_json_data() - self.assertDictContainsKeyWithValue(serialized, "username", "username") - self.assertDictContainsKeyWithValue(serialized, "password", "password") - - @attr("unit", "serialization", "mappings") - def test_basic_auth_credentials_deserialization(self): - serialized = {"username": "username", "password": "password"} - e = BasicAuthCredentials.from_dict(serialized) - self.assertIsInstance(e, BasicAuthCredentials) - self.assertEquals("username", e.username) - self.assertEquals("password", e.password) - - @attr("unit", "serialization", "mappings") - def test_mapping_meta_serialization(self): - e = MappingMeta(total=1) - serialized = e.get_json_data() - self.assertDictContainsKeyWithValue(serialized, "total", 1) - - @attr("unit", "serialization", "mappings") - def test_mapping_meta_deserialization(self): - serialized = {"total": 1} - e = MappingMeta.from_dict(serialized) - self.assertIsInstance(e, MappingMeta) - self.assertEquals(1, e.total) - - @attr("unit", "serialization", "mappings") - def test_delay_distribution_serialization(self): - e = DelayDistribution(distribution_type=DelayDistributionMethods.LOG_NORMAL, median=0.1, sigma=0.2, upper=4, lower=3) - serialized = e.get_json_data() - self.assertDictContainsKeyWithValue(serialized, "type", "lognormal") - self.assertDictContainsKeyWithValue(serialized, "median", 0.1) - self.assertDictContainsKeyWithValue(serialized, "sigma", 0.2) - self.assertDictContainsKeyWithValue(serialized, "lower", 3) - self.assertDictContainsKeyWithValue(serialized, "upper", 4) - - @attr("unit", "serialization", "mappings") - def test_delay_distribution_deserialization(self): - serialized = {"type": "lognormal", "median": 0.1, "sigma": 0.2, "lower": 3, "upper": 4} - e = DelayDistribution.from_dict(serialized) - self.assertIsInstance(e, DelayDistribution) - self.assertEquals("lognormal", e.distribution_type) - self.assertEquals(0.1, e.median) - self.assertEquals(0.2, e.sigma) - self.assertEquals(3, e.lower) - self.assertEquals(4, e.upper) - - @attr("unit", "serialization", "mappings") - def test_mapping_request_serialization(self): - e = MappingRequest( - method="GET", - url="test1", - url_path="test2", - url_path_pattern="test3", - url_pattern="test4", - basic_auth_credentials=BasicAuthCredentials(username="username", password="password"), - cookies={"chocolate": "chip"}, - headers={"Accept": "stuff"}, - query_parameters={"param": "1"}, - body_patterns={"test": "test2"}, - ) - serialized = e.get_json_data() - self.assertDictContainsKeyWithValue(serialized, "method", "GET") - self.assertDictContainsKeyWithValue(serialized, "url", "test1") - self.assertDictContainsKeyWithValue(serialized, "urlPath", "test2") - self.assertDictContainsKeyWithValue(serialized, "urlPathPattern", "test3") - self.assertDictContainsKeyWithValue(serialized, "urlPattern", "test4") - self.assertDictContainsKeyWithValue(serialized, "basicAuthCredentials", {"username": "username", "password": "password"}) - self.assertDictContainsKeyWithValue(serialized, "cookies", {"chocolate": "chip"}) - self.assertDictContainsKeyWithValue(serialized, "headers", {"Accept": "stuff"}) - self.assertDictContainsKeyWithValue(serialized, "queryParameters", {"param": "1"}) - self.assertDictContainsKeyWithValue(serialized, "bodyPatterns", {"test": "test2"}) - - @attr("unit", "serialization", "mappings") - def test_mapping_request_deserialization(self): - serialized = { - "method": "GET", - "url": "test1", - "urlPath": "test2", - "urlPathPattern": "test3", - "urlPattern": "test4", - "basicAuthCredentials": {"username": "username", "password": "password"}, - "cookies": {"chocolate": "chip"}, - "headers": {"Accept": "stuff"}, - "queryParameters": {"param": "1"}, - "bodyPatterns": {"test": "test2"}, - } - e = MappingRequest.from_dict(serialized) - self.assertIsInstance(e, MappingRequest) - self.assertEquals("GET", e.method) - self.assertEquals("test1", e.url) - self.assertEquals("test2", e.url_path) - self.assertEquals("test3", e.url_path_pattern) - self.assertEquals("test4", e.url_pattern) - self.assertIsInstance(e.basic_auth_credentials, BasicAuthCredentials) - self.assertEquals("username", e.basic_auth_credentials.username) - self.assertEquals("password", e.basic_auth_credentials.password) - self.assertEquals({"chocolate": "chip"}, e.cookies) - self.assertEquals({"Accept": "stuff"}, e.headers) - self.assertEquals({"param": "1"}, e.query_parameters) - self.assertEquals({"test": "test2"}, e.body_patterns) - - @attr("unit", "serialization", "mappings") - def test_mapping_response_serialization(self): - e = MappingResponse( - additional_proxy_request_headers={"test": "1"}, - base64_body="test2", - body="test3", - body_file_name="test4", - json_body="test5", - delay_distribution=DelayDistribution(distribution_type="lognormal", sigma=0.1, median=0.2), - fault="test6", - fixed_delay_milliseconds=500, - from_configured_stub="test7", - headers={"test": "1"}, - proxy_base_url="test8", - status=200, - status_message="test9", - transformer_parameters={"test2": "2"}, - transformers=["test10"], - ) - serialized = e.get_json_data() - self.assertDictContainsKeyWithValue(serialized, "additionalProxyRequestHeaders", {"test": "1"}) - self.assertDictContainsKeyWithValue(serialized, "base64Body", "test2") - self.assertDictContainsKeyWithValue(serialized, "body", "test3") - self.assertDictContainsKeyWithValue(serialized, "bodyFileName", "test4") - self.assertDictContainsKeyWithValue(serialized, "jsonBody", "test5") - self.assertDictContainsKeyWithValue(serialized, "delayDistribution", {"type": "lognormal", "sigma": 0.1, "median": 0.2}) - self.assertDictContainsKeyWithValue(serialized, "fault", "test6") - self.assertDictContainsKeyWithValue(serialized, "fixedDelayMilliseconds", 500) - self.assertDictContainsKeyWithValue(serialized, "fromConfiguredStub", "test7") - self.assertDictContainsKeyWithValue(serialized, "headers", {"test": "1"}) - self.assertDictContainsKeyWithValue(serialized, "proxyBaseUrl", "test8") - self.assertDictContainsKeyWithValue(serialized, "status", 200) - self.assertDictContainsKeyWithValue(serialized, "statusMessage", "test9") - self.assertDictContainsKeyWithValue(serialized, "transformerParameters", {"test2": "2"}) - self.assertDictContainsKeyWithValue(serialized, "transformers", ["test10"]) - - @attr("unit", "serialization", "mappings") - def test_mapping_response_deserialization(self): - serialized = { - "additionalProxyRequestHeaders": {"test": "1"}, - "base64Body": "test2", - "body": "test3", - "bodyFileName": "test4", - "jsonBody": "test5", - "delayDistribution": {"type": "lognormal", "sigma": 0.1, "median": 0.2}, - "fault": "test6", - "fixedDelayMilliseconds": 500, - "fromConfiguredStub": "test7", - "headers": {"test": "1"}, - "proxyBaseUrl": "test8", - "status": 200, - "statusMessage": "test9", - "transformerParameters": {"test2": "2"}, - "transformers": ["test10"], - } - e = MappingResponse.from_dict(serialized) - self.assertIsInstance(e, MappingResponse) - self.assertEquals({"test": "1"}, e.additional_proxy_request_headers) - self.assertEquals("test2", e.base64_body) - self.assertEquals("test3", e.body) - self.assertEquals("test4", e.body_file_name) - self.assertEquals("test5", e.json_body) - self.assertIsInstance(e.delay_distribution, DelayDistribution) - self.assertEquals("lognormal", e.delay_distribution.distribution_type) - self.assertEquals("test6", e.fault) - self.assertEquals(500, e.fixed_delay_milliseconds) - self.assertEquals("test7", e.from_configured_stub) - self.assertEquals({"test": "1"}, e.headers) - self.assertEquals("test8", e.proxy_base_url) - self.assertEquals(200, e.status) - self.assertEquals("test9", e.status_message) - self.assertEquals({"test2": "2"}, e.transformer_parameters) - self.assertEquals(["test10"], e.transformers) - - @attr("unit", "serialization", "mappings") - def test_mapping_serialization(self): - e = Mapping( - priority=1, - request=MappingRequest(method="GET", url="test"), - response=MappingResponse(status=200, status_message="test2"), - persistent=False, - post_serve_actions={"test": "1"}, - new_scenario_state="test3", - required_scenario_state="test4", - scenario_name="test5", - ) - serialized = e.get_json_data() - self.assertDictContainsKeyWithValue(serialized, "priority", 1) - self.assertDictContainsKeyWithValue(serialized, "request", {"method": "GET", "url": "test"}) - self.assertDictContainsKeyWithValue(serialized, "response", {"status": 200, "statusMessage": "test2"}) - self.assertDictContainsKeyWithValue(serialized, "persistent", False) - self.assertDictContainsKeyWithValue(serialized, "postServeActions", {"test": "1"}) - self.assertDictContainsKeyWithValue(serialized, "newScenarioState", "test3") - self.assertDictContainsKeyWithValue(serialized, "requiredScenarioState", "test4") - self.assertDictContainsKeyWithValue(serialized, "scenarioName", "test5") - - @attr("unit", "serialization", "mappings") - def test_mapping_deserialization(self): - serialized = { - "priority": 1, - "request": {"method": "GET", "url": "test"}, - "response": {"status": 200, "statusMessage": "test2"}, - "persistent": False, - "postServeActions": {"test": "1"}, - "newScenarioState": "test3", - "requiredScenarioState": "test4", - "scenarioName": "test5", - } - e = Mapping.from_dict(serialized) - self.assertIsInstance(e, Mapping) - self.assertEquals(1, e.priority) - self.assertIsInstance(e.request, MappingRequest) - self.assertEquals("GET", e.request.method) - self.assertEquals("test", e.request.url) - self.assertIsInstance(e.response, MappingResponse) - self.assertEquals(200, e.response.status) - self.assertEquals("test2", e.response.status_message) - self.assertEquals(False, e.persistent) - self.assertEquals({"test": "1"}, e.post_serve_actions) - self.assertEquals("test3", e.new_scenario_state) - self.assertEquals("test4", e.required_scenario_state) - self.assertEquals("test5", e.scenario_name) - - @attr("unit", "serialization", "mappings") - def test_all_mappings_serialization(self): - e = AllMappings(mappings=[Mapping(priority=1),], meta=MappingMeta(total=1)) - serialized = e.get_json_data() - self.assertDictContainsKeyWithValue(serialized, "mappings", [{"priority": 1},]) - self.assertDictContainsKeyWithValue(serialized, "meta", {"total": 1}) - - @attr("unit", "serialization", "mappings") - def test_all_mappings_deserialization(self): - serialized = {"mappings": [{"priority": 1},], "meta": {"total": 1}} - e = AllMappings.from_dict(serialized) - self.assertIsInstance(e, AllMappings) - self.assertIsInstance(e.mappings, list) - m = e.mappings[0] - self.assertIsInstance(m, Mapping) - self.assertEquals(1, m.priority) - self.assertIsInstance(e.meta, MappingMeta) - self.assertEquals(1, e.meta.total) diff --git a/wiremock/tests/resource_tests/near_misses_tests/resource_tests.py b/wiremock/tests/resource_tests/near_misses_tests/resource_tests.py deleted file mode 100644 index bb34189..0000000 --- a/wiremock/tests/resource_tests/near_misses_tests/resource_tests.py +++ /dev/null @@ -1,61 +0,0 @@ -import responses - -from wiremock.resources.mappings import HttpMethods -from wiremock.tests.base import BaseClientTestCase, attr -from wiremock.client import ( - NearMisses, - NearMissMatch, - NearMissMatchPatternRequest, - NearMissMatchRequest, - NearMissMatchResponse, - NearMissMatchResult, - NearMissRequestPatternResult, -) - - -class NearMissesResourceTests(BaseClientTestCase): - @attr("unit", "nearmisses", "resource") - @responses.activate - def test_find_nearest_misses_by_request(self): - e = NearMissMatchResponse( - near_misses=[ - NearMissMatch( - request=NearMissMatchRequest(url="test", method="GET"), - request_pattern=NearMissRequestPatternResult(url="test1", method="GET"), - match_result=NearMissMatchResult(distance=0.5), - ), - ] - ) - resp = e.get_json_data() - responses.add(responses.POST, "http://localhost/__admin/near-misses/request", json=resp, status=200) - - near_miss_match_request = NearMissMatchRequest(url="test", method=HttpMethods.GET) - r = NearMisses.find_nearest_misses_by_request(near_miss_match_request) - self.assertIsInstance(r, NearMissMatchResponse) - self.assertIsInstance(r.near_misses, list) - result = r.near_misses[0] - self.assertIsInstance(result, NearMissMatch) - self.assertEquals("test", result.request.url) - - @attr("unit", "nearmisses", "resource") - @responses.activate - def test_find_nearest_misses_by_request_pattern(self): - e = NearMissMatchResponse( - near_misses=[ - NearMissMatch( - request=NearMissMatchRequest(url="test", method="GET"), - request_pattern=NearMissRequestPatternResult(url="test1", method="GET"), - match_result=NearMissMatchResult(distance=0.5), - ), - ] - ) - resp = e.get_json_data() - responses.add(responses.POST, "http://localhost/__admin/near-misses/request-pattern", json=resp, status=200) - - near_miss_match_request_pattern = NearMissMatchPatternRequest(url="test", method=HttpMethods.GET) - r = NearMisses.find_nearest_misses_by_request_pattern(near_miss_match_request_pattern) - self.assertIsInstance(r, NearMissMatchResponse) - self.assertIsInstance(r.near_misses, list) - result = r.near_misses[0] - self.assertIsInstance(result, NearMissMatch) - self.assertEquals("test", result.request.url) diff --git a/wiremock/tests/resource_tests/near_misses_tests/serialization_tests.py b/wiremock/tests/resource_tests/near_misses_tests/serialization_tests.py deleted file mode 100644 index 430ee76..0000000 --- a/wiremock/tests/resource_tests/near_misses_tests/serialization_tests.py +++ /dev/null @@ -1,350 +0,0 @@ -from wiremock.tests.base import BaseClientTestCase, attr -from wiremock.resources.mappings import HttpMethods, CommonHeaders, BasicAuthCredentials -from wiremock.resources.near_misses import ( - NearMissMatchPatternRequest, - NearMissMatchResponse, - NearMissMatchRequest, - NearMissMatch, - NearMissMatchResult, - NearMissRequestPatternResult, -) - - -class NearMissesSerializationTests(BaseClientTestCase): - @attr("unit", "serialization", "nearmisses") - def test_near_miss_match_pattern_request_serialization(self): - e = NearMissMatchPatternRequest( - url="test", - url_pattern="test2", - url_path="test3", - url_path_pattern="test4", - method=HttpMethods.GET, - client_ip="1.1.1.1", - headers={CommonHeaders.ACCEPT: "json"}, - query_parameters={"test": 1}, - cookies={"chocolate": "chip"}, - body_patterns={"test": 3}, - basic_auth_credentials=BasicAuthCredentials(username="username", password="password"), - browser_proxy_request=False, - logged_date=12345, - logged_date_string="1/1/2017 00:00:00+0000", - ) - serialized = e.get_json_data() - self.assertDictContainsKeyWithValue(serialized, "url", "test") - self.assertDictContainsKeyWithValue(serialized, "urlPattern", "test2") - self.assertDictContainsKeyWithValue(serialized, "urlPath", "test3") - self.assertDictContainsKeyWithValue(serialized, "urlPathPattern", "test4") - self.assertDictContainsKeyWithValue(serialized, "method", "GET") - self.assertDictContainsKeyWithValue(serialized, "clientIp", "1.1.1.1") - self.assertDictContainsKeyWithValue(serialized, "headers", {"Accept": "json"}) - self.assertDictContainsKeyWithValue(serialized, "queryParameters", {"test": 1}) - self.assertDictContainsKeyWithValue(serialized, "cookies", {"chocolate": "chip"}) - self.assertDictContainsKeyWithValue(serialized, "bodyPatterns", {"test": 3}) - self.assertDictContainsKeyWithValue(serialized, "basicAuthCredentials", {"username": "username", "password": "password"}) - self.assertDictContainsKeyWithValue(serialized, "browserProxyRequest", False) - self.assertDictContainsKeyWithValue(serialized, "loggedDate", 12345) - self.assertDictContainsKeyWithValue(serialized, "loggedDateString", "1/1/2017 00:00:00+0000") - - @attr("unit", "serialization", "nearmisses") - def test_near_miss_match_pattern_request_deserialization(self): - serialized = { - "clientIp": "1.1.1.1", - "cookies": {"chocolate": "chip"}, - "loggedDate": 12345, - "urlPattern": "test2", - "headers": {"Accept": "json"}, - "url": "test", - "urlPath": "test3", - "urlPathPattern": "test4", - "browserProxyRequest": False, - "loggedDateString": "1/1/2017 00:00:00+0000", - "bodyPatterns": {"test": 3}, - "queryParameters": {"test": 1}, - "basicAuthCredentials": {"username": "username", "password": "password"}, - "method": "GET", - } - e = NearMissMatchPatternRequest.from_dict(serialized) - self.assertIsInstance(e, NearMissMatchPatternRequest) - self.assertEquals("test", e.url) - self.assertEquals("test2", e.url_pattern) - self.assertEquals("test3", e.url_path) - self.assertEquals("test4", e.url_path_pattern) - self.assertEquals("GET", e.method) - self.assertEquals("1.1.1.1", e.client_ip) - self.assertEquals({"Accept": "json"}, e.headers) - self.assertEquals({"test": 1}, e.query_parameters) - self.assertEquals({"chocolate": "chip"}, e.cookies) - self.assertDictEqual({"test": 3}, e.body_patterns) - self.assertIsInstance(e.basic_auth_credentials, BasicAuthCredentials) - self.assertEquals("username", e.basic_auth_credentials.username) - self.assertEquals("password", e.basic_auth_credentials.password) - self.assertEquals(False, e.browser_proxy_request) - self.assertEquals(12345, e.logged_date) - self.assertEquals("1/1/2017 00:00:00+0000", e.logged_date_string) - - @attr("unit", "serialization", "nearmisses") - def test_near_miss_match_request_serialization(self): - e = NearMissMatchRequest( - url="test", - absolute_url="test2", - method=HttpMethods.GET, - client_ip="1.1.1.1", - headers={CommonHeaders.ACCEPT: "json"}, - query_parameters={"test": 1}, - cookies={"chocolate": "chip"}, - basic_auth_credentials=BasicAuthCredentials(username="username", password="password"), - browser_proxy_request=False, - logged_date=12345, - logged_date_string="1/1/2017 00:00:00+0000", - body_as_base64="test3", - body="test4", - ) - serialized = e.get_json_data() - self.assertDictContainsKeyWithValue(serialized, "url", "test") - self.assertDictContainsKeyWithValue(serialized, "absoluteUrl", "test2") - self.assertDictContainsKeyWithValue(serialized, "method", "GET") - self.assertDictContainsKeyWithValue(serialized, "clientIp", "1.1.1.1") - self.assertDictContainsKeyWithValue(serialized, "headers", {"Accept": "json"}) - self.assertDictContainsKeyWithValue(serialized, "queryParameters", {"test": 1}) - self.assertDictContainsKeyWithValue(serialized, "cookies", {"chocolate": "chip"}) - self.assertDictContainsKeyWithValue(serialized, "basicAuthCredentials", {"username": "username", "password": "password"}) - self.assertDictContainsKeyWithValue(serialized, "browserProxyRequest", False) - self.assertDictContainsKeyWithValue(serialized, "loggedDate", 12345) - self.assertDictContainsKeyWithValue(serialized, "loggedDateString", "1/1/2017 00:00:00+0000") - self.assertDictContainsKeyWithValue(serialized, "bodyAsBase64", "test3") - self.assertDictContainsKeyWithValue(serialized, "body", "test4") - - @attr("unit", "serialization", "nearmisses") - def test_near_miss_match_request_deserialization(self): - serialized = { - "clientIp": "1.1.1.1", - "cookies": {"chocolate": "chip"}, - "loggedDate": 12345, - "absoluteUrl": "test2", - "headers": {"Accept": "json"}, - "url": "test", - "browserProxyRequest": False, - "body": "test4", - "bodyAsBase64": "test3", - "loggedDateString": "1/1/2017 00:00:00+0000", - "queryParameters": {"test": 1}, - "basicAuthCredentials": {"username": "username", "password": "password"}, - "method": "GET", - } - e = NearMissMatchRequest.from_dict(serialized) - self.assertIsInstance(e, NearMissMatchRequest) - self.assertEquals("test", e.url) - self.assertEquals("test2", e.absolute_url) - self.assertEquals("GET", e.method) - self.assertEquals("1.1.1.1", e.client_ip) - self.assertEquals({"Accept": "json"}, e.headers) - self.assertEquals({"test": 1}, e.query_parameters) - self.assertEquals({"chocolate": "chip"}, e.cookies) - self.assertIsInstance(e.basic_auth_credentials, BasicAuthCredentials) - self.assertEquals("username", e.basic_auth_credentials.username) - self.assertEquals("password", e.basic_auth_credentials.password) - self.assertEquals(False, e.browser_proxy_request) - self.assertEquals(12345, e.logged_date) - self.assertEquals("1/1/2017 00:00:00+0000", e.logged_date_string) - self.assertEquals("test3", e.body_as_base64) - self.assertEquals("test4", e.body) - - @attr("unit", "serialization", "nearmisses") - def test_near_miss_match_result_serialization(self): - e = NearMissMatchResult(distance=0.75) - serialized = e.get_json_data() - self.assertDictContainsKeyWithValue(serialized, "distance", 0.75) - - @attr("unit", "serialization", "nearmisses") - def test_near_miss_match_result_deserialization(self): - serialized = {"distance": 0.75} - e = NearMissMatchResult.from_dict(serialized) - self.assertIsInstance(e, NearMissMatchResult) - self.assertEquals(0.75, e.distance) - - @attr("unit", "serialization", "nearmisses") - def test_near_miss_request_pattern_result_serialization(self): - e = NearMissRequestPatternResult( - url="test", - absolute_url="test2", - method=HttpMethods.GET, - client_ip="1.1.1.1", - headers={CommonHeaders.ACCEPT: "json"}, - query_parameters={"test": 1}, - cookies={"chocolate": "chip"}, - basic_auth_credentials=BasicAuthCredentials(username="username", password="password"), - browser_proxy_request=False, - body_as_base64="test3", - body="test4", - ) - serialized = e.get_json_data() - self.assertDictContainsKeyWithValue(serialized, "url", "test") - self.assertDictContainsKeyWithValue(serialized, "absoluteUrl", "test2") - self.assertDictContainsKeyWithValue(serialized, "method", "GET") - self.assertDictContainsKeyWithValue(serialized, "clientIp", "1.1.1.1") - self.assertDictContainsKeyWithValue(serialized, "headers", {"Accept": "json"}) - self.assertDictContainsKeyWithValue(serialized, "queryParameters", {"test": 1}) - self.assertDictContainsKeyWithValue(serialized, "cookies", {"chocolate": "chip"}) - self.assertDictContainsKeyWithValue(serialized, "basicAuthCredentials", {"username": "username", "password": "password"}) - self.assertDictContainsKeyWithValue(serialized, "browserProxyRequest", False) - self.assertDictContainsKeyWithValue(serialized, "bodyAsBase64", "test3") - self.assertDictContainsKeyWithValue(serialized, "body", "test4") - - @attr("unit", "serialization", "nearmisses") - def test_near_miss_request_pattern_result_deserialization(self): - serialized = { - "clientIp": "1.1.1.1", - "cookies": {"chocolate": "chip"}, - "absoluteUrl": "test2", - "headers": {"Accept": "json"}, - "url": "test", - "browserProxyRequest": False, - "body": "test4", - "bodyAsBase64": "test3", - "queryParameters": {"test": 1}, - "basicAuthCredentials": {"username": "username", "password": "password"}, - "method": "GET", - } - e = NearMissRequestPatternResult.from_dict(serialized) - self.assertIsInstance(e, NearMissRequestPatternResult) - self.assertEquals("test", e.url) - self.assertEquals("test2", e.absolute_url) - self.assertEquals("GET", e.method) - self.assertEquals("1.1.1.1", e.client_ip) - self.assertEquals({"Accept": "json"}, e.headers) - self.assertEquals({"test": 1}, e.query_parameters) - self.assertEquals({"chocolate": "chip"}, e.cookies) - self.assertIsInstance(e.basic_auth_credentials, BasicAuthCredentials) - self.assertEquals("username", e.basic_auth_credentials.username) - self.assertEquals("password", e.basic_auth_credentials.password) - self.assertEquals(False, e.browser_proxy_request) - self.assertEquals("test3", e.body_as_base64) - self.assertEquals("test4", e.body) - - @attr("unit", "serialization", "nearmisses") - def test_near_miss_match_serialization(self): - e = NearMissMatch( - request=NearMissMatchRequest(url="test"), - request_pattern=NearMissRequestPatternResult(url="test2"), - match_result=NearMissMatchResult(distance=0.75), - ) - serialized = e.get_json_data() - self.assertDictContainsKeyWithValueType(serialized, "request", dict) - request = serialized["request"] - self.assertDictContainsKeyWithValue(request, "url", "test") - - self.assertDictContainsKeyWithValueType(serialized, "requestPattern", dict) - request_pattern = serialized["requestPattern"] - self.assertDictContainsKeyWithValue(request_pattern, "url", "test2") - - self.assertDictContainsKeyWithValueType(serialized, "matchResult", dict) - match_result = serialized["matchResult"] - self.assertDictContainsKeyWithValue(match_result, "distance", 0.75) - - @attr("unit", "serialization", "nearmisses") - def test_near_miss_match_deserialization(self): - serialized = { - "request": { - "clientIp": "1.1.1.1", - "cookies": {"chocolate": "chip"}, - "loggedDate": 12345, - "absoluteUrl": "test2", - "headers": {"Accept": "json"}, - "url": "test", - "browserProxyRequest": False, - "body": "test4", - "bodyAsBase64": "test3", - "loggedDateString": "1/1/2017 00:00:00+0000", - "queryParameters": {"test": 1}, - "basicAuthCredentials": {"username": "username", "password": "password"}, - "method": "GET", - }, - "requestPattern": { - "clientIp": "1.1.1.1", - "cookies": {"chocolate": "chip"}, - "absoluteUrl": "test2", - "headers": {"Accept": "json"}, - "url": "test", - "browserProxyRequest": False, - "body": "test4", - "bodyAsBase64": "test3", - "queryParameters": {"test": 1}, - "basicAuthCredentials": {"username": "username", "password": "password"}, - "method": "GET", - }, - "matchResult": {"distance": 0.75}, - } - e = NearMissMatch.from_dict(serialized) - self.assertIsInstance(e, NearMissMatch) - self.assertIsInstance(e.request, NearMissMatchRequest) - self.assertIsInstance(e.request_pattern, NearMissRequestPatternResult) - self.assertIsInstance(e.match_result, NearMissMatchResult) - - # request - self.assertEquals("test", e.request.url) - self.assertEquals("test2", e.request.absolute_url) - self.assertEquals("GET", e.request.method) - self.assertEquals("1.1.1.1", e.request.client_ip) - self.assertEquals({"Accept": "json"}, e.request.headers) - self.assertEquals({"test": 1}, e.request.query_parameters) - self.assertEquals({"chocolate": "chip"}, e.request.cookies) - self.assertIsInstance(e.request.basic_auth_credentials, BasicAuthCredentials) - self.assertEquals("username", e.request.basic_auth_credentials.username) - self.assertEquals("password", e.request.basic_auth_credentials.password) - self.assertEquals(False, e.request.browser_proxy_request) - self.assertEquals(12345, e.request.logged_date) - self.assertEquals("1/1/2017 00:00:00+0000", e.request.logged_date_string) - self.assertEquals("test3", e.request.body_as_base64) - self.assertEquals("test4", e.request.body) - - # request pattern - self.assertEquals("test", e.request_pattern.url) - self.assertEquals("test2", e.request_pattern.absolute_url) - self.assertEquals("GET", e.request_pattern.method) - self.assertEquals("1.1.1.1", e.request_pattern.client_ip) - self.assertEquals({"Accept": "json"}, e.request_pattern.headers) - self.assertEquals({"test": 1}, e.request_pattern.query_parameters) - self.assertEquals({"chocolate": "chip"}, e.request_pattern.cookies) - self.assertIsInstance(e.request_pattern.basic_auth_credentials, BasicAuthCredentials) - self.assertEquals("username", e.request_pattern.basic_auth_credentials.username) - self.assertEquals("password", e.request_pattern.basic_auth_credentials.password) - self.assertEquals(False, e.request_pattern.browser_proxy_request) - self.assertEquals("test3", e.request_pattern.body_as_base64) - self.assertEquals("test4", e.request_pattern.body) - - # match result - self.assertEquals(0.75, e.match_result.distance) - - @attr("unit", "serialization", "nearmisses") - def test_near_miss_match_response_serialization(self): - e = NearMissMatchResponse( - near_misses=[ - NearMissMatch( - request=NearMissMatchRequest(url="test"), - request_pattern=NearMissRequestPatternResult(url="test2"), - match_result=NearMissMatchResult(distance=0.75), - ) - ] - ) - serialized = e.get_json_data() - self.assertDictContainsKeyWithValueType(serialized, "nearMisses", list) - near_miss = serialized["nearMisses"][0] - self.assertDictContainsKeyWithValueType(near_miss, "request", dict) - self.assertDictContainsKeyWithValue(near_miss["request"], "url", "test") - self.assertDictContainsKeyWithValueType(near_miss, "requestPattern", dict) - self.assertDictContainsKeyWithValue(near_miss["requestPattern"], "url", "test2") - self.assertDictContainsKeyWithValueType(near_miss, "matchResult", dict) - self.assertDictContainsKeyWithValue(near_miss["matchResult"], "distance", 0.75) - - @attr("unit", "serialization", "nearmisses") - def test_near_miss_match_response_deserialization(self): - serialized = {"nearMisses": [{"request": {"url": "test"}, "requestPattern": {"url": "test"}, "matchResult": {"distance": 0.75}}]} - e = NearMissMatchResponse.from_dict(serialized) - self.assertIsInstance(e, NearMissMatchResponse) - self.assertIsInstance(e.near_misses, list) - self.assertEquals(1, len(e.near_misses)) - near_miss = e.near_misses[0] - self.assertIsInstance(near_miss, NearMissMatch) - self.assertIsInstance(near_miss.request, NearMissMatchRequest) - self.assertIsInstance(near_miss.request_pattern, NearMissRequestPatternResult) - self.assertIsInstance(near_miss.match_result, NearMissMatchResult) diff --git a/wiremock/tests/resource_tests/requests_tests/__init__.py b/wiremock/tests/resource_tests/requests_tests/__init__.py deleted file mode 100644 index e69de29..0000000 diff --git a/wiremock/tests/resource_tests/requests_tests/resource_tests.py b/wiremock/tests/resource_tests/requests_tests/resource_tests.py deleted file mode 100644 index 5830277..0000000 --- a/wiremock/tests/resource_tests/requests_tests/resource_tests.py +++ /dev/null @@ -1,114 +0,0 @@ -import responses - -from wiremock.resources.near_misses import NearMissMatchRequest -from wiremock.tests.base import BaseClientTestCase, attr -from wiremock.client import ( - RequestResponseDefinition, - RequestResponseRequest, - RequestResponse, - RequestCountResponse, - RequestResponseAll, - RequestResponseFindResponse, - Requests, - RequestResponseAllMeta, - NearMissMatchPatternRequest, - NearMissMatchResponse, - NearMissMatch, -) - - -class RequestsResourceTests(BaseClientTestCase): - @attr("unit", "requests", "resource") - @responses.activate - def test_get_all_received_requests(self): - e = RequestResponseAll(requests=[], meta=RequestResponseAllMeta(total=1), request_journal_disabled=False) - resp = e.get_json_data() - responses.add(responses.GET, "http://localhost/__admin/requests", json=resp, status=200) - - r = Requests.get_all_received_requests() - self.assertIsInstance(r, RequestResponseAll) - self.assertEquals(False, r.request_journal_disabled) - - @attr("unit", "requests", "resource") - @responses.activate - def test_get_request(self): - e = RequestResponse( - id="1234-5678", - request=RequestResponseRequest(url="test", method="GET"), - response_definition=RequestResponseDefinition(url="test", method="GET"), - ) - resp = e.get_json_data() - responses.add(responses.GET, "http://localhost/__admin/requests/1234-5678", json=resp, status=200) - - r = Requests.get_request("1234-5678") - self.assertIsInstance(r, RequestResponse) - self.assertEquals("test", r.request.url) - self.assertEquals("1234-5678", r.id) - - @attr("unit", "requests", "resource") - @responses.activate - def test_reset_request_journal(self): - responses.add(responses.POST, "http://localhost/__admin/requests/reset", body="", status=200) - - r = Requests.reset_request_journal() - self.assertEquals(200, r.status_code) - - @attr("unit", "requests", "resource") - @responses.activate - def test_get_matching_request_count(self): - resp = RequestCountResponse(count=4).get_json_data() - responses.add(responses.POST, "http://localhost/__admin/requests/count", json=resp, status=200) - - request = NearMissMatchPatternRequest(url="test", method="GET") - - r = Requests.get_matching_request_count(request) - self.assertIsInstance(r, RequestCountResponse) - self.assertEquals(4, r.count) - - @attr("unit", "requests", "resource") - @responses.activate - def test_get_matching_requests(self): - e = RequestResponseFindResponse(requests=[RequestResponseRequest(method="GET", url="test"),],) - resp = e.get_json_data() - responses.add(responses.POST, "http://localhost/__admin/requests/find", json=resp, status=200) - - request = NearMissMatchPatternRequest(url="test", method="GET") - - r = Requests.get_matching_requests(request) - self.assertIsInstance(r, RequestResponseFindResponse) - self.assertIsInstance(r.requests, list) - self.assertEquals(1, len(r.requests)) - result = r.requests[0] - self.assertIsInstance(result, RequestResponseRequest) - self.assertEquals("GET", result.method) - self.assertEquals("test", result.url) - - @attr("unit", "requests", "resource") - @responses.activate - def test_get_unmatched_requests(self): - e = RequestResponseFindResponse(requests=[RequestResponseRequest(method="GET", url="test"),],) - resp = e.get_json_data() - responses.add(responses.GET, "http://localhost/__admin/requests/unmatched", json=resp, status=200) - - r = Requests.get_unmatched_requests() - self.assertIsInstance(r, RequestResponseFindResponse) - self.assertIsInstance(r.requests, list) - self.assertEquals(1, len(r.requests)) - result = r.requests[0] - self.assertIsInstance(result, RequestResponseRequest) - self.assertEquals("GET", result.method) - self.assertEquals("test", result.url) - - @attr("unit", "requests", "resource") - @responses.activate - def test_get_unmatched_requests_near_misses(self): - e = NearMissMatchResponse(near_misses=[NearMissMatch(request=NearMissMatchRequest(url="test", method="GET")),]) - resp = e.get_json_data() - responses.add(responses.GET, "http://localhost/__admin/requests/unmatched/near-misses", json=resp, status=200) - - r = Requests.get_unmatched_requests_near_misses() - self.assertIsInstance(r, NearMissMatchResponse) - result = r.near_misses[0] - self.assertIsInstance(result, NearMissMatch) - self.assertEquals("test", result.request.url) - self.assertEquals("GET", result.request.method) diff --git a/wiremock/tests/resource_tests/requests_tests/serialization_tests.py b/wiremock/tests/resource_tests/requests_tests/serialization_tests.py deleted file mode 100644 index c8964b3..0000000 --- a/wiremock/tests/resource_tests/requests_tests/serialization_tests.py +++ /dev/null @@ -1,197 +0,0 @@ -from wiremock.resources.mappings import BasicAuthCredentials -from wiremock.tests.base import BaseClientTestCase, attr -from wiremock.resources.requests import ( - RequestResponse, - RequestCountResponse, - RequestResponseDefinition, - RequestResponseAll, - RequestResponseFindResponse, - RequestResponseRequest, - RequestResponseAllMeta, -) - - -class RequestsSerializationTests(BaseClientTestCase): - @attr("unit", "serialization", "requests") - def test_request_count_response_serialization(self): - e = RequestCountResponse(count=1) - serialized = e.get_json_data() - self.assertDictContainsKeyWithValue(serialized, "count", 1) - - @attr("unit", "serialization", "requests") - def test_request_count_response_deserialization(self): - serialized = {"count": 1} - e = RequestCountResponse.from_dict(serialized) - self.assertIsInstance(e, RequestCountResponse) - self.assertEquals(1, e.count) - - @attr("unit", "serialization", "requests") - def test_request_response_all_meta_serialization(self): - e = RequestResponseAllMeta(total=1) - serialized = e.get_json_data() - self.assertDictContainsKeyWithValue(serialized, "total", 1) - - @attr("unit", "serialization", "requests") - def test_request_response_all_meta_deserialization(self): - serialized = {"total": 1} - e = RequestResponseAllMeta.from_dict(serialized) - self.assertIsInstance(e, RequestResponseAllMeta) - self.assertEquals(1, e.total) - - @attr("unit", "serialization", "requests") - def test_request_response_request_serialization(self): - e = RequestResponseRequest( - method="GET", - url="test", - absolute_url="test2", - client_ip="test3", - basic_auth_credentials=BasicAuthCredentials(username="username", password="password"), - cookies={"chocolate": "chip"}, - headers={"test": "1"}, - query_parameters={"test2": "2"}, - browser_proxy_request=False, - body="test4", - body_as_base64="test5", - logged_date=12345, - logged_date_string="test6", - ) - serialized = e.get_json_data() - self.assertDictContainsKeyWithValue(serialized, "method", "GET") - self.assertDictContainsKeyWithValue(serialized, "url", "test") - self.assertDictContainsKeyWithValue(serialized, "absoluteUrl", "test2") - self.assertDictContainsKeyWithValue(serialized, "clientIp", "test3") - self.assertDictContainsKeyWithValue(serialized, "basicAuthCredentials", {"username": "username", "password": "password"}) - self.assertDictContainsKeyWithValue(serialized, "cookies", {"chocolate": "chip"}) - self.assertDictContainsKeyWithValue(serialized, "headers", {"test": "1"}) - self.assertDictContainsKeyWithValue(serialized, "queryParameters", {"test2": "2"}) - self.assertDictContainsKeyWithValue(serialized, "browserProxyRequest", False) - self.assertDictContainsKeyWithValue(serialized, "body", "test4") - self.assertDictContainsKeyWithValue(serialized, "bodyAsBase64", "test5") - self.assertDictContainsKeyWithValue(serialized, "loggedDate", 12345) - self.assertDictContainsKeyWithValue(serialized, "loggedDateString", "test6") - - @attr("unit", "serialization", "requests") - def test_request_response_request_deserialization(self): - serialized = { - "method": "GET", - "url": "test", - "absoluteUrl": "test2", - "clientIp": "test3", - "basicAuthCredentials": {"username": "username", "password": "password"}, - "cookies": {"chocolate": "chip"}, - "headers": {"test": "1"}, - "queryParameters": {"test2": "2"}, - "browserProxyRequest": False, - "body": "test4", - "bodyAsBase64": "test5", - "loggedDate": 12345, - "loggedDateString": "test6", - } - e = RequestResponseRequest.from_dict(serialized) - self.assertIsInstance(e, RequestResponseRequest) - self.assertEquals("GET", e.method) - self.assertEquals("test", e.url) - self.assertEquals("test2", e.absolute_url) - self.assertEquals("test3", e.client_ip) - self.assertIsInstance(e.basic_auth_credentials, BasicAuthCredentials) - self.assertEquals("username", e.basic_auth_credentials.username) - self.assertEquals("password", e.basic_auth_credentials.password) - self.assertEquals({"chocolate": "chip"}, e.cookies) - self.assertEquals({"test": "1"}, e.headers) - self.assertEquals({"test2": "2"}, e.query_parameters) - self.assertEquals(False, e.browser_proxy_request) - self.assertEquals("test4", e.body) - self.assertEquals("test5", e.body_as_base64) - self.assertEquals(12345, e.logged_date) - self.assertEquals("test6", e.logged_date_string) - - @attr("unit", "serialization", "requests") - def test_request_response_definition_serialization(self): - e = RequestResponseDefinition(status=200, transformers=["test"], from_configured_stub=False, transformer_parameters={"test2": "2"}) - serialized = e.get_json_data() - self.assertDictContainsKeyWithValue(serialized, "status", 200) - self.assertDictContainsKeyWithValue(serialized, "transformers", ["test"]) - self.assertDictContainsKeyWithValue(serialized, "fromConfiguredStub", False) - self.assertDictContainsKeyWithValue(serialized, "transformerParameters", {"test2": "2"}) - - @attr("unit", "serialization", "requests") - def test_request_response_definition_deserialization(self): - serialized = {"status": 200, "transformers": ["test"], "fromConfiguredStub": False, "transformerParameters": {"test2": "2"}} - e = RequestResponseDefinition.from_dict(serialized) - self.assertIsInstance(e, RequestResponseDefinition) - self.assertEquals(200, e.status) - self.assertEquals(["test"], e.transformers) - self.assertEquals(False, e.from_configured_stub) - self.assertEquals({"test2": "2"}, e.transformer_parameters) - - @attr("unit", "serialization", "requests") - def test_request_response_serialization(self): - e = RequestResponse(request=RequestResponseRequest(method="GET", url="test"), response_definition=RequestResponseDefinition(status=200)) - serialized = e.get_json_data() - self.assertDictContainsKeyWithValue(serialized, "request", {"method": "GET", "url": "test"}) - self.assertDictContainsKeyWithValue(serialized, "responseDefinition", {"status": 200}) - - @attr("unit", "serialization", "requests") - def test_request_response_deserialization(self): - serialized = {"request": {"method": "GET", "url": "test"}, "responseDefinition": {"status": 200}} - e = RequestResponse.from_dict(serialized) - self.assertIsInstance(e, RequestResponse) - self.assertIsInstance(e.request, RequestResponseRequest) - self.assertEquals("GET", e.request.method) - self.assertEquals("test", e.request.url) - self.assertIsInstance(e.response_definition, RequestResponseDefinition) - self.assertEquals(200, e.response_definition.status) - - @attr("unit", "serialization", "requests") - def test_request_response_find_response_serialization(self): - e = RequestResponseFindResponse(requests=[RequestResponseRequest(method="GET", url="test"),]) - serialized = e.get_json_data() - self.assertDictContainsKeyWithValueType(serialized, "requests", list) - self.assertDictContainsKeyWithValue(serialized, "requests", [{"method": "GET", "url": "test"},]) - - @attr("unit", "serialization", "requests") - def test_request_response_find_response_deserialization(self): - serialized = {"requests": [{"method": "GET", "url": "test"},]} - e = RequestResponseFindResponse.from_dict(serialized) - self.assertIsInstance(e, RequestResponseFindResponse) - self.assertIsInstance(e.requests, list) - self.assertIsInstance(e.requests[0], RequestResponseRequest) - self.assertEquals("GET", e.requests[0].method) - self.assertEquals("test", e.requests[0].url) - - @attr("unit", "serialization", "requests") - def test_request_response_all_serialization(self): - e = RequestResponseAll( - requests=[ - RequestResponse(request=RequestResponseRequest(method="GET", url="test"), response_definition=RequestResponseDefinition(status=200)), - ], - meta=RequestResponseAllMeta(total=1), - request_journal_disabled=False, - ) - serialized = e.get_json_data() - self.assertDictContainsKeyWithValue(serialized, "requestJournalDisabled", False) - self.assertDictContainsKeyWithValue( - serialized, "requests", [{"request": {"method": "GET", "url": "test"}, "responseDefinition": {"status": 200}},] - ) - self.assertDictContainsKeyWithValue(serialized, "meta", {"total": 1}) - - @attr("unit", "serialization", "requests") - def test_request_response_all_deserialization(self): - serialized = { - "requests": [{"request": {"method": "GET", "url": "test"}, "responseDefinition": {"status": 200}},], - "meta": {"total": 1}, - "requestJournalDisabled": False, - } - e = RequestResponseAll.from_dict(serialized) - self.assertIsInstance(e, RequestResponseAll) - self.assertEquals(False, e.request_journal_disabled) - self.assertIsInstance(e.requests, list) - rr = e.requests[0] - self.assertIsInstance(rr, RequestResponse) - self.assertIsInstance(rr.request, RequestResponseRequest) - self.assertEquals("GET", rr.request.method) - self.assertEquals("test", rr.request.url) - self.assertIsInstance(rr.response_definition, RequestResponseDefinition) - self.assertEquals(200, rr.response_definition.status) - self.assertIsInstance(e.meta, RequestResponseAllMeta) - self.assertEquals(1, e.meta.total) diff --git a/wiremock/tests/resource_tests/scenarios_tests/__init__.py b/wiremock/tests/resource_tests/scenarios_tests/__init__.py deleted file mode 100644 index e69de29..0000000 diff --git a/wiremock/tests/resource_tests/scenarios_tests/resource_tests.py b/wiremock/tests/resource_tests/scenarios_tests/resource_tests.py deleted file mode 100644 index 11a90d5..0000000 --- a/wiremock/tests/resource_tests/scenarios_tests/resource_tests.py +++ /dev/null @@ -1,14 +0,0 @@ -import responses - -from wiremock.tests.base import BaseClientTestCase, attr -from wiremock.client import Scenarios - - -class ScenariosResourceTests(BaseClientTestCase): - @attr("unit", "scenarios", "resource") - @responses.activate - def test_reset_scenarios(self): - responses.add(responses.POST, "http://localhost/__admin/scenarios/reset", body="", status=200) - - r = Scenarios.reset_all_scenarios() - self.assertEquals(200, r.status_code) diff --git a/wiremock/tests/resource_tests/settings_tests/__init__.py b/wiremock/tests/resource_tests/settings_tests/__init__.py deleted file mode 100644 index e69de29..0000000 diff --git a/wiremock/tests/resource_tests/settings_tests/resource_tests.py b/wiremock/tests/resource_tests/settings_tests/resource_tests.py deleted file mode 100644 index 83715c0..0000000 --- a/wiremock/tests/resource_tests/settings_tests/resource_tests.py +++ /dev/null @@ -1,17 +0,0 @@ -import responses - -from wiremock.tests.base import BaseClientTestCase, attr -from wiremock.client import GlobalSetting, GlobalSettings - - -class SettingsResourceTests(BaseClientTestCase): - @attr("unit", "settings", "resource") - @responses.activate - def test_update_settings(self): - e = GlobalSetting(fixed_delay=500) - resp = e.get_json_data() - responses.add(responses.POST, "http://localhost/__admin/settings", json=resp, status=200) - - r = GlobalSettings.update_global_settings(e) - self.assertIsInstance(r, GlobalSetting) - self.assertEquals(500, r.fixed_delay) diff --git a/wiremock/tests/resource_tests/settings_tests/serialization_tests.py b/wiremock/tests/resource_tests/settings_tests/serialization_tests.py deleted file mode 100644 index 27c38aa..0000000 --- a/wiremock/tests/resource_tests/settings_tests/serialization_tests.py +++ /dev/null @@ -1,17 +0,0 @@ -from wiremock.tests.base import BaseClientTestCase, attr -from wiremock.resources.settings import GlobalSetting - - -class SettingsSerializationTests(BaseClientTestCase): - @attr("unit", "serialization", "settings") - def test_global_settings_serialization(self): - gs = GlobalSetting(fixed_delay=500) - serialized = gs.get_json_data() - self.assertDictContainsKeyWithValue(serialized, "fixedDelay", 500) - - @attr("unit", "serialization", "settings") - def test_global_settings_deserialization(self): - serialized = {"fixedDelay": 500} - gs = GlobalSetting.from_dict(serialized) - self.assertIsInstance(gs, GlobalSetting) - self.assertEquals(500, gs.fixed_delay) diff --git a/wiremock/tests/server_tests/__init__.py b/wiremock/tests/server_tests/__init__.py deleted file mode 100644 index c789de3..0000000 --- a/wiremock/tests/server_tests/__init__.py +++ /dev/null @@ -1,2 +0,0 @@ -# -*- coding: utf-8 -*- -"""Tests for WireMock Server.""" diff --git a/wiremock/tests/server_tests/server_tests.py b/wiremock/tests/server_tests/server_tests.py deleted file mode 100644 index 42ae070..0000000 --- a/wiremock/tests/server_tests/server_tests.py +++ /dev/null @@ -1,123 +0,0 @@ -# -*- coding: utf-8 -*- -"""Test wiremock.server.""" - -import unittest -from subprocess import STDOUT, PIPE - -import responses -from mock import patch, DEFAULT -from pkg_resources import resource_filename - -from wiremock.server.exceptions import WireMockServerAlreadyStartedError, WireMockServerNotStartedError -from wiremock.server.server import WireMockServer -from wiremock.tests.base import attr - - -class WireMockServerTestCase(unittest.TestCase): - def setUp(self): - self.java_path = "/path/to/java" - self.jar_path = "/path/to/jar" - self.port = 54321 - with patch.object(WireMockServer, "_get_free_port", return_value=self.port): - self.wm = WireMockServer(java_path=self.java_path, jar_path=self.jar_path) - - @attr("unit", "server") - def test_init(self): - with patch.object(WireMockServer, "_get_free_port") as _get_free_port: - _get_free_port.return_value = self.port - - wm = WireMockServer(java_path=self.java_path, jar_path=self.jar_path) - - self.assertEqual(wm.port, _get_free_port.return_value) - - self.assertEqual(wm.java_path, self.java_path) - self.assertEqual(wm.jar_path, self.jar_path) - self.assertFalse(wm.is_running) - - @attr("unit", "server") - def test_init_with_defaults(self): - with patch.object(WireMockServer, "_get_free_port", return_value=self.port): - wm = WireMockServer() - - expected_jar = resource_filename("wiremock", "server/wiremock-standalone-2.6.0.jar") - self.assertEqual(wm.java_path, "java") # Assume java in PATH - self.assertEqual(wm.jar_path, expected_jar) - - @attr("unit", "server") - @patch("wiremock.server.server.socket") - def test_get_free_port(self, mock_socket): - sock = mock_socket.socket.return_value - expected_port = 54321 - sock.getsockname.return_value = ("localhost", expected_port) - - port = self.wm._get_free_port() - - self.assertEqual(port, expected_port) - - @attr("unit", "server") - @patch("wiremock.server.server.atexit") - @patch("wiremock.server.server.Popen") - @responses.activate - def test_start(self, Popen, atexit): - # mock healthy endpoint - responses.add(responses.GET, "http://localhost:{}/__admin".format(self.wm.port), json=[], status=200) - - def poll(): - Popen.return_value.returncode = None - return None - - Popen.return_value.poll.side_effect = poll - - self.wm.start() - - Popen.assert_called_once_with( - [self.java_path, "-jar", self.jar_path, "--port", str(54321), "--local-response-templating"], stdin=PIPE, stdout=PIPE, stderr=STDOUT - ) - - self.assertTrue(self.wm.is_running) - atexit.register.assert_called_once_with(self.wm.stop, raise_on_error=False) - - # Test when already started - with self.assertRaises(WireMockServerAlreadyStartedError): - self.wm.start() - - @attr("unit", "server") - def test_start_with_invalid_java(self): - wm = WireMockServer(java_path="/no/such/path") - with self.assertRaises(WireMockServerNotStartedError): - wm.start() - - @attr("unit", "server") - def test_start_with_invalid_jar(self): - wm = WireMockServer(jar_path="/dev/null") - with self.assertRaises(WireMockServerNotStartedError): - wm.start() - - @attr("unit", "server") - def test_stop(self): - with patch.object(self.wm, "_WireMockServer__subprocess") as _subprocess: - self.wm._WireMockServer__running = True - - self.wm.stop() - - _subprocess.kill.assert_called_once_with() - - # Test repeated call - - _subprocess.kill.side_effect = AttributeError - with self.assertRaises(WireMockServerNotStartedError): - self.wm.stop() - - @attr("unit", "server") - def test_with_statement(self): - with patch.multiple(WireMockServer, start=DEFAULT, stop=DEFAULT) as mocks: - - with WireMockServer() as wm: - self.assertIsInstance(wm, WireMockServer) - mocks["start"].assert_called_once_with() - - mocks["stop"].assert_called_once_with() - - -if __name__ == "__main__": - unittest.main()