Skip to content

Instantly share code, notes, and snippets.

@stuhood
Created March 12, 2019 22:29
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save stuhood/a2a927816f7d7712278b454949778d15 to your computer and use it in GitHub Desktop.
Save stuhood/a2a927816f7d7712278b454949778d15 to your computer and use it in GitHub Desktop.
_ IdeaPluginIntegrationTest.test_idea_plugin_long_project_name _
self = <pants_test.backend.project_info.tasks.test_idea_plugin_integration.IdeaPluginIntegrationTest testMethod=test_idea_plugin_long_project_name>
def test_idea_plugin_long_project_name(self):
list_run = self.run_pants(['-q', 'list', 'testprojects/tests/java/org/pantsbuild/testproject/::'])
self.assert_success(list_run)
self.assertGreater(len(list_run.stdout_data), IdeaPluginGen.PROJECT_NAME_LIMIT)
a_lot_of_targets = [l for l in list_run.stdout_data.splitlines() if l]
self.assertEqual(IdeaPluginGen.PROJECT_NAME_LIMIT, len(IdeaPluginGen.get_project_name(a_lot_of_targets)))
> self._run_and_check(a_lot_of_targets)
.pants.d/pyprep/sources/31abf1b1b3ec8c0b6eb990e2dd22acc28a8971c0/pants_test/backend/project_info/tasks/test_idea_plugin_integration.py:138:
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
.pants.d/pyprep/sources/31abf1b1b3ec8c0b6eb990e2dd22acc28a8971c0/pants_test/backend/project_info/tasks/test_idea_plugin_integration.py:95: in _run_and_check
project_dir = self._get_project_dir(output_file.name)
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
self = <pants_test.backend.project_info.tasks.test_idea_plugin_integration.IdeaPluginIntegrationTest testMethod=test_idea_plugin_long_project_name>
output_file = '/home/travis/build/pantsbuild/pants/.pants.d/tmp/tmpa8wc2k4y.pants.d/tmpilewtlv3'
def _get_project_dir(self, output_file):
with open(output_file, 'r') as result:
> return result.readlines()[0]
E IndexError: list index out of range
.pants.d/pyprep/sources/31abf1b1b3ec8c0b6eb990e2dd22acc28a8971c0/pants_test/backend/project_info/tasks/test_idea_plugin_integration.py:67: IndexError
_ IdeaPluginIntegrationTest.test_idea_plugin_multiple_targets _
self = <pants_test.backend.project_info.tasks.test_idea_plugin_integration.IdeaPluginIntegrationTest testMethod=test_idea_plugin_multiple_targets>
def test_idea_plugin_multiple_targets(self):
target_a = 'examples/src/scala/org/pantsbuild/example/hello:'
target_b = 'testprojects/src/python/antlr::'
> self._run_and_check([target_a, target_b])
.pants.d/pyprep/sources/31abf1b1b3ec8c0b6eb990e2dd22acc28a8971c0/pants_test/backend/project_info/tasks/test_idea_plugin_integration.py:118:
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
.pants.d/pyprep/sources/31abf1b1b3ec8c0b6eb990e2dd22acc28a8971c0/pants_test/backend/project_info/tasks/test_idea_plugin_integration.py:95: in _run_and_check
project_dir = self._get_project_dir(output_file.name)
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
self = <pants_test.backend.project_info.tasks.test_idea_plugin_integration.IdeaPluginIntegrationTest testMethod=test_idea_plugin_multiple_targets>
output_file = '/home/travis/build/pantsbuild/pants/.pants.d/tmp/tmpvckqo8nn.pants.d/tmplcxkpszw'
def _get_project_dir(self, output_file):
with open(output_file, 'r') as result:
> return result.readlines()[0]
E IndexError: list index out of range
.pants.d/pyprep/sources/31abf1b1b3ec8c0b6eb990e2dd22acc28a8971c0/pants_test/backend/project_info/tasks/test_idea_plugin_integration.py:67: IndexError
_ IdeaPluginIntegrationTest.test_idea_plugin_single_target _
self = <pants_test.backend.project_info.tasks.test_idea_plugin_integration.IdeaPluginIntegrationTest testMethod=test_idea_plugin_single_target>
def test_idea_plugin_single_target(self):
target = 'examples/src/scala/org/pantsbuild/example/hello:hello'
> self._run_and_check([target])
.pants.d/pyprep/sources/31abf1b1b3ec8c0b6eb990e2dd22acc28a8971c0/pants_test/backend/project_info/tasks/test_idea_plugin_integration.py:102:
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
.pants.d/pyprep/sources/31abf1b1b3ec8c0b6eb990e2dd22acc28a8971c0/pants_test/backend/project_info/tasks/test_idea_plugin_integration.py:95: in _run_and_check
project_dir = self._get_project_dir(output_file.name)
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
self = <pants_test.backend.project_info.tasks.test_idea_plugin_integration.IdeaPluginIntegrationTest testMethod=test_idea_plugin_single_target>
output_file = '/home/travis/build/pantsbuild/pants/.pants.d/tmp/tmp1gnzh8bm.pants.d/tmpcwg7jub9'
def _get_project_dir(self, output_file):
with open(output_file, 'r') as result:
> return result.readlines()[0]
E IndexError: list index out of range
.pants.d/pyprep/sources/31abf1b1b3ec8c0b6eb990e2dd22acc28a8971c0/pants_test/backend/project_info/tasks/test_idea_plugin_integration.py:67: IndexError
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment