use DiscoverRunner to run tests

This commit is contained in:
jmath1 2020-06-08 07:56:11 -04:00
parent ebd0da2d63
commit bcfc17a9db

View file

@ -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)