Skip to content

Commit 3ed08c4

Browse files
pytest-env is used, pytest.ini is deleted (#338)
All the pytest settings are moved to pyproject.toml. pytest.ini is deleted.
1 parent d2c2f10 commit 3ed08c4

File tree

3 files changed

+9
-6
lines changed

3 files changed

+9
-6
lines changed

pyproject.toml

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -9,6 +9,14 @@ build-backend = "setuptools.build_meta"
99
extend-ignore = ["E501"]
1010
exclude = [".git", "__pycache__", "env", "venv"]
1111

12+
# Pytest settings
13+
[tool.pytest.ini_options]
14+
15+
testpaths = ["tests"]
16+
log_file_level = "NOTSET"
17+
log_file_format = "%(levelname)8s [%(asctime)s] %(message)s"
18+
log_file_date_format = "%Y-%m-%d %H:%M:%S"
19+
1220
[project]
1321
name = "testgres"
1422
version = "1.13.4"

pytest.ini

Lines changed: 0 additions & 6 deletions
This file was deleted.

tests/requirements.txt

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,6 @@
11
psutil
22
pytest
3+
pytest-env
34
pytest-xdist
45
psycopg2
56
six

0 commit comments

Comments
 (0)