def test_parser(self):
     with self.assertRaisesRegex(
             Exception,
             'It has configured more than one Product SonarQube Configuration but non of them has been choosen.'
     ):
         SonarQubeApiImporter.prepare_client(self.test)
 def test_product_mismatch(self):
     with self.assertRaisesRegex(
             Exception,
             'Product SonarQube Configuration and "Product" mismatch'):
         SonarQubeApiImporter.prepare_client(self.other_test)
示例#3
0
 def test_parser(self):
     with self.assertRaisesRegex(Exception,
                                 'No SonarQube tool is configured.'):
         SonarQubeApiImporter.prepare_client(self.test)
示例#4
0
 def test_product_mismatch(self):
     with self.assertRaisesRegex(
             Exception,
             'Product API Scan Configuration and Product do not match.'):
         SonarQubeApiImporter.prepare_client(self.other_test)
示例#5
0
 def test_parser(self):
     with self.assertRaisesRegex(
             Exception,
             'More than one Product API Scan Configuration has been configured, but none of them has been chosen.'
     ):
         SonarQubeApiImporter.prepare_client(self.test)
示例#6
0
 def test_parser(self):
     with self.assertRaisesRegex(
             Exception,
             'More than one Tool Configuration for SonarQube exists.'):
         SonarQubeApiImporter.prepare_client(self.test)
示例#7
0
 def test_parser(self):
     with self.assertRaisesRegex(
             Exception, 'It has configured more than one SonarQube tool.'):
         SonarQubeApiImporter.prepare_client(self.test)