示例#1
0
def test_doc_lists(docs_descriptor):
    docstring = autogen.process_docstring(docs_descriptor['doc'])
    assert markdown(docstring) == markdown(docs_descriptor['result'])
示例#2
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
示例#3
0
def test_doc_lists(docs_descriptor):
    docstring = autogen.process_docstring(docs_descriptor['doc'])
    assert markdown(docstring) == markdown(docs_descriptor['result'])
示例#4
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
def test_doc_lists():
    docstring = autogen.process_docstring(test_doc1['doc'])
    assert markdown(docstring) == markdown(test_doc1['result'])
def test_doc_lists():
    docstring = autogen.process_docstring(test_doc1['doc'])
    assert docstring == test_doc1['result']
def test_doc_lists():
    docstring = autogen.process_docstring(test_doc1['doc'])
    assert docstring == test_doc1['result']
def test_doc_lists():
    docstring = autogen.process_docstring(test_doc1["doc"])
    assert markdown(docstring) == markdown(test_doc1["result"])
def test_doc_lists():
    docstring = autogen.process_docstring(test_doc1['doc'])
    assert markdown(docstring) == markdown(test_doc1['result'])