Skip to content

Commit

Permalink
Add a test for setup.py with no name
Browse files Browse the repository at this point in the history
  • Loading branch information
rotu committed Sep 19, 2019
1 parent dd03ac4 commit 5d9c766
Showing 1 changed file with 7 additions and 0 deletions.
7 changes: 7 additions & 0 deletions test/test_package_identification_python.py
Original file line number Diff line number Diff line change
Expand Up @@ -60,6 +60,13 @@ def test_empty_setup_py(unchanged_empty_descriptor):
assert e.match('not a Distutils setup script')


def test_setup_py_no_name(unchanged_empty_descriptor):
extension = PythonPackageIdentification()
(unchanged_empty_descriptor.path / 'setup.py').write_text(
'import setuptools; setuptools.setup(name="")')
extension.identify(unchanged_empty_descriptor)


def test_re_identify_if_non_python_package(package_descriptor):
package_descriptor.name = 'other-package'
package_descriptor.type = 'other'
Expand Down

0 comments on commit 5d9c766

Please sign in to comment.