| author | ymh <ymh.work@gmail.com> |
| Wed, 16 Sep 2015 22:53:40 +0200 | |
| changeset 1438 | d42d5ceacea5 |
| parent 725 | 4f4005df9a97 |
| permissions | -rw-r--r-- |
| 725 | 1 |
# -*- coding: utf-8 -*- |
2 |
''' |
|
3 |
Created on Aug 1, 2012 |
|
4 |
||
5 |
@author: ymh |
|
6 |
''' |
|
7 |
from django.test.simple import DjangoTestSuiteRunner |
|
8 |
||
9 |
class NoDbTestRunner(DjangoTestSuiteRunner): |
|
10 |
""" A test runner to test without database creation """ |
|
11 |
||
12 |
def setup_databases(self, **kwargs): |
|
13 |
""" Override the database creation defined in parent class """ |
|
14 |
pass |
|
15 |
||
16 |
def teardown_databases(self, old_config, **kwargs): |
|
17 |
""" Override the database teardown defined in parent class """ |
|
18 |
pass |