File tree Expand file tree Collapse file tree 1 file changed +8
-1
lines changed Expand file tree Collapse file tree 1 file changed +8
-1
lines changed Original file line number Diff line number Diff line change 45
45
from ads .model .service .oci_datascience_model import OCIDataScienceModel
46
46
47
47
48
+ # Fixture that reloads the module before any patching is applied.
49
+ @pytest .fixture (autouse = True , scope = "class" )
50
+ def reload_model_module ():
51
+ reload (ads .aqua .model .model )
52
+ yield
53
+
54
+
48
55
@pytest .fixture (autouse = True , scope = "class" )
49
56
def mock_auth ():
50
57
with patch ("ads.common.auth.default_signer" ) as mock_default_signer :
@@ -276,7 +283,7 @@ def setup_class(cls):
276
283
os .environ ["ODSC_MODEL_COMPARTMENT_OCID" ] = TestDataset .SERVICE_COMPARTMENT_ID
277
284
reload (ads .config )
278
285
reload (ads .aqua )
279
- reload (ads .aqua .model .model )
286
+ # reload(ads.aqua.model.model)
280
287
281
288
@classmethod
282
289
def teardown_class (cls ):
You can’t perform that action at this time.
0 commit comments