Skip to content
Snippets Groups Projects
Commit c24c8cc2 authored by thomaswoehlke's avatar thomaswoehlke
Browse files

working for 0.0.198 Release

parent 4f7e64c7
No related branches found
No related tags found
No related merge requests found
...@@ -29,6 +29,12 @@ def create_db(my_app): ...@@ -29,6 +29,12 @@ def create_db(my_app):
return my_db return my_db
def create_db_test(my_app):
my_db = SQLAlchemy(my_app)
my_db.create_all()
return my_db
def create_celery(my_app): def create_celery(my_app):
celery = Celery( celery = Celery(
my_app.import_name, my_app.import_name,
......
import os import os
import tempfile import tempfile
import pytest import pytest
from database import create_app, create_db, create_admin from database import create_app, create_db_test, create_admin
@pytest.fixture @pytest.fixture
...@@ -18,8 +18,8 @@ def client(): ...@@ -18,8 +18,8 @@ def client():
with app.test_client() as client: with app.test_client() as client:
with app.app_context(): with app.app_context():
db = create_db(app) create_db_test(app)
admin = create_admin(app) create_admin(app)
yield client yield client
os.close(db_fd) os.close(db_fd)
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment