Skip to content

Commit db79ed5

Browse files
committed
Add tests to make sure expected entry points exist (#1629)
1 parent 4350f49 commit db79ed5

File tree

1 file changed

+13
-0
lines changed

1 file changed

+13
-0
lines changed

testing/test_entry_points.py

Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,13 @@
1+
import pkg_resources
2+
3+
import pytest
4+
5+
6+
@pytest.mark.parametrize("entrypoint", ['py.test', 'pytest'])
7+
def test_entry_point_exist(entrypoint):
8+
assert entrypoint in pkg_resources.get_entry_map('pytest')['console_scripts']
9+
10+
11+
def test_pytest_entry_points_are_identical():
12+
entryMap = pkg_resources.get_entry_map('pytest')['console_scripts']
13+
assert entryMap['pytest'].module_name == entryMap['py.test'].module_name

0 commit comments

Comments
 (0)