Skip to content
This repository has been archived by the owner on Nov 6, 2023. It is now read-only.

Commit

Permalink
tests: clean up tests (#243)
Browse files Browse the repository at this point in the history
  • Loading branch information
Vixtir authored Oct 25, 2023
1 parent b0a9b19 commit ccad4cc
Show file tree
Hide file tree
Showing 10 changed files with 5 additions and 285 deletions.
2 changes: 1 addition & 1 deletion odd_collector/adapters/databricks/mappers/models.py
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@

@dataclass(frozen=True)
class DatabricksColumn(Column):
odd_metadata: dict[str, Any] = field(default_factory=dict)
...


@dataclass()
Expand Down
2 changes: 1 addition & 1 deletion odd_collector/adapters/databricks/mappers/table.py
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,7 @@ def get_column(table_info: dict, column_raw: dict) -> DatabricksColumn:
name=column_raw.pop("name"),
type=column_raw.get("type_text"),
is_nullable=column_raw.get("nullable"),
odd_metadata=column_raw,
metadata=column_raw,
)
return column

Expand Down
Empty file.
89 changes: 0 additions & 89 deletions odd_collector/adapters/superset/tests/raw_data.py

This file was deleted.

28 changes: 0 additions & 28 deletions odd_collector/adapters/superset/tests/test_map_column.py

This file was deleted.

55 changes: 0 additions & 55 deletions odd_collector/adapters/superset/tests/test_map_dashboard.py

This file was deleted.

55 changes: 0 additions & 55 deletions odd_collector/adapters/superset/tests/test_map_database.py

This file was deleted.

53 changes: 0 additions & 53 deletions odd_collector/adapters/superset/tests/test_map_table.py

This file was deleted.

2 changes: 1 addition & 1 deletion tests/adapters/mode/mock_rest_client.py
Original file line number Diff line number Diff line change
Expand Up @@ -487,7 +487,7 @@ def __init__(self):
},
}

async def fetch_async_response(self, session, request_args: RequestArgs):
async def fetch(self, session, request_args: RequestArgs):
response = None
if "/api/account/data_sources" in request_args.url:
response = self.data_sources
Expand Down
4 changes: 2 additions & 2 deletions tests/integration/test_postgres.py
Original file line number Diff line number Diff line change
Expand Up @@ -107,8 +107,8 @@ def test_data_base_service(data_entity_list: odd_models.DataEntityList):
other_schema = find_by_name(data_entity_list, "other_schema")

assert database is not None
public_schema is not None
other_schema is not None
assert public_schema is not None
assert other_schema is not None

assert database.data_entity_group is not None
assert len(database.data_entity_group.entities_list) == 2
Expand Down

0 comments on commit ccad4cc

Please sign in to comment.