Skip to main content

Web server for testing.

Project description

https://travis-ci.org/narusemotoki/htttea.svg?branch=master

I’m not a tea pot. Provide a web server for testing.

CHANGELOG

Usage

response_body = b"Hello World"
with htttea.Htttea() as t3:
    t3.response = htttea.Response(body=response_body)
    response = requests.post(t3.url, data=data)

    assert t3.request.data == data
    assert response.text == response_body.decode()

Htttea makes a real web server when it is called with with statement. You can get a web server URL from url property.

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

htttea-0.1.0.tar.gz (4.5 kB view details)

Uploaded Source

File details

Details for the file htttea-0.1.0.tar.gz.

File metadata

  • Download URL: htttea-0.1.0.tar.gz
  • Upload date:
  • Size: 4.5 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No

File hashes

Hashes for htttea-0.1.0.tar.gz
Algorithm Hash digest
SHA256 853983488bacb8c0320784510ee06fa9d7f3090334b5c6bce882abd9f0212ec7
MD5 ab114866d3dc42fc70643cbd1d640d19
BLAKE2b-256 765918c1df335109b8728284a11a39936048397d070ca09c2bffa5cbe63dc6b2

See more details on using hashes here.

Supported by

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