Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 3 additions & 3 deletions tests/test_convert.py
Original file line number Diff line number Diff line change
Expand Up @@ -75,7 +75,7 @@ def can_convert(self, docstring):

class MockEntryPoint(EntryPoint):
def load(self):
return self.value
return globals()[self.attr]

dist = None

Expand Down Expand Up @@ -111,7 +111,7 @@ def test_adding_entry_point():
mock_entry_point = MockEntryPoint(
name='high-priority-converter',
group='docstring_to_markdown',
value=HighPriorityConverter,
value="here:HighPriorityConverter",
)
with custom_entry_points([*original_entry_points, mock_entry_point]):
assert convert('test') == 'HighPriority'
Expand All @@ -123,7 +123,7 @@ def test_replacing_entry_point():
mock_entry_point = DistMockEntryPoint(
name='cpython',
group='docstring_to_markdown',
value=CustomCPythonConverter
value="here:CustomCPythonConverter",
)
with custom_entry_points([*original_entry_points, mock_entry_point]):
assert convert('test') == 'test'
Expand Down
Loading