Exemplo 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
Exemplo 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
Exemplo 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
Exemplo 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
Exemplo 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
Exemplo 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