Skip to content

Commit d9dbeb5

Browse files
authored
Use [tool:pytest] for section name in setup.cfg file
Since pytest 4.0 the section name should be `[tool:pytest]` for `setup.cfg` files, while it is still `[pytest]` for `pytest.ini` and `tox.ini` files. Reference: https://docs.pytest.org/en/latest/deprecations.html#pytest-section-in-setup-cfg-files
1 parent 43e2c36 commit d9dbeb5

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -78,7 +78,7 @@ that any database changes made will be rolled back at the end of the test:
7878
```ini
7979
# In setup.cfg
8080

81-
[pytest]
81+
[tool:pytest]
8282
mocked-sessions=database.db.session
8383
mocked-engines=database.engine
8484
```

0 commit comments

Comments
 (0)