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

Uploaded Python 3

File details

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

File metadata

  • Download URL: simple rest server-1.0.tar.gz
  • Upload date:
  • Size: 2.1 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.tar.gz
Algorithm Hash digest
SHA256 b4a6f420660d2a42f044ecce74f4826640c3b67c2390fcb3dd6217b9fa6bc64a
MD5 31694f463b39764673e56c5155ec4e11
BLAKE2b-256 d691a0b9b1de2eaef13c7cf56a3aba599da83d591c160783f849581bcf358a6a

See more details on using hashes here.

File details

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

File metadata

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

File hashes

Hashes for simple_rest_server-1.0-py3-none-any.whl
Algorithm Hash digest
SHA256 3e3c29162d93dbcf3429c9f2dee54bc49e7d3a1cf33eecd48ce70865abbe354e
MD5 ae990c6c6d37b0a3ed881563fbaa4714
BLAKE2b-256 be0b2d68a53efbc16d83f7eaf4940a16c01d781e0c29f87de6bf5968c1f0613a

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