@@ -27,7 +27,6 @@ def wiremock_client() -> Generator[WiremockClient | Any, Any, None]:
27
27
28
28
29
29
@pytest .mark .skipolddriver
30
- @pytest .mark .asyncio
31
30
async def test_valid_pat_async (wiremock_client : WiremockClient ) -> None :
32
31
wiremock_data_dir = (
33
32
pathlib .Path (__file__ ).parent .parent .parent
@@ -65,7 +64,6 @@ async def test_valid_pat_async(wiremock_client: WiremockClient) -> None:
65
64
66
65
67
66
@pytest .mark .skipolddriver
68
- @pytest .mark .asyncio
69
67
async def test_invalid_pat_async (wiremock_client : WiremockClient ) -> None :
70
68
wiremock_data_dir = (
71
69
pathlib .Path (__file__ ).parent .parent .parent
@@ -90,42 +88,3 @@ async def test_invalid_pat_async(wiremock_client: WiremockClient) -> None:
90
88
await connection .connect ()
91
89
92
90
assert str (execinfo .value ).endswith ("Programmatic access token is invalid." )
93
-
94
-
95
- @pytest .mark .skipolddriver
96
- @pytest .mark .asyncio
97
- async def test_pat_as_password_async (wiremock_client : WiremockClient ) -> None :
98
- wiremock_data_dir = (
99
- pathlib .Path (__file__ ).parent .parent .parent
100
- / "data"
101
- / "wiremock"
102
- / "mappings"
103
- / "auth"
104
- / "pat"
105
- )
106
-
107
- wiremock_generic_data_dir = (
108
- pathlib .Path (__file__ ).parent .parent .parent
109
- / "data"
110
- / "wiremock"
111
- / "mappings"
112
- / "generic"
113
- )
114
-
115
- wiremock_client .import_mapping (wiremock_data_dir / "successful_flow.json" )
116
- wiremock_client .add_mapping (
117
- wiremock_generic_data_dir / "snowflake_disconnect_successful.json"
118
- )
119
-
120
- connection = SnowflakeConnection (
121
- user = "testUser" ,
122
- authenticator = PROGRAMMATIC_ACCESS_TOKEN ,
123
- token = None ,
124
- password = "some PAT" ,
125
- account = "testAccount" ,
126
- protocol = "http" ,
127
- host = wiremock_client .wiremock_host ,
128
- port = wiremock_client .wiremock_http_port ,
129
- )
130
- await connection .connect ()
131
- await connection .close ()
0 commit comments