Skip to main content

Smoke tests framework for Django Web Framework

Project description

[![Build Status](](
[![Coverage Status](](

# django-smoked

Smoke tests framework for Django Web Framework

## Motivation

> Code without tests is broken by design. - Jacob Kaplan-Moss, Django core developer

Every successful deployment of an application must be followed by series of tests to ensure that website is up and works.

Compared to unit/integration/functional/performance/etc tests which runs in an isolated environment, smoke tests are designed to check safely the production environment. These tests only check the fundemantal functionality, ex. email sending is working, app is able to connect to the database, background queue accepts task, etc.

## Idea

Create framework for **reusable** smoke tests which could be easily shared among projects.

Each test is defined by a name and an action to be taken:

class DatabaseTest(SmokeTest):
name = 'Database test'
description = 'Check all database connection are valid'

def test(self):

Smoke tests are registered manually in custom module:

SMOKE_TESTS = 'myproject.smoked'

# myproject/
import smoked

# Built-in test

# Custom test

# ad-hoc function
def smoke_test():
smoked.register(smoke_test, name='Test my setup', description='...')

# ad-hoc function using decorator
@smoked.register(name='Verbose name', description='Long text')
def smoke_test():

# default name and description
def smoke_test(): # name='smoke_test'
""" Docstring will become description """


Test runner is trigger either by management command:

./ smoked

or an API call:

curl -d"TOKEN=VerySecretToken"

## Licence


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 django-smoked, version 0.1-alpha.1
Filename, size File type Python version Upload date Hashes
Filename, size django_smoked-0.1_alpha.1-py2.py3-none-any.whl (9.4 kB) File type Wheel Python version 2.7 Upload date Hashes View
Filename, size django-smoked-0.1-alpha.1.tar.gz (5.3 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