def test_should_skip_without_warning(self): """Test should_skip_without_warning().""" dispatcher = ProcessorDispatcher() # Check a non-skipped file. self.assertFalse(dispatcher.should_skip_without_warning("foo.txt")) # Check skipped files. paths_to_skip = [ # LayoutTests folder "LayoutTests/foo.txt" ] for path in paths_to_skip: self.assertTrue(dispatcher.should_skip_without_warning(path), "Checking: " + path)
def test_should_skip_without_warning(self): """Test should_skip_without_warning().""" dispatcher = ProcessorDispatcher() # Check a non-skipped file. self.assertFalse(dispatcher.should_skip_without_warning("foo.txt")) # Check skipped files. paths_to_skip = [ # LayoutTests folder "LayoutTests/foo.txt", ] for path in paths_to_skip: self.assertTrue(dispatcher.should_skip_without_warning(path), "Checking: " + path)
def test_check_file_on_skip_without_warning(self): """Test check_file() for a skipped-without-warning file.""" file_path = "LayoutTests/foo.txt" dispatcher = ProcessorDispatcher() # Confirm that the input file is truly a skipped-without-warning file. self.assertTrue(dispatcher.should_skip_without_warning(file_path)) # Check the outcome. self.call_check_file(file_path) self.assert_attributes(None, None, None, "")
def test_check_file_on_skip_without_warning(self): """Test check_file() for a skipped-without-warning file.""" file_path = "LayoutTests/does_exist/foo.txt" dispatcher = ProcessorDispatcher() # Confirm that the input file is truly a skipped-without-warning file. self.assertTrue(dispatcher.should_skip_without_warning(file_path)) # Check the outcome. self.call_check_file(file_path) self.assert_attributes(None, None, None, "")