Mercurial > p > roundup > code
diff test/db_test_base.py @ 5878:1b57d8f3eb97
Add rudimentery experiment JSON Web Token (jwt) support
issue2551061: Add rudimentary experimental support for JSON Web Tokens
to allow delegation of limited access rights to third parties. See
doc/rest.txt for details and intent.
| author | John Rouillard <rouilj@ieee.org> |
|---|---|
| date | Fri, 27 Sep 2019 20:38:31 -0400 |
| parents | 16e1255b16cf |
| children | e9221d8ad3ba |
line wrap: on
line diff
--- a/test/db_test_base.py Mon Sep 09 19:39:08 2019 +0200 +++ b/test/db_test_base.py Fri Sep 27 20:38:31 2019 -0400 @@ -64,7 +64,7 @@ #config.LOGGING_LEVEL = "DEBUG" config.init_logging() -def setupTracker(dirname, backend="anydbm"): +def setupTracker(dirname, backend="anydbm", optimize=False): """Install and initialize new tracker in dirname; return tracker instance. If the directory exists, it is wiped out before the operation. @@ -84,7 +84,7 @@ 'classic')) config.RDBMS_BACKEND = backend config.save(os.path.join(dirname, 'config.ini')) - tracker = instance.open(dirname) + tracker = instance.open(dirname, optimize=optimize) if tracker.exists(): tracker.nuke() tracker.init(password.Password('sekrit'))
