コード例 #1
0
    def test_supported_types(self):
        actual_types = View.supported_types()

        self.assertIn("hudson.model.ListView", actual_types)
        self.assertIn("hudson.model.AllView", actual_types)
        self.assertIn("hudson.model.MyView", actual_types)

        self.assertGreater(len(actual_types), 3)
コード例 #2
0
 def view_types(self):
     """
     :returns: a list of Jenkins view types currently supported by this instance of PyJen
               Elements from this list may be used when creating new views on this Jenkins instance,
               so long as the accompanying view type is supported by the live Jenkins server
     :rtype: :class:`list` of :class:`str`
     """
     return View.supported_types()