pytest-mockservers
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_serverhttp_server_factoryunused_portunused_port_factoryunused_udp_portunused_udp_port_factoryudp_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)
| File | Size | Uploaded | |
|---|---|---|---|
| pytest-mockservers-0.6.0.tar.gz | 4.3 kB | Details |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Reset |
|---|---|---|---|---|
| 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
|