2cee9ffb825757cbe8cacfa23f305b3ad8d527ed,tests/python/pants_test/tasks/test_detect_duplicates.py,DuplicateDetectorTest,test_fail_fast_error_raised,#DuplicateDetectorTest#,80

Before Change


    self.assertFalse(task._is_conflicts(self.path_without_duplicates, binary_target=None))

  def test_fail_fast_error_raised(self):
    old_options = {"fail_fast": True, "excludes": None, "max_dups" : 10}
    task = DuplicateDetector(create_context(old_options=old_options), workdir=None)
    with self.assertRaises(TaskError):
      task._is_conflicts(self.path_with_duplicates, binary_target=None)

After Change


    self.assertFalse(task._is_conflicts(self.path_without_duplicates, binary_target=None))

  def test_fail_fast_error_raised(self):
    context = self.context(
      new_options={
          self.options_scope: { "fail_fast": True, "excludes": None, "max_dups" : 10 }
      }
    )
    task = self.create_task(context, workdir=None)
    task.execute()
    with self.assertRaises(TaskError):
      task._is_conflicts(self.path_with_duplicates, binary_target=None)
Italian Trulli
In pattern: SUPERPATTERN

Frequency: 3

Non-data size: 9

Instances


Project Name: pantsbuild/pants
Commit Name: 2cee9ffb825757cbe8cacfa23f305b3ad8d527ed
Time: 2014-11-04
Author: itykaul@gmail.com
File Name: tests/python/pants_test/tasks/test_detect_duplicates.py
Class Name: DuplicateDetectorTest
Method Name: test_fail_fast_error_raised


Project Name: pantsbuild/pants
Commit Name: 2cee9ffb825757cbe8cacfa23f305b3ad8d527ed
Time: 2014-11-04
Author: itykaul@gmail.com
File Name: tests/python/pants_test/tasks/test_detect_duplicates.py
Class Name: DuplicateDetectorTest
Method Name: test_duplicate_not_found


Project Name: pantsbuild/pants
Commit Name: 2cee9ffb825757cbe8cacfa23f305b3ad8d527ed
Time: 2014-11-04
Author: itykaul@gmail.com
File Name: tests/python/pants_test/tasks/test_detect_duplicates.py
Class Name: DuplicateDetectorTest
Method Name: test_duplicate_found