9979b78f759ef7f210f5c6319b194db121157197,tests/python/pants_test/core_tasks/test_prep_command_integration.py,PrepCommandIntegrationTest,_execute_pants,#PrepCommandIntegrationTest#Any#,52
Before Change
with self.temporary_workdir() as workdir:
prep_commands_specs = self._emit_targets(workdir)
config = {"GLOBAL" : {"build_ignore" : [] , "pants_ignore" : []}}
pants_run = self.run_pants_with_workdir(
[goal] + prep_commands_specs, workdir, config=config
)
After Change
@contextmanager
def _execute_pants (self, goal) :
with temporary_dir (os.getcwd() ) as buildroot, self.temporary_workdir (buildroot) as workdir:
prep_commands_specs = self._emit_targets(buildroot)
pants_run = self.run_pants_with_workdir([goal] + prep_commands_specs, workdir)
self.assert_success(pants_run)
yield buildroot
def test_prep_command_in_compile (self) :
with self._execute_pants ("compile" ) as buildroot:
self._assert_goal_ran (buildroot, "compile" )
self._assert_goal_did_not_run (buildroot, "test" )
In pattern: SUPERPATTERN
Frequency: 4
Non-data size: 4
Instances Project Name: pantsbuild/pants
Commit Name: 9979b78f759ef7f210f5c6319b194db121157197
Time: 2020-05-06
Author: stuhood@twitter.com
File Name: tests/python/pants_test/core_tasks/test_prep_command_integration.py
Class Name: PrepCommandIntegrationTest
Method Name: _execute_pants
Project Name: pantsbuild/pants
Commit Name: 1ae352138a76085f32967e4587495654c32c06f5
Time: 2016-01-04
Author: wangpeiyu@gmail.com
File Name: tests/python/pants_test/backend/jvm/tasks/test_classpath_util.py
Class Name: ClasspathUtilTest
Method Name: test_create_canonical_classpath_with_common_prefix
Project Name: pantsbuild/pants
Commit Name: 1ae352138a76085f32967e4587495654c32c06f5
Time: 2016-01-04
Author: wangpeiyu@gmail.com
File Name: tests/python/pants_test/backend/jvm/tasks/test_classpath_util.py
Class Name: ClasspathUtilTest
Method Name: test_create_canonical_classpath
Project Name: pantsbuild/pants
Commit Name: 68b5d43928fee87d857089e29b987ccdeb71bed2
Time: 2014-06-09
Author: tejal29@gmail.com
File Name: tests/python/pants_test/tasks/test_jar_publish.py
Class Name: JarPublishTest
Method Name: test_smoke_publish