Mercurial > p > roundup > code
comparison test/test_redis_session.py @ 6815:35f0952f4bc5
remove password from redis url.
| author | John Rouillard <rouilj@ieee.org> |
|---|---|
| date | Thu, 04 Aug 2022 15:11:46 -0400 |
| parents | 3f60a71b0812 |
| children | fe0091279f50 |
comparison
equal
deleted
inserted
replaced
| 6814:3f60a71b0812 | 6815:35f0952f4bc5 |
|---|---|
| 37 def setUp(self): | 37 def setUp(self): |
| 38 SessionTest.setUp(self) | 38 SessionTest.setUp(self) |
| 39 | 39 |
| 40 # redefine the session db's as redis. | 40 # redefine the session db's as redis. |
| 41 self.db.config.SESSIONDB_BACKEND = "redis" | 41 self.db.config.SESSIONDB_BACKEND = "redis" |
| 42 self.db.config.SESSIONDB_REDIS_URL = 'redis://:roundupSysadmin@localhost:6379/15?health_check_interval=2' | 42 self.db.config.SESSIONDB_REDIS_URL = 'redis://localhost:6379/15?health_check_interval=2' |
| 43 self.db.Session = None | 43 self.db.Session = None |
| 44 self.db.Otk = None | 44 self.db.Otk = None |
| 45 self.sessions = self.db.getSessionManager() | 45 self.sessions = self.db.getSessionManager() |
| 46 self.otks = self.db.getOTKManager() | 46 self.otks = self.db.getOTKManager() |
| 47 | 47 |
