mirror of
https://github.com/samuelclay/NewsBlur.git
synced 2025-08-31 13:35:58 +00:00
use DiscoverRunner to run tests
This commit is contained in:
parent
ebd0da2d63
commit
bcfc17a9db
1 changed files with 2 additions and 3 deletions
|
@ -1,8 +1,7 @@
|
|||
from django.test.simple import DjangoTestSuiteRunner
|
||||
|
||||
from django.test.runner import DiscoverRunner
|
||||
from mongoengine import connect
|
||||
|
||||
class TestRunner(DjangoTestSuiteRunner):
|
||||
class TestRunner(DiscoverRunner):
|
||||
def setup_databases(self, **kwargs):
|
||||
db_name = 'newsblur_test'
|
||||
connect(db_name)
|
||||
|
|
Loading…
Add table
Reference in a new issue