Exemplo n.º 1
0
def test_doc_lists(docs_descriptor):
    docstring = autogen.process_docstring(docs_descriptor['doc'])
    assert markdown(docstring) == markdown(docs_descriptor['result'])
Exemplo n.º 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
Exemplo n.º 3
0
def test_doc_lists(docs_descriptor):
    docstring = autogen.process_docstring(docs_descriptor['doc'])
    assert markdown(docstring) == markdown(docs_descriptor['result'])
Exemplo n.º 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']
Exemplo n.º 7
0
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"])
Exemplo n.º 9
0
def test_doc_lists():
    docstring = autogen.process_docstring(test_doc1['doc'])
    assert markdown(docstring) == markdown(test_doc1['result'])