コード例 #1
0
 def test_item_subsection(self, idx, subsection):
     result = list(validate_docstrings.get_api_items(self.api_doc))
     assert result[idx][3] == subsection
コード例 #2
0
 def test_item_function(self, idx, func):
     result = list(validate_docstrings.get_api_items(self.api_doc))
     assert callable(result[idx][1])
     assert result[idx][1].__name__ == func
コード例 #3
0
 def test_item_name(self, idx, name):
     result = list(validate_docstrings.get_api_items(self.api_doc))
     assert result[idx][0] == name
コード例 #4
0
 def test_item_subsection(self, idx, subsection):
     result = list(validate_docstrings.get_api_items(self.api_doc))
     assert result[idx][3] == subsection
コード例 #5
0
 def test_item_function(self, idx, func):
     result = list(validate_docstrings.get_api_items(self.api_doc))
     assert callable(result[idx][1])
     assert result[idx][1].__name__ == func
コード例 #6
0
 def test_item_name(self, idx, name):
     result = list(validate_docstrings.get_api_items(self.api_doc))
     assert result[idx][0] == name