File tree Expand file tree Collapse file tree 1 file changed +5
-3
lines changed Expand file tree Collapse file tree 1 file changed +5
-3
lines changed Original file line number Diff line number Diff line change @@ -322,9 +322,9 @@ def test_discover_package_path_no_source_root_overlap(tmp_path):
322322 expected = source_roots
323323 assert package_paths == expected
324324
325+
325326def test_discover_package_path_legacy ():
326- """Test for legacy path discovery when source_roots is empty
327- """
327+ """Test for legacy path discovery when source_roots is empty"""
328328 source_roots = []
329329 package_paths = discover_package_path (__file__ , source_roots )
330330
@@ -333,9 +333,11 @@ def test_discover_package_path_legacy():
333333
334334 assert package_paths == expected
335335
336+
336337def test_discover_package_path_legacy_no_parent_without_init_py (tmp_path , monkeypatch ):
337338 """Test to return current directory if no parent directory without
338- __init__.py is found"""
339+ __init__.py is found
340+ """
339341 source_roots = []
340342
341343 monkeypatch .setattr (os .path , "exists" , lambda path : True )
You can’t perform that action at this time.
0 commit comments