Example #1
0
def test_generate_and_parse():
    markdown = _intermediary_to_markdown(c.tables, [c.relation])
    tables, relations = line_iterator_to_intermediary(markdown.split('\n'))
    c.assert_lst_equal(tables, c.tables)
    c.assert_lst_equal(relations, [c.relation])
def test_all_to_er():
    tables = [child, parent]
    relations = [relation]
    output = _intermediary_to_markdown(tables, relations)
    for element in relations + tables:
        assert element.to_er() in output
Example #3
0
def test_all_to_er():
    tables = [child, parent]
    relations = [relation]
    output = _intermediary_to_markdown(tables, relations)
    for element in relations + tables:
        assert element.to_markdown() in output
Example #4
0
def test_generate_and_parse():
    markdown = _intermediary_to_markdown(c.tables, [c.relation])
    tables, relations = line_iterator_to_intermediary(markdown.split('\n'))
    c.assert_lst_equal(tables, c.tables)
    c.assert_lst_equal(relations, [c.relation])