def test_all_to_intermediary(): tables, relationships = all_to_intermediary(Base) check_intermediary_representation_simple_table(tables, relationships) db_uri = create_db() tables, relationships = all_to_intermediary(db_uri) check_intermediary_representation_simple_table(tables, relationships) with pytest.raises(ValueError): tables, relationships = all_to_intermediary('plop')
def test_all_to_intermediary_base(): tables, relationships = all_to_intermediary(Base) check_intermediary_representation_simple_table(tables, relationships)
def test_all_to_intermediary_markdown(): tables, relationships = all_to_intermediary(markdown.split('\n')) check_intermediary_representation_simple_table(tables, relationships)
def test_all_to_intermediary_db(): db_uri = create_db() tables, relationships = all_to_intermediary(db_uri) check_intermediary_representation_simple_table(tables, relationships)
def test_all_to_intermediary_db_sqlite(): db_uri = create_db(db_uri="sqlite:///test.db", use_sqlite=True) tables, relationships = all_to_intermediary(db_uri) check_intermediary_representation_simple_table(tables, relationships)
def test_declarative_to_intermediary(): tables, relationships = declarative_to_intermediary(Base) check_intermediary_representation_simple_table(tables, relationships)