Esempio n. 1
0
 def test_item_subsection(self, idx, subsection):
     result = list(validate_docstrings.get_api_items(self.api_doc))
     assert result[idx][3] == subsection
Esempio n. 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
Esempio n. 3
0
 def test_item_name(self, idx, name):
     result = list(validate_docstrings.get_api_items(self.api_doc))
     assert result[idx][0] == name
Esempio n. 4
0
 def test_item_subsection(self, idx, subsection):
     result = list(validate_docstrings.get_api_items(self.api_doc))
     assert result[idx][3] == subsection
Esempio n. 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
Esempio n. 6
0
 def test_item_name(self, idx, name):
     result = list(validate_docstrings.get_api_items(self.api_doc))
     assert result[idx][0] == name