from mocks.mock_users import mock_user
import pytest


@pytest.fixture
def app_db(request):
    """TODO: Docstring for app_db.

    :request: TODO
    :returns: TODO

    """
    pass

@@ -32,16 +32,43 @@
 ck_user%0A
+from app import create_app%0A
 import p
@@ -73,16 +73,26 @@
  pytest%0A
+import os%0A
 %0A%0A@pytes
@@ -100,16 +100,32 @@
 .fixture
+(scope='module')
 %0Adef app
@@ -229,9 +229,276 @@
     
-pass
+app = create_app(os.getenv('FLASK_CONFIG') or 'default')%0A    ctx = app.app_context()%0A%0A    ctx.push()%0A%0A    def tear_down():%0A        %22%22%22TODO: Docstring for tear_down.%0A        :returns: TODO%0A%0A        %22%22%22%0A        ctx.pop()%0A%0A    request.addfinalizer(tear_down)%0A%0A    return app
 %0A

update fixture