Skip to content

Commit ead3b32

Browse files
committed
Configure setup.cfg for pytest
python-ldap uses a non-standard configuration for tests. Signed-off-by: Christian Heimes <cheimes@redhat.com>
1 parent dc7a3fe commit ead3b32

File tree

2 files changed

+9
-0
lines changed

2 files changed

+9
-0
lines changed

.gitignore

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,7 @@ __pycache__/
66
.tox
77
.coverage*
88
!.coveragerc
9+
/.cache
910

1011
# shared libs installed by 'setup.py test'
1112
/Lib/*.so*

setup.cfg

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -35,3 +35,11 @@ packager = python-ldap team
3535
distribution_name = openSUSE 11.x
3636
release = 1
3737
doc_files = CHANGES README INSTALL TODO Demo/
38+
39+
# pytest, https://docs.pytest.org/en/latest/customize.html
40+
[tool:pytest]
41+
testpaths = Tests
42+
python_files = t_*.py
43+
filterwarnings =
44+
error
45+
ignore::ldap.LDAPBytesWarning

0 commit comments

Comments
 (0)
pFad - Phonifier reborn

Pfad - The Proxy pFad of © 2024 Garber Painting. All rights reserved.

Note: This service is not intended for secure transactions such as banking, social media, email, or purchasing. Use at your own risk. We assume no liability whatsoever for broken pages.


Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy