Commit acaece80 authored by idle sign's avatar idle sign

Tests and docstrings update.

parent af321fc6
......@@ -87,7 +87,7 @@ class ConfigHandler(object):
:param separator: List items separator character.
:rtype: list
"""
if isinstance(value, list): # _parse_complex case
if isinstance(value, list): # _get_parser_compound case
return value
if '\n' in value:
......@@ -250,7 +250,7 @@ class ConfigHandler(object):
for section_name, section_options in self.sections.items():
method_postfix = ''
if section_name: # [section:option] variant
if section_name: # [section.option] variant
method_postfix = '_%s' % section_name
section_parser_method = getattr(
......@@ -258,7 +258,7 @@ class ConfigHandler(object):
if section_parser_method is None:
raise DistutilsOptionError(
'Unsupported distribution option section: [%s:%s]' % (
'Unsupported distribution option section: [%s.%s]' % (
self.section_prefix, section_name))
section_parser_method(section_options)
......
......@@ -66,6 +66,8 @@ class TestMetadata:
'keywords = one, two\n'
'provides = package, package.sub\n'
'license = otherlic\n'
'download_url = http://test.test.com/test/\n'
'maintainer_email = test@test.com\n'
)
tmpdir.join('README').write('readme contents\nline2')
......@@ -85,6 +87,8 @@ class TestMetadata:
assert metadata.license == 'BSD 3-Clause License'
assert metadata.name == 'fake_name'
assert metadata.keywords == ['one', 'two']
assert metadata.download_url == 'http://test.test.com/test/'
assert metadata.maintainer_email == 'test@test.com'
def test_file_sandboxed(self, tmpdir):
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment