Skip to main content

This is a simple wrapper library around mountebank. It’s useful for mocking HTTP API services.

Usage

from mountebank import Imposter

imposter = Imposter()
imposter.add_stub("/test", "GET", "What I'm expecting")
with imposter.mockhttp() as url:
    assert requests.get(url + "/test").text == "What I'm expecting"

Development

To run the containers:

docker-compose up --build

To test:

docker-compose exec tests /bin/bash -c "cd /apps/mountebank/tests;pytest"
docker-compose exec tests2 /bin/bash -c "cd /apps/mountebank/tests;pytest"

Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

pymountebank-1.4.1.tar.gz (5.0 kB view details)

Uploaded Source

File details

Details for the file pymountebank-1.4.1.tar.gz.

File metadata

  • Download URL: pymountebank-1.4.1.tar.gz
  • Upload date:
  • Size: 5.0 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No

File hashes

Hashes for pymountebank-1.4.1.tar.gz
Algorithm Hash digest
SHA256 3a71a5b24ddbe3b50628733fa2d7cf6ee1bc7df2bec6fbd951f268f8c2b26ab5
MD5 c92de92da826750f3d887e39e5d25dfe
BLAKE2b-256 1077f90a3fe4937df87a2143ea2d412f348cd5e775b9c369480227727e16afd9

See more details on using hashes here.

Release history Release notifications | RSS feed

This release

1.4.1 This release

1 file

1.4.0

1 file

1.3.0

1 file

1.2.0

1 file

1.1.0

1 file

1.0.5

1 file

1.0.4

1 file

1.0.3

1 file

1.0.2

1 file

1.0.1

1 file

1.0.0

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page