springload / wagtaildraftail

🐦📝🍸 Draft.js editor for Wagtail, built upon Draftail and draftjs_exporter
https://pypi.python.org/pypi/wagtaildraftail
MIT License
24 stars 3 forks source link

Improve Python unit tests #16

Open thibaudcolas opened 7 years ago

thibaudcolas commented 7 years ago
loicteixeira commented 7 years ago

If you need a Django model, then yes you need a db. And if you don't care about the database to stick around, you can use an in-memory sqlite db for the tests.

DATABASES = {
    'default': {
        'ENGINE': 'django.db.backends.sqlite3',
        'NAME': ':memory:'
    }
}
thibaudcolas commented 7 years ago

Well that is perfect. Thank you Loïc!