File tree Expand file tree Collapse file tree 1 file changed +9
-8
lines changed Expand file tree Collapse file tree 1 file changed +9
-8
lines changed Original file line number Diff line number Diff line change 16
16
"""
17
17
import pytest
18
18
19
- from dbt .tests .adapter .caching .test_caching import (
20
- BaseCachingTest ,
21
- BaseCachingLowercaseModel ,
22
- BaseCachingUppercaseModel ,
23
- BaseCachingSelectedSchemaOnly ,
24
- )
19
+ from dbt .tests .adapter .caching .test_caching import BaseCachingTest
20
+
25
21
from dbt .tests .util import run_dbt
26
22
27
23
model_sql = """
@@ -80,7 +76,7 @@ def models(self):
80
76
}
81
77
82
78
83
- class TestCachingUppercaseModel (BaseCachingUppercaseModel ):
79
+ class TestCachingUppercaseModel (OracleBaseCaching ):
84
80
85
81
@pytest .fixture (scope = "class" )
86
82
def models (self ):
@@ -89,11 +85,16 @@ def models(self):
89
85
}
90
86
91
87
92
- class TestCachingSelectedSchemaOnly (BaseCachingSelectedSchemaOnly ):
88
+ class TestCachingSelectedSchemaOnly (OracleBaseCaching ):
93
89
94
90
@pytest .fixture (scope = "class" )
95
91
def models (self ):
96
92
return {
97
93
"model.sql" : model_sql ,
98
94
"another_schema_model.sql" : another_schema_model_sql ,
99
95
}
96
+
97
+ def test_cache (self , project ):
98
+ # this should only cache the schema containing the selected model
99
+ run_args = ["--cache-selected-only" , "run" , "--select" , "model" ]
100
+ self .run_and_inspect_cache (project , run_args )
You can’t perform that action at this time.
0 commit comments