File tree Expand file tree Collapse file tree 1 file changed +11
-2
lines changed Expand file tree Collapse file tree 1 file changed +11
-2
lines changed Original file line number Diff line number Diff line change 17
17
seeds__disabled_in_config_csv ,
18
18
seeds__enabled_in_config_csv ,
19
19
)
20
- from dbt .tests .util import copy_file
20
+ from dbt .tests .util import copy_file , get_connection
21
+
22
+ from dbt .adapters .sqlserver import SQLServerAdapter
21
23
22
24
fixed_setup_sql = seeds__expected_sql .replace ("TIMESTAMP WITHOUT TIME ZONE" , "DATETIME" ).replace (
23
25
"TEXT" , "VARCHAR(255)"
@@ -157,7 +159,14 @@ def setUp(self, project):
157
159
158
160
159
161
class TestSimpleSeedEnabledViaConfigSQLServer (TestSimpleSeedEnabledViaConfig ):
160
- pass
162
+ @pytest .fixture (scope = "function" )
163
+ def clear_test_schema (self , project ):
164
+ yield
165
+ adapter = project .adapter
166
+ assert isinstance (project .adapter , SQLServerAdapter )
167
+ with get_connection (project .adapter ):
168
+ rel = adapter .Relation .create (database = project .database , schema = project .test_schema )
169
+ adapter .drop_schema (rel )
161
170
162
171
163
172
class TestSeedParsingSQLServer (TestSeedParsing ):
You can’t perform that action at this time.
0 commit comments