Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Appearance settings

Commit 08d7def

Browse filesBrowse files
committed
Fix test that assumed entries was a dict. Now expect entries is EntryPoints. Tests didn't fail because it was a negative test and a namedtuple always compares unequal to a string.
1 parent 930841a commit 08d7def
Copy full SHA for 08d7def

File tree

Expand file treeCollapse file tree

1 file changed

+1
-1
lines changed
Filter options
Expand file treeCollapse file tree

1 file changed

+1
-1
lines changed

‎tests/test_api.py

Copy file name to clipboardExpand all lines: tests/test_api.py
+1-1Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -115,7 +115,7 @@ def test_entry_points_unique_packages(self):
115115
for ep in entries
116116
)
117117
# ns:sub doesn't exist in alt_pkg
118-
assert 'ns:sub' not in entries
118+
assert 'ns:sub' not in entries.names
119119

120120
def test_entry_points_missing_name(self):
121121
with self.assertRaises(KeyError):

0 commit comments

Comments
0 (0)
Morty Proxy This is a proxified and sanitized view of the page, visit original site.