Add tests to make sure expected entry points exist (#1629)

This commit is contained in:
Oliver Bestwalter 2016-06-22 10:19:43 +02:00
parent 4350f499b2
commit db79ed5c4d
1 changed files with 13 additions and 0 deletions

View File

@ -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