Ejemplo n.º 1
0
 def test_fail_fast_error_raised(self):
     options = {'fail_fast': True}
     task = DuplicateDetector(create_context(options=options))
     with pytest.raises(TaskError):
         task._is_conflicts(self.path_with_duplicates, None)
Ejemplo n.º 2
0
 def test_fail_fast_error_raised(self):
   options = {'fail_fast': True}
   task = DuplicateDetector(create_context(options=options))
   with pytest.raises(TaskError):
     task._is_conflicts(self.path_with_duplicates, None)
Ejemplo n.º 3
0
 def test_duplicate_not_found(self):
     options = {'fail_fast': False}
     task = DuplicateDetector(create_context(options=options))
     self.assertFalse(task._is_conflicts(self.path_without_duplicates,
                                         None))
Ejemplo n.º 4
0
 def test_duplicate_not_found(self):
   options = {'fail_fast': False}
   task = DuplicateDetector(create_context(options=options))
   self.assertFalse(task._is_conflicts(self.path_without_duplicates, None))