simple rest server based on flask, useful for rest rest integration testing
Project description
simple rest server
An easy and simple way to test api flows.
test method example
def test_mock_with_callback(server):
# Arrange
payload = "poop"
url = "/test"
server.add_callback_response(url, lambda : payload)
# Act
response = requests.get(server.base_url + url)
# Assert
assert 200 == response.status_code
assert payload == response.data.decode()
Project details
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file simple rest server-1.0.5.tar.gz.
File metadata
- Download URL: simple rest server-1.0.5.tar.gz
- Upload date:
- Size: 4.0 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/3.8.0 pkginfo/1.8.2 readme-renderer/32.0 requests/2.27.1 requests-toolbelt/0.9.1 urllib3/1.26.8 tqdm/4.63.0 importlib-metadata/4.11.2 keyring/23.5.0 rfc3986/2.0.0 colorama/0.4.4 CPython/3.9.10
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
013f34e6fad571d9d566aa5e2c60494127ff0d4dee5b89a5631f48cc06c3de9c
|
|
| MD5 |
0de8946e825552b6183204d92511974d
|
|
| BLAKE2b-256 |
f014a86a61e45b255843b1264d8d995fa12d718553979857797f3b52bac59dc5
|
File details
Details for the file simple_rest_server-1.0.5-py3-none-any.whl.
File metadata
- Download URL: simple_rest_server-1.0.5-py3-none-any.whl
- Upload date:
- Size: 4.3 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/3.8.0 pkginfo/1.8.2 readme-renderer/32.0 requests/2.27.1 requests-toolbelt/0.9.1 urllib3/1.26.8 tqdm/4.63.0 importlib-metadata/4.11.2 keyring/23.5.0 rfc3986/2.0.0 colorama/0.4.4 CPython/3.9.10
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
90c5d2ce42bddac76f9c873379ebc1a53e38dd0680546c1dde5c3f9592b1b917
|
|
| MD5 |
2e7ddbdf120608e088da39425e35b843
|
|
| BLAKE2b-256 |
79d342fb143411873f81779119abff94f0e2e9a1a9512d98b44e772e59f1f49b
|