Skip to main content

pytest-mockservers

Build Status PyPI PyPI - Downloads GitHub

pytest-mockservers package provides a set of fixtures which can help you to test your code in cases when you need to check that requests which you sent to HTTP/UDP server are really sent.

Available fixtures:

  • http_server
  • http_server_factory
  • unused_port
  • unused_port_factory
  • unused_udp_port
  • unused_udp_port_factory
  • udp_server_factory

Installation

$ pip install pytest-mockservers

Usage

Look into tests/* to find real examples of pytest-mockservers fixtures usage.

Contributing

To work on the pytest-mockservers codebase, you'll want to clone the project locally and install the required dependencies via poetry:

$ git clone git@github.com:Gr1N/pytest-mockservers.git
$ make install

To run tests and linters use command below:

$ make lint && make test

If you want to run only tests or linters you can explicitly specify which test environment you want to run, e.g.:

$ make lint-black

License

pytest-mockservers is licensed under the MIT license. See the license file for details.

Release files for pytest-mockservers 0.6.0

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for pytest-mockservers 0.6.0
File Size Uploaded
pytest-mockservers-0.6.0.tar.gz 4.3 kB Details

Built distribution (wheel)

Table of built distributions (wheels) for pytest-mockservers 0.6.0
File Interpreter ABI Platform
pytest_mockservers-0.6.0-py3-none-any.whl Python 3 none any Details

Total release size: 9.2 kB

Release files / pytest-mockservers-0.6.0.tar.gz

Download URL pytest-mockservers-0.6.0.tar.gz
Size 4.3 kB
Tags Source
SHA-256 checksum
How to use checksums
87cc7670c7f5860f82e569f5c53cdd69ea305220ffe53e5fb289fe2b69a09222
BLAKE2b-256 checksum
How to use checksums
3a7875ccb9efebfeb595e3c705788a73220c42b60de11f49ca579dbd34b118de
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via poetry/1.0.0 CPython/3.8.2 Linux/5.0.0-1032-azure

Release files / pytest_mockservers-0.6.0-py3-none-any.whl

Download URL pytest_mockservers-0.6.0-py3-none-any.whl
Size 4.9 kB
Tags Python 3
SHA-256 checksum
How to use checksums
a65b2b88fefb60ba352e8f65c6f3e6b69694206a3574114daa6b274dc332c099
BLAKE2b-256 checksum
How to use checksums
b33751bebcffe680c406f84b2fba6c57b50c8cca55c4f4f7a778d75979fbf516
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via poetry/1.0.0 CPython/3.8.2 Linux/5.0.0-1032-azure

Release history Release notifications | RSS feed

This release

0.6.0 This release

2 release files

0.5.0

2 release files

0.4.0

2 release files

0.3.0

2 release files

0.2.0

2 release files

0.1.0

2 release files

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page