Skip to content

Commit

Permalink
Merge pull request #1640 from Avira/features
Browse files Browse the repository at this point in the history
Add tests for entry points (#1629 )
  • Loading branch information
RonnyPfannschmidt authored Jun 22, 2016
2 parents 4350f49 + db79ed5 commit a2420ce
Showing 1 changed file with 13 additions and 0 deletions.
13 changes: 13 additions & 0 deletions testing/test_entry_points.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,13 @@
import pkg_resources

import pytest


@pytest.mark.parametrize("entrypoint", ['py.test', 'pytest'])
def test_entry_point_exist(entrypoint):
assert entrypoint in pkg_resources.get_entry_map('pytest')['console_scripts']


def test_pytest_entry_points_are_identical():
entryMap = pkg_resources.get_entry_map('pytest')['console_scripts']
assert entryMap['pytest'].module_name == entryMap['py.test'].module_name

0 comments on commit a2420ce

Please sign in to comment.