Skip to main content

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

simple rest server-1.0.2.tar.gz (3.9 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

simple_rest_server-1.0.2-py3-none-any.whl (4.2 kB view details)

Uploaded Python 3

File details

Details for the file simple rest server-1.0.2.tar.gz.

File metadata

  • Download URL: simple rest server-1.0.2.tar.gz
  • Upload date:
  • Size: 3.9 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.10.1

File hashes

Hashes for simple rest server-1.0.2.tar.gz
Algorithm Hash digest
SHA256 916a1607c0d77955728a32593b7eefbd4824020f31bc6b8bf52de4bc793dca7d
MD5 98d109af1da4dce5187dba136f7f11cc
BLAKE2b-256 4bed1f76ae65ac74114d2d38d3f176808bcaa9a8c57993f9557435daf82696fb

See more details on using hashes here.

File details

Details for the file simple_rest_server-1.0.2-py3-none-any.whl.

File metadata

  • Download URL: simple_rest_server-1.0.2-py3-none-any.whl
  • Upload date:
  • Size: 4.2 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.10.1

File hashes

Hashes for simple_rest_server-1.0.2-py3-none-any.whl
Algorithm Hash digest
SHA256 292a8e67e596a666e35d097c684df5585cbf2e3d11cc478152beae472e9c5d11
MD5 3bf6027c8272cd4fb2833d0c0947a072
BLAKE2b-256 647f4ba1fdb6ce4abdd0cc9ba5675a266531197aecf58514d29a70da6bf43596

See more details on using hashes here.

Supported by

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