From 1bd13c7e5bea57e76cf1c7f65f13eec89009ad60 Mon Sep 17 00:00:00 2001 From: allexeye Date: Fri, 11 Dec 2015 14:47:46 +0100 Subject: [PATCH] fix db fixture for model tests --- {{cookiecutter.app_name}}/tests/conftest.py | 2 ++ 1 file changed, 2 insertions(+) diff --git a/{{cookiecutter.app_name}}/tests/conftest.py b/{{cookiecutter.app_name}}/tests/conftest.py index f2472b5..7e3d272 100644 --- a/{{cookiecutter.app_name}}/tests/conftest.py +++ b/{{cookiecutter.app_name}}/tests/conftest.py @@ -38,6 +38,8 @@ def db(app): yield _db + # Explicitly close DB connection + _db.session.close() _db.drop_all()