Skip to content

Commit

Permalink
Naming and docs cleanup
Browse files Browse the repository at this point in the history
  • Loading branch information
gouline committed Jul 25, 2024
1 parent 687d9db commit d9ea53d
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion dbtmetabase/_exposures.py
Original file line number Diff line number Diff line change
Expand Up @@ -65,7 +65,7 @@ def extract_exposures(
collection_filter (Optional[Filter], optional): Filter Metabase collections. Defaults to None.
allow_personal_collections (bool, optional): Allow personal Metabase collections. Defaults to False.
exclude_unverified (bool, optional): Exclude items that have not been verified. Only applies to entity types that support verification. Defaults to False.
tags (Sequence[str], optional): Optional tags for resulting dbt exposures. Defaults to None.
tags (Sequence[str], optional): Optional tags for exported dbt exposures. Defaults to None.
Returns:
Iterable[Mapping]: List of parsed exposures.
Expand Down
4 changes: 2 additions & 2 deletions tests/test_exposures.py
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@ def _assert_exposures(expected_path: Path, actual_path: Path):
assert actual["exposures"] == sorted(expected["exposures"], key=itemgetter("name"))


def test_exposures(core: MockDbtMetabase):
def test_exposures_default(core: MockDbtMetabase):
fixtures_path = FIXTURES_PATH / "exposure" / "default"
output_path = TMP_PATH / "exposure" / "default"
core.extract_exposures(
Expand All @@ -40,7 +40,7 @@ def test_exposures(core: MockDbtMetabase):
)


def test_exposures_aliased_ref(core: MockDbtMetabase):
def test_exposures_default_aliased(core: MockDbtMetabase):
for model in core.manifest.read_models():
if not model.name.startswith("stg_"):
model.alias = f"{model.name}_alias"
Expand Down

0 comments on commit d9ea53d

Please sign in to comment.