Пример #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)
Пример #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)
Пример #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)
Пример #4
0
def test_filter_no_include_no_exclude():
    actual_tables, actual_relationships = filter_resources(
        tables, relationships)
    check_filter(actual_tables, actual_relationships)
Пример #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)
Пример #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)
Пример #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)
Пример #8
0
def test_filter_no_include_no_exclude():
    actual_tables, actual_relationships = filter_resources(tables, relationships)
    check_filter(actual_tables, actual_relationships)