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:
Kevin Morris 2021-05-18 02:46:56 -07:00
parent 3f1f03e03c
commit 66189c4460
2 changed files with 11 additions and 9 deletions

View file

@ -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))