mirror of
https://github.com/samuelclay/NewsBlur.git
synced 2025-08-21 05:45:13 +00:00
move location where setup_databases is imported in testrunner.py because the old location is deprecated
This commit is contained in:
parent
a62e6b443e
commit
d1ab75ec2f
1 changed files with 2 additions and 1 deletions
|
@ -1,4 +1,5 @@
|
|||
from django.test.runner import DiscoverRunner
|
||||
from django.test.utils import setup_databases
|
||||
from mongoengine import connect
|
||||
|
||||
class TestRunner(DiscoverRunner):
|
||||
|
@ -7,7 +8,7 @@ class TestRunner(DiscoverRunner):
|
|||
connect(db_name)
|
||||
print 'Creating test-database: ' + db_name
|
||||
|
||||
return super(TestRunner, self).setup_databases(**kwargs)
|
||||
return setup_databases(**kwargs)
|
||||
|
||||
def teardown_databases(self, old_config, **kwargs):
|
||||
import pymongo
|
||||
|
|
Loading…
Add table
Reference in a new issue