Fix flask test command

master
Tobiasz Kędzierski 5 years ago committed by James Curtin
parent 9fb83480a8
commit 9e2b313bd9
  1. 3
      {{cookiecutter.app_name}}/tests/conftest.py

@ -1,6 +1,8 @@
# -*- coding: utf-8 -*-
"""Defines fixtures available to all tests."""
import logging
import pytest
from webtest import TestApp
@ -14,6 +16,7 @@ from .factories import UserFactory
def app():
"""Create application for the tests."""
_app = create_app("tests.settings")
_app.logger.setLevel(logging.CRITICAL)
ctx = _app.test_request_context()
ctx.push()

Loading…
Cancel
Save