Test AuthCache basic functionality.
(self)
| 108 | """Test auth utils.""" |
| 109 | |
| 110 | def test_auth_cache(self): |
| 111 | """Test AuthCache basic functionality.""" |
| 112 | cache = AuthCache() |
| 113 | cache.set("key1", "value1", 3600) |
| 114 | assert cache.get("key1") == "value1" |
| 115 | cache.delete("key1") |
| 116 | assert cache.get("key1") is None |
| 117 | |
| 118 | @patch( |
| 119 | "streamlit.auth_util.secrets_singleton", |