@@ -159,23 +159,23 @@ def test_environment_token_cache(serialize_mock, deserialize_mock):
159
159
serialize_mock .return_value = "INPUT FROM CACHE"
160
160
with EnvironmentTokenCache () as cache :
161
161
cache .has_state_changed = True
162
- assert os .environ == {"__msal_requests_auth_cache__ " : "INPUT FROM CACHE" }
162
+ assert os .environ == {"__MSAL_REQUESTS_AUTH_CACHE__ " : "INPUT FROM CACHE" }
163
163
deserialize_mock .assert_not_called ()
164
164
165
165
166
- @patch .dict (os .environ , {"__msal_requests_auth_cache__ " : "INPUT" }, clear = True )
166
+ @patch .dict (os .environ , {"__MSAL_REQUESTS_AUTH_CACHE__ " : "INPUT" }, clear = True )
167
167
@patch ("msal_requests_auth.cache.EnvironmentTokenCache.deserialize" )
168
168
@patch ("msal_requests_auth.cache.EnvironmentTokenCache.serialize" )
169
169
def test_environment_token_cache__initialized (serialize_mock , deserialize_mock ):
170
170
serialize_mock .return_value = "INPUT FROM CACHE"
171
171
with EnvironmentTokenCache () as cache :
172
- assert os .environ == {"__msal_requests_auth_cache__ " : "INPUT" }
172
+ assert os .environ == {"__MSAL_REQUESTS_AUTH_CACHE__ " : "INPUT" }
173
173
cache .has_state_changed = True
174
- assert os .environ == {"__msal_requests_auth_cache__ " : "INPUT FROM CACHE" }
174
+ assert os .environ == {"__MSAL_REQUESTS_AUTH_CACHE__ " : "INPUT FROM CACHE" }
175
175
deserialize_mock .assert_called_once_with ("INPUT" )
176
176
177
177
178
- @patch .dict (os .environ , {"__msal_requests_auth_cache__ " : "INPUT" }, clear = True )
178
+ @patch .dict (os .environ , {"__MSAL_REQUESTS_AUTH_CACHE__ " : "INPUT" }, clear = True )
179
179
@patch ("msal_requests_auth.cache._import_keyring" )
180
180
def test_get_token_cache__keyring (keyring_mock ):
181
181
class NoKeyringError (Exception ):
@@ -199,7 +199,7 @@ class NoKeyringError(Exception):
199
199
)
200
200
201
201
202
- @patch .dict (os .environ , {"__msal_requests_auth_cache__ " : "INPUT" }, clear = True )
202
+ @patch .dict (os .environ , {"__MSAL_REQUESTS_AUTH_CACHE__ " : "INPUT" }, clear = True )
203
203
@patch ("msal_requests_auth.cache._import_keyring" )
204
204
def test_get_token_cache__null (keyring_mock ):
205
205
class NoKeyringError (Exception ):
@@ -225,7 +225,7 @@ class NoKeyringError(Exception):
225
225
)
226
226
227
227
228
- @patch .dict (os .environ , {"__msal_requests_auth_cache__ " : "INPUT" }, clear = True )
228
+ @patch .dict (os .environ , {"__MSAL_REQUESTS_AUTH_CACHE__ " : "INPUT" }, clear = True )
229
229
@patch ("msal_requests_auth.cache.EnvironmentTokenCache.deserialize" )
230
230
def test_get_token_cache__environment (deserialize_mock ):
231
231
assert isinstance (
0 commit comments