File tree 1 file changed +5
-3
lines changed
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):
322
322
expected = source_roots
323
323
assert package_paths == expected
324
324
325
+
325
326
def 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"""
328
328
source_roots = []
329
329
package_paths = discover_package_path (__file__ , source_roots )
330
330
@@ -333,9 +333,11 @@ def test_discover_package_path_legacy():
333
333
334
334
assert package_paths == expected
335
335
336
+
336
337
def test_discover_package_path_legacy_no_parent_without_init_py (tmp_path , monkeypatch ):
337
338
"""Test to return current directory if no parent directory without
338
- __init__.py is found"""
339
+ __init__.py is found
340
+ """
339
341
source_roots = []
340
342
341
343
monkeypatch .setattr (os .path , "exists" , lambda path : True )
You can’t perform that action at this time.
0 commit comments