Skip to content
This repository has been archived by the owner on Jan 12, 2018. It is now read-only.

Commit

Permalink
Make tests backwards compatibility with old setuptools
Browse files Browse the repository at this point in the history
Signed-off-by: Christian Heimes <[email protected]>
  • Loading branch information
tiran committed May 5, 2017
1 parent 9630c3d commit 3f412c4
Showing 1 changed file with 6 additions and 1 deletion.
7 changes: 6 additions & 1 deletion tests.py
Original file line number Diff line number Diff line change
Expand Up @@ -363,8 +363,13 @@ def test_get(self):
])
def test_plugins(group, name, cls, dist='custodia.ipa'):
ep = pkg_resources.get_entry_info(dist, group, name)
assert ep is not None
assert ep.dist.project_name == dist
assert ep.resolve() is cls
if hasattr(ep, 'resolve'):
resolved = ep.resolve()
else:
resolved = ep.load(require=False)
assert resolved is cls


@pytest.mark.parametrize('principal,result', [
Expand Down

0 comments on commit 3f412c4

Please sign in to comment.