From fd6006899e1816c1bad3a1a71d5297fa6f4958ab Mon Sep 17 00:00:00 2001 From: Helmut Merz Date: Mon, 11 Mar 2024 17:15:02 +0100 Subject: [PATCH] rename postgres test file; add pytest section to pyproject.toml --- .gitignore | 2 ++ pyproject.toml | 5 +++++ tests/{postgres.py => test_postgres.py} | 0 3 files changed, 7 insertions(+) rename tests/{postgres.py => test_postgres.py} (100%) diff --git a/.gitignore b/.gitignore index f625fb9..8271238 100644 --- a/.gitignore +++ b/.gitignore @@ -7,6 +7,8 @@ *.sublime-project *.sublime-workspace *.ropeproject +.env +.pytest.ini *#*# *.#* __pycache__ diff --git a/pyproject.toml b/pyproject.toml index 6f9040d..6c3e873 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -27,3 +27,8 @@ test = ["pytest"] [tool.setuptools] packages = ["scopes"] +[tool.pytest.ini_options] +addopts = "-vv" +python_files = "test_standard.py" # default: run only `standard` tests +# use .pytest.ini file with `python_files = test_*.py` to run all tests + diff --git a/tests/postgres.py b/tests/test_postgres.py similarity index 100% rename from tests/postgres.py rename to tests/test_postgres.py