@@ -1070,7 +1070,7 @@ def test_from_model_deployment(
1070
1070
bucket_uri = "test_bucket_uri" ,
1071
1071
remove_existing_artifact = True ,
1072
1072
compartment_id = "test_compartment_id" ,
1073
- load_artifact = True ,
1073
+ download_artifact = True ,
1074
1074
)
1075
1075
1076
1076
mock_from_id .assert_called_with (test_model_deployment_id )
@@ -1085,7 +1085,7 @@ def test_from_model_deployment(
1085
1085
remove_existing_artifact = True ,
1086
1086
compartment_id = "test_compartment_id" ,
1087
1087
ignore_conda_error = False ,
1088
- load_artifact = True ,
1088
+ download_artifact = True ,
1089
1089
)
1090
1090
1091
1091
assert test_result == test_model
@@ -1189,7 +1189,7 @@ def test_from_id_model_deployment(
1189
1189
remove_existing_artifact = True ,
1190
1190
compartment_id = "test_compartment_id" ,
1191
1191
ignore_conda_error = True ,
1192
- load_artifact = True ,
1192
+ download_artifact = True ,
1193
1193
)
1194
1194
1195
1195
mock_from_model_deployment .assert_called_with (
@@ -1203,7 +1203,7 @@ def test_from_id_model_deployment(
1203
1203
remove_existing_artifact = True ,
1204
1204
compartment_id = "test_compartment_id" ,
1205
1205
ignore_conda_error = True ,
1206
- load_artifact = True ,
1206
+ download_artifact = True ,
1207
1207
)
1208
1208
1209
1209
assert test_model_deployment_result == test_model
@@ -1239,7 +1239,7 @@ def test_from_id_model(self, mock_from_model_catalog):
1239
1239
remove_existing_artifact = True ,
1240
1240
compartment_id = "test_compartment_id" ,
1241
1241
ignore_conda_error = True ,
1242
- load_artifact = True ,
1242
+ download_artifact = True ,
1243
1243
)
1244
1244
1245
1245
mock_from_model_catalog .assert_called_with (
@@ -1253,7 +1253,7 @@ def test_from_id_model(self, mock_from_model_catalog):
1253
1253
remove_existing_artifact = True ,
1254
1254
compartment_id = "test_compartment_id" ,
1255
1255
ignore_conda_error = True ,
1256
- load_artifact = True ,
1256
+ download_artifact = True ,
1257
1257
)
1258
1258
1259
1259
assert test_model_result == mock_oci_model
@@ -1280,15 +1280,15 @@ def test_from_id_fail(self):
1280
1280
1281
1281
@patch .object (GenericModel , "from_model_catalog" )
1282
1282
def test_from_id_model_without_artifact (self , mock_from_model_catalog ):
1283
- """Test to check model artifact is not loaded when load_artifact is set to False"""
1283
+ """Test to check model artifact is not loaded when download_artifact is set to False"""
1284
1284
test_model_id = "xxxx.datasciencemodel.xxxx"
1285
1285
mock_model = MagicMock (model_id = test_model_id , model_artifact = None )
1286
1286
mock_from_model_catalog .return_value = mock_model
1287
1287
1288
1288
test_model_result = GenericModel .from_id (
1289
1289
ocid = test_model_id ,
1290
1290
compartment_id = "test_compartment_id" ,
1291
- load_artifact = False ,
1291
+ download_artifact = False ,
1292
1292
)
1293
1293
mock_from_model_catalog .assert_called_with (
1294
1294
test_model_id ,
@@ -1301,14 +1301,14 @@ def test_from_id_model_without_artifact(self, mock_from_model_catalog):
1301
1301
remove_existing_artifact = True ,
1302
1302
compartment_id = "test_compartment_id" ,
1303
1303
ignore_conda_error = False ,
1304
- load_artifact = False ,
1304
+ download_artifact = False ,
1305
1305
)
1306
1306
assert test_model_result .model_artifact is None
1307
1307
assert test_model_result == mock_model
1308
1308
1309
1309
@patch .object (GenericModel , "from_model_catalog" )
1310
1310
def test_from_id_with_artifact (self , mock_from_model_catalog ):
1311
- """Test to check model artifact is loaded when load_artifact is set to True"""
1311
+ """Test to check model artifact is loaded when download_artifact is set to True"""
1312
1312
test_model_id = "xxxx.datasciencemodel.xxxx"
1313
1313
artifact_dir = "test_dir"
1314
1314
model_artifact = MagicMock (artifact_dir = artifact_dir , reload = False )
@@ -1320,7 +1320,7 @@ def test_from_id_with_artifact(self, mock_from_model_catalog):
1320
1320
ocid = test_model_id ,
1321
1321
compartment_id = "test_compartment_id" ,
1322
1322
remove_existing_artifact = True ,
1323
- load_artifact = True ,
1323
+ download_artifact = True ,
1324
1324
)
1325
1325
1326
1326
mock_from_model_catalog .assert_called_with (
@@ -1334,7 +1334,7 @@ def test_from_id_with_artifact(self, mock_from_model_catalog):
1334
1334
remove_existing_artifact = True ,
1335
1335
compartment_id = "test_compartment_id" ,
1336
1336
ignore_conda_error = False ,
1337
- load_artifact = True ,
1337
+ download_artifact = True ,
1338
1338
)
1339
1339
assert test_model_result .model_artifact is not None
1340
1340
assert test_model_result == mock_model
0 commit comments