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.3.tar.gz (3.8 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.3-py3-none-any.whl (4.2 kB view details)

Uploaded Python 3

File details

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

File metadata

  • Download URL: simple rest server-1.0.3.tar.gz
  • Upload date:
  • Size: 3.8 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.2

File hashes

Hashes for simple rest server-1.0.3.tar.gz
Algorithm Hash digest
SHA256 9c4a50d2e28191741185994544ab5ef51733ae19e9997cd7c13713ab9782cd72
MD5 67635103f9929f9e34662eceb9a16bfa
BLAKE2b-256 2aa91e13cde33cd8220e719dbc2362ba725c8cf8f6b8034cd9446237287f48bd

See more details on using hashes here.

File details

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

File metadata

  • Download URL: simple_rest_server-1.0.3-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.2

File hashes

Hashes for simple_rest_server-1.0.3-py3-none-any.whl
Algorithm Hash digest
SHA256 0a0c4acd7d6d6283466a460f55654aef100ebe5108007d290d2ca7da0cd5e3c4
MD5 50b201fc56334dfd32be9d6d021652ef
BLAKE2b-256 40bbf00c7e25399429b11a60c98a099728adff682514d0c836673a4ec4ba8000

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