module documentation
Undocumented
Class |
|
No class docstring; 1/4 method documented |
Function | test |
Undocumented |
Function | test |
Undocumented |
Function | test |
Undocumented |
Function | test |
Undocumented |
Function | test |
Undocumented |
Function | write |
Undocumented |
@pytest.mark.parametrize( 'files, where, expected_package_dir', [ ( [ 'pkg1/__init__.py', 'pkg1/other.py'], [ '.'], {}), ( [ 'pkg1/__init__.py', 'pkg2/__init__.py'], [ '.'], {}), ( [ 'src/pkg1/__init__.py', 'src/pkg1/other.py'], [ 'src'], { '': 'src'}), ( [ 'src/pkg1/__init__.py', 'src/pkg2/__init__.py'], [ 'src'], { '': 'src'}), ( [ 'src1/pkg1/__init__.py', 'src2/pkg2/__init__.py'], [ 'src1', 'src2'], { 'pkg1': 'src1/pkg1', 'pkg2': 'src2/pkg2'}), ( [ 'src/pkg1/__init__.py', 'pkg2/__init__.py'], [ 'src', '.'], { 'pkg1': 'src/pkg1'})])
def test_fill_package_dir(tmp_path, files, where, expected_package_dir): (source) ¶
def test_fill_package_dir(tmp_path, files, where, expected_package_dir): (source) ¶
Undocumented
@pytest.mark.parametrize( 'args, pkgs', [ ( { 'where': [ '.'], 'namespaces': False}, set([ 'pkg', 'other'])), ( { 'where': [ '.', 'dir1'], 'namespaces': False}, set([ 'pkg', 'other', 'dir2'])), ( { 'namespaces': True}, set([ 'pkg', 'other', 'dir1', 'dir1.dir2'])), ( {}, set([ 'pkg', 'other', 'dir1', 'dir1.dir2']))])
def test_find_packages(tmp_path, args, pkgs): (source) ¶
def test_find_packages(tmp_path, args, pkgs): (source) ¶
Undocumented
@pytest.mark.parametrize( 'package_dir, file, module, return_value', [ ( { '': 'src'}, 'src/pkg/main.py', 'pkg.main', 42), ( { 'pkg': 'lib'}, 'lib/main.py', 'pkg.main', 13), ( {}, 'single_module.py', 'single_module', 70), ( {}, 'flat_layout/pkg.py', 'flat_layout.pkg', 836)])
def test_resolve_class(tmp_path, package_dir, file, module, return_value): (source) ¶
def test_resolve_class(tmp_path, package_dir, file, module, return_value): (source) ¶
Undocumented