module documentation

Undocumented

Class TestReadAttr No class docstring; 1/4 method documented
Function test_fill_package_dir Undocumented
Function test_find_packages Undocumented
Function test_glob_relative Undocumented
Function test_read_files Undocumented
Function test_resolve_class Undocumented
Function write_files 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)

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)

Undocumented

def test_glob_relative(tmp_path, monkeypatch): (source)

Undocumented

def test_read_files(tmp_path, monkeypatch): (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)

Undocumented

def write_files(files, root_dir): (source)

Undocumented