1
1
import os
2
- from typing import Any
3
2
4
3
import pytest
5
4
from _pytest .fixtures import FixtureRequest
@@ -14,7 +13,7 @@ def pytest_addoption(parser):
14
13
15
14
16
15
@pytest .fixture (scope = "class" )
17
- def dbt_profile_target (request : FixtureRequest ) -> dict [ str , Any ] :
16
+ def dbt_profile_target (request : FixtureRequest ):
18
17
profile = request .config .getoption ("--profile" )
19
18
20
19
if profile == "ci_sql_server" :
@@ -41,7 +40,7 @@ def is_azure(request: FixtureRequest) -> bool:
41
40
return "azure" in profile
42
41
43
42
44
- def _all_profiles_base () -> dict [ str , Any ] :
43
+ def _all_profiles_base ():
45
44
return {
46
45
"type" : "sqlserver" ,
47
46
"driver" : os .getenv ("SQLSERVER_TEST_DRIVER" , "ODBC Driver 18 for SQL Server" ),
@@ -50,7 +49,7 @@ def _all_profiles_base() -> dict[str, Any]:
50
49
}
51
50
52
51
53
- def _profile_ci_azure_base () -> dict [ str , Any ] :
52
+ def _profile_ci_azure_base ():
54
53
return {
55
54
** _all_profiles_base (),
56
55
** {
@@ -62,7 +61,7 @@ def _profile_ci_azure_base() -> dict[str, Any]:
62
61
}
63
62
64
63
65
- def _profile_ci_azure_basic () -> dict [ str , Any ] :
64
+ def _profile_ci_azure_basic ():
66
65
return {
67
66
** _profile_ci_azure_base (),
68
67
** {
@@ -72,7 +71,7 @@ def _profile_ci_azure_basic() -> dict[str, Any]:
72
71
}
73
72
74
73
75
- def _profile_ci_azure_cli () -> dict [ str , Any ] :
74
+ def _profile_ci_azure_cli ():
76
75
return {
77
76
** _profile_ci_azure_base (),
78
77
** {
@@ -81,7 +80,7 @@ def _profile_ci_azure_cli() -> dict[str, Any]:
81
80
}
82
81
83
82
84
- def _profile_ci_azure_auto () -> dict [ str , Any ] :
83
+ def _profile_ci_azure_auto ():
85
84
return {
86
85
** _profile_ci_azure_base (),
87
86
** {
@@ -90,7 +89,7 @@ def _profile_ci_azure_auto() -> dict[str, Any]:
90
89
}
91
90
92
91
93
- def _profile_ci_azure_environment () -> dict [ str , Any ] :
92
+ def _profile_ci_azure_environment ():
94
93
return {
95
94
** _profile_ci_azure_base (),
96
95
** {
@@ -99,7 +98,7 @@ def _profile_ci_azure_environment() -> dict[str, Any]:
99
98
}
100
99
101
100
102
- def _profile_ci_sql_server () -> dict [ str , Any ] :
101
+ def _profile_ci_sql_server ():
103
102
return {
104
103
** _all_profiles_base (),
105
104
** {
@@ -113,7 +112,7 @@ def _profile_ci_sql_server() -> dict[str, Any]:
113
112
}
114
113
115
114
116
- def _profile_user () -> dict [ str , Any ] :
115
+ def _profile_user ():
117
116
profile = {
118
117
** _all_profiles_base (),
119
118
** {
@@ -128,7 +127,7 @@ def _profile_user() -> dict[str, Any]:
128
127
return profile
129
128
130
129
131
- def _profile_user_azure () -> dict [ str , Any ] :
130
+ def _profile_user_azure ():
132
131
profile = {
133
132
** _all_profiles_base (),
134
133
** {
0 commit comments