c88c53784a10d33065adb895724d76afae8289b9,tests/python/pants_test/build_graph/test_build_configuration.py,BuildConfigurationTest,test_register_exposed_object,#BuildConfigurationTest#,100
Before Change
self.assertEqual({}, aliases.context_aware_object_factories)
self.assertEqual(dict(jane=42), aliases.objects)
build_file = BuildFile(FileSystemProjectTree("/tmp"), "jane", must_exist=False)
parse_state = self.build_configuration.initialize_parse_state(build_file)
self.assertEqual(0, len(parse_state.registered_addressable_instances))
self.assertEqual(1, len(parse_state.parse_globals))
self.assertEqual(42, parse_state.parse_globals["jane"])
After Change
self.assertEqual({}, aliases.context_aware_object_factories)
self.assertEqual(dict(jane=42), aliases.objects)
with self._create_mock_build_file("jane") as build_file:
parse_state = self.build_configuration.initialize_parse_state(build_file)
self.assertEqual(0, len(parse_state.registered_addressable_instances))
self.assertEqual(1, len(parse_state.parse_globals))
self.assertEqual(42, parse_state.parse_globals["jane"])
def test_register_exposed_context_aware_function(self):
self.do_test_exposed_context_aware_function(lambda context: lambda: context.rel_path)
self.do_test_exposed_context_aware_function(lambda context=None: lambda: context.rel_path)
In pattern: SUPERPATTERN
Frequency: 3
Non-data size: 7
Instances
Project Name: pantsbuild/pants
Commit Name: c88c53784a10d33065adb895724d76afae8289b9
Time: 2016-01-26
Author: abishev.timur@gmail.com
File Name: tests/python/pants_test/build_graph/test_build_configuration.py
Class Name: BuildConfigurationTest
Method Name: test_register_exposed_object
Project Name: pantsbuild/pants
Commit Name: c88c53784a10d33065adb895724d76afae8289b9
Time: 2016-01-26
Author: abishev.timur@gmail.com
File Name: tests/python/pants_test/build_graph/test_build_configuration.py
Class Name: BuildConfigurationTest
Method Name: test_register_target_macro_facory
Project Name: pantsbuild/pants
Commit Name: c88c53784a10d33065adb895724d76afae8289b9
Time: 2016-01-26
Author: abishev.timur@gmail.com
File Name: tests/python/pants_test/build_graph/test_build_configuration.py
Class Name: BuildConfigurationTest
Method Name: test_register_target_alias