File tree Expand file tree Collapse file tree 2 files changed +8
-4
lines changed
tests/unitary/default_setup/catalog Expand file tree Collapse file tree 2 files changed +8
-4
lines changed Original file line number Diff line number Diff line change @@ -75,7 +75,9 @@ def setUpClass(cls) -> None:
75
75
"NB_SESSION_COMPARTMENT_OCID"
76
76
] = "ocid1.compartment.oc1.<unique_ocid>"
77
77
reload (ads .config )
78
- reload (ads .catalog .notebook )
78
+ ads .catalog .notebook .NB_SESSION_COMPARTMENT_OCID = (
79
+ ads .config .NB_SESSION_COMPARTMENT_OCID
80
+ )
79
81
# Initialize class properties after reloading
80
82
with patch .object (auth , "default_signer" ):
81
83
with patch .object (oci_client , "OCIClientFactory" ):
@@ -99,7 +101,9 @@ def setUpClass(cls) -> None:
99
101
def tearDownClass (cls ) -> None :
100
102
os .environ .pop ("NB_SESSION_COMPARTMENT_OCID" , None )
101
103
reload (ads .config )
102
- reload (ads .catalog .notebook )
104
+ ads .catalog .notebook .NB_SESSION_COMPARTMENT_OCID = (
105
+ ads .config .NB_SESSION_COMPARTMENT_OCID
106
+ )
103
107
return super ().tearDownClass ()
104
108
105
109
@staticmethod
Original file line number Diff line number Diff line change @@ -68,7 +68,7 @@ def setUpClass(cls) -> None:
68
68
"NB_SESSION_COMPARTMENT_OCID"
69
69
] = "ocid1.compartment.oc1.<unique_ocid>"
70
70
reload (ads .config )
71
- reload ( ads .catalog .project )
71
+ ads .catalog .project . NB_SESSION_COMPARTMENT_OCID = ads . config . NB_SESSION_COMPARTMENT_OCID
72
72
# Initialize class properties after reloading
73
73
with patch .object (auth , "default_signer" ):
74
74
with patch .object (oci_client , "OCIClientFactory" ):
@@ -92,7 +92,7 @@ def setUpClass(cls) -> None:
92
92
def tearDownClass (cls ) -> None :
93
93
os .environ .pop ("NB_SESSION_COMPARTMENT_OCID" , None )
94
94
reload (ads .config )
95
- reload ( ads .catalog .project )
95
+ ads .catalog .project . NB_SESSION_COMPARTMENT_OCID = ads . config . NB_SESSION_COMPARTMENT_OCID
96
96
return super ().tearDownClass ()
97
97
98
98
@staticmethod
You can’t perform that action at this time.
0 commit comments