@@ -36,7 +36,7 @@ def test_start_import_minimal(self, mocker):
3636 """
3737 client , mock_req = build_client_w_faked_response (mocker , body )
3838
39- with pytest .warns (UserWarning , match = "pre-release " ):
39+ with pytest .warns (UserWarning , match = "The bulk import feature is in early access " ):
4040 my_import = client .start_import ("s3://path/to/file.parquet" )
4141
4242 # We made some overrides to the print behavior, so we need to
@@ -56,7 +56,7 @@ def test_start_import_with_kwargs(self, mocker):
5656 """
5757 client , mock_req = build_client_w_faked_response (mocker , body )
5858
59- with pytest .warns (UserWarning , match = "pre-release " ):
59+ with pytest .warns (UserWarning , match = "The bulk import feature is in early access " ):
6060 my_import = client .start_import (uri = "s3://path/to/file.parquet" , integration_id = "123-456-789" )
6161 assert my_import .id == "1"
6262 assert my_import ["id" ] == "1"
@@ -87,7 +87,7 @@ def test_start_import_with_explicit_error_mode(self, mocker, error_mode_input):
8787 """
8888 client , mock_req = build_client_w_faked_response (mocker , body )
8989
90- with pytest .warns (UserWarning , match = "pre-release " ):
90+ with pytest .warns (UserWarning , match = "The bulk import feature is in early access " ):
9191 my_import = client .start_import (uri = "s3://path/to/file.parquet" , error_mode = error_mode_input )
9292 _ , call_kwargs = mock_req .call_args
9393 assert call_kwargs ["body" ] == '{"uri": "s3://path/to/file.parquet", "errorMode": {"onError": "continue"}}'
@@ -100,7 +100,7 @@ def test_start_import_with_abort_error_mode(self, mocker):
100100 """
101101 client , mock_req = build_client_w_faked_response (mocker , body )
102102
103- with pytest .warns (UserWarning , match = "pre-release " ):
103+ with pytest .warns (UserWarning , match = "The bulk import feature is in early access " ):
104104 my_import = client .start_import (uri = "s3://path/to/file.parquet" , error_mode = ImportErrorMode .ABORT )
105105 _ , call_kwargs = mock_req .call_args
106106 assert call_kwargs ["body" ] == '{"uri": "s3://path/to/file.parquet", "errorMode": {"onError": "abort"}}'
@@ -113,7 +113,7 @@ def test_start_import_with_unknown_error_mode(self, mocker):
113113 """
114114 client , mock_req = build_client_w_faked_response (mocker , body )
115115
116- with pytest .warns (UserWarning , match = "pre-release " ):
116+ with pytest .warns (UserWarning , match = "The bulk import feature is in early access " ):
117117 with pytest .raises (ValueError ) as e :
118118 my_import = client .start_import (uri = "s3://path/to/file.parquet" , error_mode = "unknown" )
119119
@@ -129,7 +129,7 @@ def test_start_invalid_uri(self, mocker):
129129 """
130130 client , mock_req = build_client_w_faked_response (mocker , body , 400 )
131131
132- with pytest .warns (UserWarning , match = "pre-release " ):
132+ with pytest .warns (UserWarning , match = "The bulk import feature is in early access " ):
133133 with pytest .raises (PineconeApiException ) as e :
134134 my_import = client .start_import (uri = "invalid path" )
135135
@@ -140,7 +140,7 @@ def test_start_invalid_uri(self, mocker):
140140 def test_no_arguments (self , mocker ):
141141 client , mock_req = build_client_w_faked_response (mocker , "" )
142142
143- with pytest .warns (UserWarning , match = "pre-release " ):
143+ with pytest .warns (UserWarning , match = "The bulk import feature is in early access " ):
144144 with pytest .raises (TypeError ) as e :
145145 client .start_import ()
146146
@@ -165,7 +165,7 @@ def test_describe_import(self, mocker):
165165 """
166166 client , mock_req = build_client_w_faked_response (mocker , body )
167167
168- with pytest .warns (UserWarning , match = "pre-release " ):
168+ with pytest .warns (UserWarning , match = "The bulk import feature is in early access " ):
169169 my_import = client .describe_import (id = "1" )
170170
171171 # We made some overrides to the print behavior, so we need to
0 commit comments