generated from dbt-labs/dbt-oss-template
-
Notifications
You must be signed in to change notification settings - Fork 17
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Integration Test Optimizations (#56)
* Cache static objects between tests to accelerate integration runs. * Formatting * Add changelog entry. * Remove debug print. * Move tests module implementation. * Tests file. * Add method to disable test caching.
- Loading branch information
1 parent
e852e77
commit 06668d1
Showing
3 changed files
with
56 additions
and
3 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,6 @@ | ||
kind: Features | ||
body: Cache static objects between tests to accelerate integration runs. | ||
time: 2024-01-31T15:29:23.951857-05:00 | ||
custom: | ||
Author: peterallenwebb | ||
Issue: "55" |
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,15 @@ | ||
_TEST_CACHING_ENABLED: bool = False | ||
|
||
|
||
def test_caching_enabled() -> bool: | ||
return _TEST_CACHING_ENABLED | ||
|
||
|
||
def enable_test_caching() -> None: | ||
global _TEST_CACHING_ENABLED | ||
_TEST_CACHING_ENABLED = True | ||
|
||
|
||
def disable_test_caching() -> None: | ||
global _TEST_CACHING_ENABLED | ||
_TEST_CACHING_ENABLED = False |