@@ -128,18 +128,6 @@ def test_get_service_packs_bad_response():
128128 assert all (slug in slugs for slug , _ in service_pack_slug_mapping .items ())
129129
130130
131- @patch ("requests.request" , mocked_requests_request )
132- def test_get_service_packs_cust_tenancy ():
133- service_pack_path_mapping , service_pack_slug_mapping = get_service_packs (
134- "ociodsccust" , "service-conda-packs" , None
135- )
136- db_pack_path = "oci://service-conda-packs@ociodsccust/service_pack/cpu/Oracle_Database_for_CPU_Python_3.7/1.0/database_p37_cpu_v1"
137- db_slug = "database_p37_cpu_v1"
138- db_python_version = "3.7"
139- assert service_pack_path_mapping [db_pack_path ] == (db_slug , db_python_version )
140- assert service_pack_slug_mapping [db_slug ] == (db_pack_path , db_python_version )
141-
142-
143131class TestTrainingEnvInfo :
144132 """Test the TrainingEnvInfo class."""
145133
@@ -181,11 +169,11 @@ def test_from_slug_prod_sp(self):
181169 def test_from_slug_not_exist (self , mock_get_service_packs ):
182170 mock_get_service_packs .return_value = (
183171 {
184- "test_path" : ("mlcpuv1" , "3.6" ),
172+ "test_path" : ("mlcpuv1" , "3.6" ),
185173 },
186174 {
187- "mlcpuv1" : ("test_path" , "3.6" ),
188- }
175+ "mlcpuv1" : ("test_path" , "3.6" ),
176+ },
189177 )
190178 with pytest .warns (UserWarning , match = "not a service pack" ):
191179 TrainingEnvInfo .from_slug (
@@ -269,11 +257,11 @@ def test_from_slug_prod_sp(self):
269257 def test_from_slug_not_exist (self , mock_get_service_packs ):
270258 mock_get_service_packs .return_value = (
271259 {
272- "test_path" : ("mlcpuv1" , "3.6" ),
260+ "test_path" : ("mlcpuv1" , "3.6" ),
273261 },
274262 {
275- "mlcpuv1" : ("test_path" , "3.6" ),
276- }
263+ "mlcpuv1" : ("test_path" , "3.6" ),
264+ },
277265 )
278266 with pytest .warns (UserWarning , match = "not a service pack" ):
279267 InferenceEnvInfo .from_slug (
0 commit comments