module documentation
Undocumented
Function | test |
Undocumented |
Function | test |
Undocumented |
Function | test |
Undocumented |
Function | test |
Make sure dist.name is discovered from packages/py_modules |
Function | test |
Undocumented |
Function | test |
Undocumented |
Function | test |
Check multiple calls to `Distribution.fetch_build_egg` work as expected. |
Function | test |
Undocumented |
Function | test |
Undocumented |
Function | test |
Undocumented |
Function | test |
Undocumented |
Function | test |
Undocumented |
Constant | CHECK |
Undocumented |
Constant | EXAMPLE |
Undocumented |
Function | __maintainer |
Undocumented |
Function | __read |
Undocumented |
@pytest.mark.parametrize( 'package_data, expected_message', CHECK_PACKAGE_DATA_TESTS)
def test_check_package_data(package_data, expected_message): (source) ¶
def test_check_package_data(package_data, expected_message): (source) ¶
Undocumented
@pytest.mark.parametrize( 'dist_name, package_dir, package_files', [ ( 'my.pkg.nested', None, [ 'my/pkg/nested/__init__.py']), ( 'my.pkg', None, [ 'my/pkg/__init__.py', 'my/pkg/file.py']), ( 'my_pkg', None, [ 'my_pkg.py']), ( 'my_pkg', None, [ 'my_pkg/__init__.py', 'my_pkg/nested/__init__.py']), ( 'my_pkg', None, [ 'src/my_pkg/__init__.py', 'src/my_pkg/nested/__init__.py']), ( 'my_pkg', { 'my_pkg': 'lib', 'my_pkg.lib2': 'lib2'}, [ 'lib/__init__.py', 'lib/nested/__init__.pyt', 'lib2/__init__.py']), ( 'UNKNOWN', None, [ 'src/mod1.py', 'src/mod2.py']), ( 'UNKNOWN', None, [ 'src/pkg1/__ini__.py', 'src/pkg2/__init__.py'])])
def test_dist_default_name(tmp_path, dist_name, package_dir, package_files): (source) ¶
def test_dist_default_name(tmp_path, dist_name, package_dir, package_files): (source) ¶
Make sure dist.name is discovered from packages/py_modules
@pytest.mark.parametrize( 'dist_name, package_dir, package_files, packages', [ ( 'my.pkg', None, [ 'my_pkg/__init__.py', 'my_pkg/mod.py'], [ 'my_pkg']), ( 'my-pkg', None, [ 'my_pkg/__init__.py', 'my_pkg/mod.py'], [ 'my_pkg']), ( 'my_pkg', None, [ 'my_pkg/__init__.py', 'my_pkg/mod.py'], [ 'my_pkg']), ( 'my.pkg', None, [ 'my/pkg/__init__.py'], [ 'my', 'my.pkg']), ( 'my_pkg', None, [ 'src/my_pkg/__init__.py', 'src/my_pkg2/__init__.py'], [ 'my_pkg', 'my_pkg2']), ( 'my_pkg', { 'pkg': 'lib', 'pkg2': 'lib2'}, [ 'lib/__init__.py', 'lib/nested/__init__.pyt', 'lib2/__init__.py'], [ 'pkg', 'pkg.nested', 'pkg2'])])
def test_dist_default_packages(tmp_path, dist_name, package_dir, package_files, packages): (source) ¶
def test_dist_default_packages(tmp_path, dist_name, package_dir, package_files, packages): (source) ¶
Undocumented
@pytest.mark.parametrize( 'dist_name, py_module', [ ( 'my.pkg', 'my_pkg'), ( 'my-pkg', 'my_pkg'), ( 'my_pkg', 'my_pkg'), ( 'pkg', 'pkg')])
def test_dist_default_py_modules(tmp_path, dist_name, py_module): (source) ¶
def test_dist_default_py_modules(tmp_path, dist_name, py_module): (source) ¶
Undocumented
@pytest.mark.parametrize( 'name,attrs', __maintainer_test_cases())
def test_maintainer_author(name, attrs, tmpdir): (source) ¶
def test_maintainer_author(name, attrs, tmpdir): (source) ¶
Undocumented
@pytest.mark.parametrize( 'name,attrs', __read_test_cases())
def test_read_metadata(name, attrs): (source) ¶
def test_read_metadata(name, attrs): (source) ¶
Undocumented
@pytest.mark.parametrize( 'content, result', ( pytest.param( 'Just a single line', None, id='single_line'), pytest.param( 'Multiline\nText\nwithout\nextra indents\n', None, id='multiline'), pytest.param( 'Multiline\n With\n\nadditional\n indentation', None, id='multiline_with_indentation'), pytest.param( ' Leading whitespace', 'Leading whitespace', id='remove_leading_whitespace'), pytest.param( ' Leading whitespace\nIn\n Multiline comment', 'Leading whitespace\nIn\n Multiline comment', id='remove_leading_whitespace_multiline')))
def test_rfc822_unescape(content, result): (source) ¶
def test_rfc822_unescape(content, result): (source) ¶
Undocumented
Undocumented
Value |
|
Undocumented
Value |
|