-
Notifications
You must be signed in to change notification settings - Fork 1.7k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
[Robust Testing] Move tests to tests/unit/context (#9966)
- Loading branch information
1 parent
61727ab
commit f5f9591
Showing
7 changed files
with
141 additions
and
105 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,13 @@ | ||
from dbt.adapters.contracts.connection import AdapterRequiredConfig | ||
from dbt.context.manifest import ManifestContext | ||
from dbt.contracts.graph.manifest import Manifest | ||
|
||
|
||
class QueryHeaderContext(ManifestContext): | ||
def __init__(self, config: AdapterRequiredConfig, manifest: Manifest) -> None: | ||
super().__init__(config, manifest, config.project_name) | ||
|
||
|
||
def generate_query_header_context(config: AdapterRequiredConfig, manifest: Manifest): | ||
ctx = QueryHeaderContext(config, manifest) | ||
return ctx.to_dict() |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
File renamed without changes.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters