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)
def test_filter_include_tables(): actual_tables, actual_relationships = filter_resources( tables, relationships, include_tables=['parent', 'child']) check_tables_relationships(actual_tables, actual_relationships)
def test_filter_exclude_tables(): actual_tables, actual_relationships = filter_resources( tables, relationships, exclude_tables=['exclude']) check_tables_relationships(actual_tables, actual_relationships)
def test_filter_no_include_no_exclude(): actual_tables, actual_relationships = filter_resources( tables, relationships) check_filter(actual_tables, actual_relationships)
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)
def test_filter_exclude_tables(): actual_tables, actual_relationships = filter_resources(tables, relationships, exclude_tables=['exclude']) check_tables_relationships(actual_tables, actual_relationships)
def test_filter_include_tables(): actual_tables, actual_relationships = filter_resources(tables, relationships, include_tables=['parent', 'child']) check_tables_relationships(actual_tables, actual_relationships)
def test_filter_no_include_no_exclude(): actual_tables, actual_relationships = filter_resources(tables, relationships) check_filter(actual_tables, actual_relationships)