def test__filter_tables_by_name(self, some_bundle: Bundle, name, ignore_case, expected_len): assert len(some_bundle._filter_tables(name=name, ignore_case=ignore_case)) == expected_len
def test__filter_tables_by_destination_pattern(self, some_bundle: Bundle, destination_pattern, ignore_case, expected_len): assert some_bundle._filter_tables(destination_pattern='_farm')[0].name == 'farm_animals' assert len(some_bundle._filter_tables(destination_pattern=destination_pattern, ignore_case=ignore_case)) == expected_len
def test__filter_tables_noargs(self, some_bundle: Bundle): tables = some_bundle._filter_tables() assert len(tables) == 4