Skip to content

Commit

Permalink
Skip CLI setup in tests (#1650)
Browse files Browse the repository at this point in the history
The setup for the dbt project should be skipped, as otherwise, devs
could see unusual errors if they have a dbt project configured while
running tests.
  • Loading branch information
plypaul committed Feb 6, 2025
1 parent 46a30a9 commit c65021f
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions tests_metricflow/fixtures/cli_fixtures.py
Original file line number Diff line number Diff line change
Expand Up @@ -38,6 +38,11 @@ def __init__(self) -> None:
self._semantic_manifest_lookup: Optional[SemanticManifestLookup] = None
self._log_file_path: Optional[pathlib.Path] = None

@override
def setup(self) -> None:
# For tests, a dbt project is not needed, so don't try to configure it.
return

@property
@override
def dbt_artifacts(self) -> dbtArtifacts:
Expand Down

0 comments on commit c65021f

Please sign in to comment.