@@ -1070,7 +1070,7 @@ def test_from_model_deployment(
10701070 bucket_uri = "test_bucket_uri" ,
10711071 remove_existing_artifact = True ,
10721072 compartment_id = "test_compartment_id" ,
1073- load_artifact = True ,
1073+ download_artifact = True ,
10741074 )
10751075
10761076 mock_from_id .assert_called_with (test_model_deployment_id )
@@ -1085,7 +1085,7 @@ def test_from_model_deployment(
10851085 remove_existing_artifact = True ,
10861086 compartment_id = "test_compartment_id" ,
10871087 ignore_conda_error = False ,
1088- load_artifact = True ,
1088+ download_artifact = True ,
10891089 )
10901090
10911091 assert test_result == test_model
@@ -1189,7 +1189,7 @@ def test_from_id_model_deployment(
11891189 remove_existing_artifact = True ,
11901190 compartment_id = "test_compartment_id" ,
11911191 ignore_conda_error = True ,
1192- load_artifact = True ,
1192+ download_artifact = True ,
11931193 )
11941194
11951195 mock_from_model_deployment .assert_called_with (
@@ -1203,7 +1203,7 @@ def test_from_id_model_deployment(
12031203 remove_existing_artifact = True ,
12041204 compartment_id = "test_compartment_id" ,
12051205 ignore_conda_error = True ,
1206- load_artifact = True ,
1206+ download_artifact = True ,
12071207 )
12081208
12091209 assert test_model_deployment_result == test_model
@@ -1239,7 +1239,7 @@ def test_from_id_model(self, mock_from_model_catalog):
12391239 remove_existing_artifact = True ,
12401240 compartment_id = "test_compartment_id" ,
12411241 ignore_conda_error = True ,
1242- load_artifact = True ,
1242+ download_artifact = True ,
12431243 )
12441244
12451245 mock_from_model_catalog .assert_called_with (
@@ -1253,7 +1253,7 @@ def test_from_id_model(self, mock_from_model_catalog):
12531253 remove_existing_artifact = True ,
12541254 compartment_id = "test_compartment_id" ,
12551255 ignore_conda_error = True ,
1256- load_artifact = True ,
1256+ download_artifact = True ,
12571257 )
12581258
12591259 assert test_model_result == mock_oci_model
@@ -1280,15 +1280,15 @@ def test_from_id_fail(self):
12801280
12811281 @patch .object (GenericModel , "from_model_catalog" )
12821282 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"""
12841284 test_model_id = "xxxx.datasciencemodel.xxxx"
12851285 mock_model = MagicMock (model_id = test_model_id , model_artifact = None )
12861286 mock_from_model_catalog .return_value = mock_model
12871287
12881288 test_model_result = GenericModel .from_id (
12891289 ocid = test_model_id ,
12901290 compartment_id = "test_compartment_id" ,
1291- load_artifact = False ,
1291+ download_artifact = False ,
12921292 )
12931293 mock_from_model_catalog .assert_called_with (
12941294 test_model_id ,
@@ -1301,14 +1301,14 @@ def test_from_id_model_without_artifact(self, mock_from_model_catalog):
13011301 remove_existing_artifact = True ,
13021302 compartment_id = "test_compartment_id" ,
13031303 ignore_conda_error = False ,
1304- load_artifact = False ,
1304+ download_artifact = False ,
13051305 )
13061306 assert test_model_result .model_artifact is None
13071307 assert test_model_result == mock_model
13081308
13091309 @patch .object (GenericModel , "from_model_catalog" )
13101310 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"""
13121312 test_model_id = "xxxx.datasciencemodel.xxxx"
13131313 artifact_dir = "test_dir"
13141314 model_artifact = MagicMock (artifact_dir = artifact_dir , reload = False )
@@ -1320,7 +1320,7 @@ def test_from_id_with_artifact(self, mock_from_model_catalog):
13201320 ocid = test_model_id ,
13211321 compartment_id = "test_compartment_id" ,
13221322 remove_existing_artifact = True ,
1323- load_artifact = True ,
1323+ download_artifact = True ,
13241324 )
13251325
13261326 mock_from_model_catalog .assert_called_with (
@@ -1334,7 +1334,7 @@ def test_from_id_with_artifact(self, mock_from_model_catalog):
13341334 remove_existing_artifact = True ,
13351335 compartment_id = "test_compartment_id" ,
13361336 ignore_conda_error = False ,
1337- load_artifact = True ,
1337+ download_artifact = True ,
13381338 )
13391339 assert test_model_result .model_artifact is not None
13401340 assert test_model_result == mock_model
0 commit comments