Skip to content

Commit

Permalink
Merge pull request #76 from kiddten/main
Browse files Browse the repository at this point in the history
  • Loading branch information
DanCardin authored Mar 9, 2023
2 parents c4920c9 + 20c92c2 commit 0ac26e6
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion docs/source/setup.rst
Original file line number Diff line number Diff line change
Expand Up @@ -38,7 +38,7 @@ Caplog Issues
The default :code:`env.py` file that alembic will autogenerate for you also includes a call to
:func:`logging.config.fileConfig`. Given that alembic tests invoke the :code:`env.py`, and
:func:`logging.config.fileConfig` has a default argument of :code:`disable_existing_loggers=True`,
this can inadvertantly break tests which use pytest's :code:`caplog` fixture.
this can inadvertently break tests which use pytest's :code:`caplog` fixture.

To fix this, simply provide :code:`disable_existing_loggers=False` to :code:`fileConfig`.

Expand Down

0 comments on commit 0ac26e6

Please sign in to comment.