def mock_flask_uow(mock_uow):\r
session, uow = mock_uow\r
app = Flask(__name__)\r
- # app.config["TESTING"] = True\r
+ app.config["TESTING"] = True\r
api = Api(app)\r
bus = bootstrap(False, uow)\r
configure_namespace(api, bus)\r
- client = app.test_client()\r
- return session, client\r
+ return session, app\r
\r
\r
@pytest.fixture\r
@pytest.fixture\r
def sqlite_flask_uow(sqlite_uow):\r
app = Flask(__name__)\r
- # app.config["TESTING"] = True\r
+ app.config["TESTING"] = True\r
api = Api(app)\r
bus = bootstrap(False, sqlite_uow)\r
configure_namespace(api, bus)\r
- yield app.test_client()\r
+ yield sqlite_uow, app\r
\r
\r
@pytest.fixture\r
@pytest.fixture\r
def postgres_flask_uow(postgres_uow):\r
app = Flask(__name__)\r
+ app.config["TESTING"] = True\r
api = Api(app)\r
bus = bootstrap(False, postgres_uow)\r
configure_namespace(api, bus)\r
- yield app.test_client()\r
+ yield postgres_uow, app\r
\r
\r
@pytest.fixture\r