File tree Expand file tree Collapse file tree 1 file changed +3
-3
lines changed Expand file tree Collapse file tree 1 file changed +3
-3
lines changed Original file line number Diff line number Diff line change @@ -75,7 +75,7 @@ def can_convert(self, docstring):
75
75
76
76
class MockEntryPoint (EntryPoint ):
77
77
def load (self ):
78
- return self .value
78
+ return globals ()[ self .attr ]
79
79
80
80
dist = None
81
81
@@ -111,7 +111,7 @@ def test_adding_entry_point():
111
111
mock_entry_point = MockEntryPoint (
112
112
name = 'high-priority-converter' ,
113
113
group = 'docstring_to_markdown' ,
114
- value = HighPriorityConverter ,
114
+ value = "here: HighPriorityConverter" ,
115
115
)
116
116
with custom_entry_points ([* original_entry_points , mock_entry_point ]):
117
117
assert convert ('test' ) == 'HighPriority'
@@ -123,7 +123,7 @@ def test_replacing_entry_point():
123
123
mock_entry_point = DistMockEntryPoint (
124
124
name = 'cpython' ,
125
125
group = 'docstring_to_markdown' ,
126
- value = CustomCPythonConverter
126
+ value = "here: CustomCPythonConverter" ,
127
127
)
128
128
with custom_entry_points ([* original_entry_points , mock_entry_point ]):
129
129
assert convert ('test' ) == 'test'
You can’t perform that action at this time.
0 commit comments