From 98898b98fc15e8bfc8fa92a116611839e6c8b229 Mon Sep 17 00:00:00 2001 From: Tim Van Baak Date: Mon, 31 May 2021 15:12:33 -0700 Subject: [PATCH] Reduce test output --- pyproject.toml | 3 +++ tests/conftest.py | 2 +- 2 files changed, 4 insertions(+), 1 deletion(-) diff --git a/pyproject.toml b/pyproject.toml index 44f64a3..8cd59b7 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -14,6 +14,9 @@ SQLAlchemy = "^1.4.12" [tool.poetry.dev-dependencies] pytest = "^5.2" +[tool.pytest.ini_options] +addopts = "--show-capture=log" + [build-system] requires = ["poetry-core>=1.0.0"] build-backend = "poetry.core.masonry.api" diff --git a/tests/conftest.py b/tests/conftest.py index 3b6ae46..c80c7f8 100644 --- a/tests/conftest.py +++ b/tests/conftest.py @@ -12,7 +12,7 @@ import amanuensis.backend.user as userq @pytest.fixture def db(): """Provides an initialized database in memory.""" - db = DbContext('sqlite:///:memory:', debug=True) + db = DbContext('sqlite:///:memory:', debug=False) db.create_all() return db