Skip to content

add documentation for using treq.testing to test klein applications #733

@betinacosta

Description

@betinacosta

With Flask you can do this:

class TestApp:
    @pytest.fixture
    def client(self):
        flask_app = app
        with flask_app.app.test_client() as client:
            yield client

But Klein app does not have a test_client or anything like it. Is there a way to test it?

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions