Skip to main content

Web server for testing.

Project description

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



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

    assert == 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.

Files for htttea, version 0.1.0
Filename, size File type Python version Upload date Hashes
Filename, size htttea-0.1.0.tar.gz (4.5 kB) File type Source Python version None Upload date Hashes View

Supported by

Pingdom Pingdom Monitoring Google Google Object Storage and Download Analytics Sentry Sentry Error logging AWS AWS Cloud computing DataDog DataDog Monitoring Fastly Fastly CDN DigiCert DigiCert EV certificate StatusPage StatusPage Status page