Skip to main content

Collection of utils for the Falcon Framework

Project description

Collection of utils for the Falcon Framework.

Build Status Coverage Status Python versions PyPi


pip install falcon-toolkit

Provided fixtures

Before using it you must define api that returns instance of your falcon.API app

import pytest

from yout_application import create_api

def api():
    return create_api()


def test_something(client):
    got = client.get('/your_url/42/')  # returns json of response and automatically check response status code
    assert got == {'awesome': 'response'}

    response = client.get('/your_url/100500/')  # returns testing response object and skip status code check
    assert response.status_code == 400
    assert response.json = 'Invalid id'

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 falcon-toolkit, version 0.0.1
Filename, size File type Python version Upload date Hashes
Filename, size falcon-toolkit-0.0.1.tar.gz (2.1 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