Ejemplo n.º 1
0
    def test_should_convert_a_file_with_flake8_errors_to_junit_xml(self):
        _convert(failed_flake8, self.destination)

        self.assertFileExist(self.destination)
        self.assertXmlIsValid(self.destination)
Ejemplo n.º 2
0
 def test_should_create_a_file_even_when_there_are_no_errors(self):
      _convert(valid_flake8, self.destination)
      self.assertFileExist(self.destination)
Ejemplo n.º 3
0
 def test_should_not_create_a_file_if_there_are_no_errors(self):
     _convert(valid_flake8, self.destination)
     self.assertFileDoesNotExist(self.destination)
Ejemplo n.º 4
0
    def test_should_convert_a_file_with_flake8_errors_to_junit_xml(self):
        _convert(failed_flake8, self.destination)

        self.assertFileExist(self.destination)
        self.assertXmlIsValid(self.destination)
Ejemplo n.º 5
0
 def test_should_not_create_a_file_if_there_are_no_errors(self):
     _convert(valid_flake8, self.destination)
     self.assertFileDoesNotExist(self.destination)