mirror of
https://gitlab.archlinux.org/archlinux/aurweb.git
synced 2025-02-03 10:43:03 +01:00
alembic: restore logging, fix pytest conflicts
In this case, when running pytests, we do not allow alembic to configure loggers. Signed-off-by: Kevin Morris <kevr@0cost.org>
This commit is contained in:
parent
3f1f03e03c
commit
66189c4460
2 changed files with 11 additions and 9 deletions
|
@ -40,6 +40,7 @@ def run(args):
|
|||
if args.use_alembic:
|
||||
alembic_config = alembic.config.Config('alembic.ini')
|
||||
alembic_config.get_main_option('script_location')
|
||||
alembic_config.attributes["configure_logger"] = False
|
||||
|
||||
engine = sqlalchemy.create_engine(aurweb.db.get_sqlalchemy_url(),
|
||||
echo=(args.verbose >= 1))
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue