Skip to content

Minimal configuration for pytest #114

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 2 commits into from
Dec 11, 2017
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 1 addition & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,7 @@ __pycache__/
.tox
.coverage*
!.coveragerc
/.cache

# shared libs installed by 'setup.py test'
/Lib/*.so*
Expand Down
2 changes: 1 addition & 1 deletion Doc/contributing.rst
Original file line number Diff line number Diff line change
Expand Up @@ -224,7 +224,7 @@ Run reference leak tests::

$ cd path/to/python-ldap
$ /tmp/refleak/bin/pip install --upgrade .
$ /tmp/refleak/bin/pytest -v -R: Tests/t_*.py
$ /tmp/refleak/bin/pytest -v -R:

Run ``/tmp/refleak/bin/pip install --upgrade .`` every time a file outside
of ``Tests/`` is modified.
Expand Down
3 changes: 2 additions & 1 deletion Tests/t_ldap_schema_subentry.py
Original file line number Diff line number Diff line change
Expand Up @@ -25,6 +25,7 @@
os.path.join(HERE, 'data', 'subschema-openldap-all.ldif'),
)


class TestSubschemaLDIF(unittest.TestCase):
"""
test ldap.schema.SubSchema with subschema subentries read from LDIF files
Expand All @@ -49,7 +50,7 @@ def test_subschema_file(self):
self.assertEqual(attributetype.oid, oid)


class TestSubschemaUrlfetch(unittest.TestSuite):
class TestSubschemaUrlfetch(unittest.TestCase):
def test_urlfetch_file(self):
freeipa_uri = 'file://{}'.format(TEST_SUBSCHEMA_FILES[0])
dn, schema = ldap.schema.urlfetch(freeipa_uri)
Expand Down
8 changes: 8 additions & 0 deletions setup.cfg
Original file line number Diff line number Diff line change
Expand Up @@ -35,3 +35,11 @@ packager = python-ldap team
distribution_name = openSUSE 11.x
release = 1
doc_files = CHANGES README INSTALL TODO Demo/

# pytest, https://docs.pytest.org/en/latest/customize.html
[tool:pytest]
testpaths = Tests
python_files = t_*.py
filterwarnings =
error
ignore::ldap.LDAPBytesWarning
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