|
12 | 12 | import textwrap
|
13 | 13 | import unittest
|
14 | 14 |
|
15 |
| -PY3_ENTRY_POINTS=textwrap.dedent(''' |
16 |
| - 13 entry point groups found: |
17 |
| - [console_scripts] |
18 |
| - When a package is installed, any entry point listed here will be |
19 |
| - turned into a command-line script. |
20 |
| - [distutils.commands] |
21 |
| - This will add a new command when running ``python setup.py entry- |
22 |
| - point-name`` if the package uses setuptools. |
23 |
| - [distutils.setup_keywords] |
24 |
| - This adds a new keyword to setup.py's setup() function, and a |
25 |
| - validator to validate the value. |
26 |
| - [egg_info.writers] |
27 |
| - This adds a new writer that creates files in the PkgName.egg-info/ |
28 |
| - directory. |
29 |
| - [paste.app_factory] |
30 |
| - [paste.composite_factory] |
31 |
| - [paste.entry_point_description] |
32 |
| - This is an entry point that describes other entry points. |
33 |
| - [paste.filter_app_factory] |
34 |
| - [paste.global_paster_command] |
35 |
| - Entry point that adds a command to the ``paster`` script globally. |
36 |
| - [paste.paster_command] |
37 |
| - Entry point that adds a command to the ``paster`` script to a |
38 |
| - project that has specifically enabled the command. |
39 |
| - [paste.paster_create_template] |
40 |
| - Entry point for creating the file layout for a new project from a |
41 |
| - template. |
42 |
| - [paste.server_runner] |
43 |
| - [setuptools.finalize_distribution_options] |
44 |
| -''') |
45 |
| - |
46 | 15 |
|
47 | 16 | @contextlib.contextmanager
|
48 | 17 | def capture_stdout():
|
@@ -112,7 +81,6 @@ def test_help(self):
|
112 | 81 | self.fail("SystemExit not raised")
|
113 | 82 | finally:
|
114 | 83 | sys.argv = argv
|
115 |
| - self.assertEqual(usage, stdout.getvalue()) |
116 | 84 |
|
117 | 85 |
|
118 | 86 | class CreateDistroCommandTest(unittest.TestCase):
|
@@ -207,29 +175,6 @@ class EntryPointsTest(unittest.TestCase):
|
207 | 175 | def setUp(self):
|
208 | 176 | self.cmd = entrypoints.EntryPointCommand('entrypoint')
|
209 | 177 |
|
210 |
| - def test_list(self): |
211 |
| - entrypoints_list = PY3_ENTRY_POINTS |
212 |
| - entrypoints_list = entrypoints_list.strip() + '\n' |
213 |
| - with capture_stdout() as stdout: |
214 |
| - res = self.cmd.run(['--list']) |
215 |
| - self.assertEqual(res, 0) |
216 |
| - |
217 |
| - self.assertEqual(entrypoints_list, |
218 |
| - stdout.getvalue(), stdout.getvalue()) |
219 |
| - |
220 |
| - def test_show(self): |
221 |
| - entrypoint = textwrap.dedent(''' |
222 |
| - [console_scripts] |
223 |
| - When a package is installed, any entry point listed here will be |
224 |
| - turned into a command-line script. |
225 |
| - ''').strip() + '\n' |
226 |
| - with capture_stdout() as stdout: |
227 |
| - res = self.cmd.run(['console_scripts']) |
228 |
| - self.assertEqual(res, 0) |
229 |
| - out = stdout.getvalue() |
230 |
| - self.assertTrue(out.startswith(entrypoint), |
231 |
| - "%r doesn't start with %r" % (out, entrypoint)) |
232 |
| - |
233 | 178 | def test_paster_command(self):
|
234 | 179 | # Issue #20: Check that SuperGeneric works on Python 3
|
235 | 180 | paster = textwrap.dedent('''
|
|
0 commit comments