From 9e2b313bd9432b41c06fa35e05cf1b9cd7df51f1 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Tobiasz=20K=C4=99dzierski?= Date: Fri, 13 Sep 2019 18:43:35 +0200 Subject: [PATCH] Fix flask test command --- {{cookiecutter.app_name}}/tests/conftest.py | 3 +++ 1 file changed, 3 insertions(+) diff --git a/{{cookiecutter.app_name}}/tests/conftest.py b/{{cookiecutter.app_name}}/tests/conftest.py index 2cbe45f..f4f249c 100644 --- a/{{cookiecutter.app_name}}/tests/conftest.py +++ b/{{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()