# HG changeset patch # User Julien Cristau # Date 1411635023 -7200 # Node ID fd1dafb0ab10881aa534ef3e32961907d3296c7d # Parent bea3f6595fb4f3f3c8009511d32e1a8cc17014a5 [devtools] use a specific test_db_id when disabling anon The anonymous user is created (or not) in postcreate, which for tests means when creating the cached empty database. The anonymous_allowed=False test classes should thus not share their template db with other test classes, otherwise either they end up with an unexpected anonymous user, or the others miss theirs and things fall apart. diff -r bea3f6595fb4 -r fd1dafb0ab10 devtools/test/unittest_httptest.py --- a/devtools/test/unittest_httptest.py Wed Nov 19 11:59:08 2014 +0100 +++ b/devtools/test/unittest_httptest.py Thu Sep 25 10:50:23 2014 +0200 @@ -41,7 +41,7 @@ class TwistedCWIdentTC(CubicWebServerTC): - + test_db_id = 'httptest-cwident' anonymous_allowed = False tags = CubicWebServerTC.tags | Tags(('auth',)) diff -r bea3f6595fb4 -r fd1dafb0ab10 devtools/test/unittest_webtest.py --- a/devtools/test/unittest_webtest.py Wed Nov 19 11:59:08 2014 +0100 +++ b/devtools/test/unittest_webtest.py Thu Sep 25 10:50:23 2014 +0200 @@ -15,6 +15,7 @@ class CWTIdentTC(CubicWebTestTC): + test_db_id = 'webtest-ident' anonymous_allowed = False tags = CubicWebTestTC.tags | Tags(('auth',))