Пример #1
0
def test_doc_multiple_sections_code():
    """ Checks that we can have code blocks in multiple sections."""
    generated = autogen.process_docstring(dummy_docstring)
    assert "# Theano-like behavior example" in generated
    assert "def dot(x, y):" in generated
Пример #2
0
def test_doc_lists(docs_descriptor):
    docstring = autogen.process_docstring(docs_descriptor["doc"])
    assert markdown(docstring) == markdown(docs_descriptor["result"])