Skip to content

Commit

Permalink
Set context invocation in manifest
Browse files Browse the repository at this point in the history
  • Loading branch information
JCZuurmond committed Jun 2, 2024
1 parent 89dae96 commit 6addf33
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions src/pytest_dbt_core/fixtures.py
Original file line number Diff line number Diff line change
Expand Up @@ -147,6 +147,12 @@ def manifest(
Manifest
The manifest.
"""
if semver.VersionSpecifier("1", "7", "16") < DBT_INSTALLED_VERSION:
from dbt_common.clients.system import get_env
from dbt_common.context import set_invocation_context

set_invocation_context(get_env())

manifest = ManifestLoader.get_full_manifest(adapter.config)
return manifest

Expand Down

0 comments on commit 6addf33

Please sign in to comment.