diff --git a/pyproject.toml b/pyproject.toml index 21b12df..034ccbb 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -9,6 +9,14 @@ build-backend = "setuptools.build_meta" extend-ignore = ["E501", "E721", "E722", "W503"] exclude = [".git", "__pycache__", "env", "venv"] +# Pytest settings +[tool.pytest.ini_options] + +testpaths = ["tests"] +log_file_level = "NOTSET" +log_file_format = "%(levelname)8s [%(asctime)s] %(message)s" +log_file_date_format = "%Y-%m-%d %H:%M:%S" + [project] name = "testgres.postgres_configuration" version = "0.2.0" diff --git a/pytest.ini b/pytest.ini deleted file mode 100644 index 86f368c..0000000 --- a/pytest.ini +++ /dev/null @@ -1,7 +0,0 @@ -[pytest] -testpaths = tests -addopts = --strict-markers -log_file_level = NOTSET -log_file_format = %(levelname)8s [%(asctime)s] %(message)s -log_file_date_format=%Y-%m-%d %H:%M:%S - diff --git a/tests/requirements.txt b/tests/requirements.txt index a465398..a976dc6 100644 --- a/tests/requirements.txt +++ b/tests/requirements.txt @@ -1,4 +1,5 @@ pytest +pytest-env pytest-xdist regex black