Fix build by pre-calling the caches
They were being called in a test-dependent order, which caused any tests which relied on query count to fail
This commit is contained in:
parent
cdd7cb9321
commit
8dcea30d58
3 changed files with 23 additions and 14 deletions
|
@ -125,6 +125,11 @@ def initialized_db(appconfig):
|
|||
# Configure the database.
|
||||
configure(appconfig)
|
||||
|
||||
# Initialize caches.
|
||||
model._basequery._lookup_team_roles()
|
||||
model._basequery.get_public_repo_visibility()
|
||||
model.log.get_log_entry_kinds()
|
||||
|
||||
# If under a test *real* database, setup a savepoint.
|
||||
under_test_real_database = bool(os.environ.get('TEST_DATABASE_URI'))
|
||||
if under_test_real_database:
|
||||
|
|
Reference in a new issue