diff options
author | Jason R. Coombs <jaraco@jaraco.com> | 2020-06-15 17:19:42 -0400 |
---|---|---|
committer | Jason R. Coombs <jaraco@jaraco.com> | 2020-06-15 17:19:42 -0400 |
commit | b88c8849a58346700eccdf3b44aa6b57a4b6ebcf (patch) | |
tree | 8c019fa46747d500e463a4d76ffe029367740297 /setuptools/tests | |
parent | 3955acbb0da75df804d86a52d6fbcc269075a9d3 (diff) | |
download | python-setuptools-git-feature/simple-dist-name-in-scripts.tar.gz |
Avoid the full spec and only rely on the dist name when generating script wrappers.feature/simple-dist-name-in-scripts
Diffstat (limited to 'setuptools/tests')
-rw-r--r-- | setuptools/tests/test_easy_install.py | 7 |
1 files changed, 3 insertions, 4 deletions
diff --git a/setuptools/tests/test_easy_install.py b/setuptools/tests/test_easy_install.py index 8611dc16..f9073574 100644 --- a/setuptools/tests/test_easy_install.py +++ b/setuptools/tests/test_easy_install.py @@ -45,14 +45,13 @@ __metaclass__ = type class FakeDist: + project_name = 'project' + def get_entry_map(self, group): if group != 'console_scripts': return {} return {str('name'): 'ep'} - def as_requirement(self): - return 'spec' - SETUP_PY = DALS(""" from setuptools import setup @@ -76,7 +75,7 @@ class TestEasyInstallTest: args = next(ei.ScriptWriter.get_args(dist)) name, script = itertools.islice(args, 2) assert script.startswith(header) - assert "'spec'" in script + assert "'project'" in script assert "'console_scripts'" in script assert "'name'" in script assert re.search( |