Skip to main content
File added late

1 file was added to this release more than 14 days after its initial publication. Inspect the release files before installing.

Version:
0.1
https://travis-ci.org/bak1an/wsgitestcase.png?branch=master

TestCase that will launch your wsgi/werkzeug application in a separate thread for you (using setUp and tearDown methods).

Inspired by Django’s LiveServerTestCase.

How to

import requests  # you should use this, requests is cool
from wsgitestcase import WsgiTestCase

class MyTestCase(WsgiTestCase):

    # add your wsgi application here
    # you can also set it with something like
    # app = staticmethod(my_wsgi_app)
    # see tests.py for more examples
    @staticmethod
    def app(environ, start_response):
        start_response('200 OK', [('Content-Type', 'text/plain')])
        yield 'Hello World'

    def test_something(self):
        # server with your app should be already up
        # use self.host, self.port and self.url to find out where it is
        r = requests.get("http://%s:%s/" % (self.host, self.port))
        self.assertEqual(r.text, "Hello World")
        # in self.requests you can find a list with all requests made to
        # your app. it contains werkzeug's Request objects.
        # see tests.py for more examples
        # and werkzeug's doc at http://werkzeug.pocoo.org/docs/wrappers/
        # for Request object reference
        self.assertEqual(len(self.requests), 1)
        self.assertEqual(self.requests[0].path, "/")

License

wsgitestcase is distributed under terms of MIT license.

Metadata

Release files for wsgitestcase 0.1

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

File added late

1 file was uploaded more than 14 days after the first file in this release.

While project maintainers occasionally add legitimate files to an existing release, late additions can also indicate a security compromise.

We recommend inspecting the release files before installing.

Source distribution (sdist)

Source distribution for wsgitestcase 0.1
File Size Uploaded Provenance Actions
wsgitestcase-0.1.tar.gz 4.8 kB File added late: Without provenance Details for wsgitestcase-0.1.tar.gz

Release files / wsgitestcase-0.1.tar.gz

File added late

This file was uploaded more than 14 days after the first file in this release.

While project maintainers occasionally add legitimate files to an existing release, late additions can also indicate a security compromise.

We recommend inspecting the release file before installing.

Download URL wsgitestcase-0.1.tar.gz
Size 4.8 kB
Tags Source
SHA-256 checksum
How to use checksums
813f8c6d2007981014bcbd839c1de5745265cf43383dcc5144d32200d1817b6c
BLAKE2b-256 checksum
How to use checksums
727892a8934fc6c007eb123f189db186b7922595dcb7e0096055a459e78e532f
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No

Security for wsgitestcase 0.1

Upload timing

File added late

1 file was uploaded more than 14 days after the first file in this release.

While project maintainers occasionally add legitimate files to an existing release, late additions can also indicate a security compromise.


Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

No provenance found

None of the files in this release were uploaded with provenance metadata.

A note on package security

PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.

To learn more about protecting yourself from malicious actors, visit our package security documentation.

Release history Release notifications | RSS feed

This release

0.1 This release

1 release file No provenance

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