53c3e300aa23a1568789925d9f103eac877edc46,tests/python/pants_test/engine/test_mapper.py,AddressMapperTest,test_no_address_no_family,#AddressMapperTest#,265

Before Change


  def test_no_address_no_family(self):
    spec = SingleAddress("a/c", None)
    // Should fail: does not exist.
    with self.assertRaises(Exception):
      self.resolve(spec)

    // Exists on disk, but not yet in memory.
    directory = "a/c"
    build_file = os.path.join(self.build_root, directory, "c.BUILD.json")
    with safe_open(build_file, "w") as fp:
      fp.write("{"type_alias": "struct", "name": "c"}")

After Change


    build_file = os.path.join(self.build_root, directory, "c.BUILD.json")
    with safe_open(build_file, "w") as fp:
      fp.write("{"type_alias": "struct", "name": "c"}")
    self.assertEqual(0, len(self.resolve(spec)))

    // Success.
    self.scheduler.invalidate_files([directory])
    resolved = self.resolve(spec)
Italian Trulli
In pattern: SUPERPATTERN

Frequency: 4

Non-data size: 4

Instances


Project Name: pantsbuild/pants
Commit Name: 53c3e300aa23a1568789925d9f103eac877edc46
Time: 2017-03-02
Author: stuhood@twitter.com
File Name: tests/python/pants_test/engine/test_mapper.py
Class Name: AddressMapperTest
Method Name: test_no_address_no_family


Project Name: pantsbuild/pants
Commit Name: 6e2d807a8f676a3a0eac27343dd31c4e7d9bed8d
Time: 2016-02-17
Author: stuhood@gmail.com
File Name: tests/python/pants_test/engine/exp/test_graph.py
Class Name: InlinedGraphTest
Method Name: test_not_found_and_family_does_not_exist


Project Name: pantsbuild/pants
Commit Name: 6e2d807a8f676a3a0eac27343dd31c4e7d9bed8d
Time: 2016-02-17
Author: stuhood@gmail.com
File Name: tests/python/pants_test/engine/exp/test_graph.py
Class Name: InlinedGraphTest
Method Name: test_type_mismatch_error


Project Name: pantsbuild/pants
Commit Name: 6e2d807a8f676a3a0eac27343dd31c4e7d9bed8d
Time: 2016-02-17
Author: stuhood@gmail.com
File Name: tests/python/pants_test/engine/exp/test_graph.py
Class Name: InlinedGraphTest
Method Name: test_not_found_but_family_exists