Esempio n. 1
0
def test_filter_exclude_columns():
    actual_tables, actual_relationships = filter_resources(
        tables, relationships, exclude_columns=['id'])
    check_tables_columns(actual_tables, id_is_included=False)
Esempio n. 2
0
def test_filter_include_tables():
    actual_tables, actual_relationships = filter_resources(
        tables, relationships, include_tables=['parent', 'child'])
    check_tables_relationships(actual_tables, actual_relationships)
Esempio n. 3
0
def test_filter_exclude_tables():
    actual_tables, actual_relationships = filter_resources(
        tables, relationships, exclude_tables=['exclude'])
    check_tables_relationships(actual_tables, actual_relationships)
Esempio n. 4
0
def test_filter_no_include_no_exclude():
    actual_tables, actual_relationships = filter_resources(
        tables, relationships)
    check_filter(actual_tables, actual_relationships)
Esempio n. 5
0
def test_filter_exclude_columns():
    actual_tables, actual_relationships = filter_resources(tables, relationships, exclude_columns=['id'])
    check_tables_columns(actual_tables, id_is_included=False)
Esempio n. 6
0
def test_filter_exclude_tables():
    actual_tables, actual_relationships = filter_resources(tables, relationships, exclude_tables=['exclude'])
    check_tables_relationships(actual_tables, actual_relationships)
Esempio n. 7
0
def test_filter_include_tables():
    actual_tables, actual_relationships = filter_resources(tables, relationships, include_tables=['parent', 'child'])
    check_tables_relationships(actual_tables, actual_relationships)
Esempio n. 8
0
def test_filter_no_include_no_exclude():
    actual_tables, actual_relationships = filter_resources(tables, relationships)
    check_filter(actual_tables, actual_relationships)