File tree Expand file tree Collapse file tree 1 file changed +15
-0
lines changed Expand file tree Collapse file tree 1 file changed +15
-0
lines changed Original file line number Diff line number Diff line change @@ -210,6 +210,21 @@ def test_blueprint_fetch_members_include_inherited():
210
210
assert "some_method" in member_names
211
211
212
212
213
+ def test_blueprint_fetch_members_dynamic ():
214
+ # Since AClass is imported via star import it has to be dynamically
215
+ # resolved. This test ensures that the members of AClass also get
216
+ # loaded correctly.
217
+ name = "quartodoc.tests.example_star_imports:AClass"
218
+ auto = lo .Auto (name = name , members = ["a_method" ], dynamic = True )
219
+ bp = blueprint (auto )
220
+
221
+ method_path = "quartodoc.tests.example_star_imports.AClass.a_method"
222
+
223
+ assert len (bp .members ) == 1
224
+ assert bp .members [0 ].obj .path == method_path
225
+ assert bp .members [0 ].obj .parent .path == name .replace (":" , "." )
226
+
227
+
213
228
def test_blueprint_member_options ():
214
229
auto = lo .Auto (
215
230
name = "quartodoc.tests.example" ,
You can’t perform that action at this time.
0 commit comments