Mercurial > kallithea
diff kallithea/tests/scripts/manual_test_concurrency.py @ 8728:f3fab7b124f2
imports: try to use global imports unless it is a layering violation
To minimize the impact, do imports that violate the layering at runtime instead
of at import time.
author | Mads Kiilerich <mads@kiilerich.com> |
---|---|
date | Sun, 01 Nov 2020 06:29:32 +0100 |
parents | 5e46f73f0d1c |
children | 710512deb83d |
line wrap: on
line diff
--- a/kallithea/tests/scripts/manual_test_concurrency.py Fri Oct 30 14:54:42 2020 +0100 +++ b/kallithea/tests/scripts/manual_test_concurrency.py Sun Nov 01 06:29:32 2020 +0100 @@ -41,6 +41,7 @@ from kallithea.lib.auth import get_crypt_password from kallithea.model import db, meta from kallithea.model.base import init_model +from kallithea.model.repo import RepoModel from kallithea.tests.base import HG_REPO, TEST_USER_ADMIN_LOGIN, TEST_USER_ADMIN_PASS @@ -114,7 +115,6 @@ def create_test_repo(force=True): print('creating test repo') - from kallithea.model.repo import RepoModel sa = get_session() user = sa.query(db.User).filter(db.User.username == USER).scalar()