Skip to content

Commit

Permalink
Turn sqlalchemy.exc.Base20DeprecationWarning into errors in tests
Browse files Browse the repository at this point in the history
To avoid introducing more warnings between now and a future PR that will
switch the future flag to turn these warnings into errors in prod, turn
these warning into errors in tests.
  • Loading branch information
amCap1712 committed Sep 30, 2022
1 parent 448d4f6 commit 7d77fcc
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion pytest.ini
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
[pytest]
testpaths = brainzutils
addopts = --cov-report html --cov=brainzutils -W always::DeprecationWarning
addopts = --cov-report html --cov=brainzutils -W always::DeprecationWarning -W error::sqlalchemy.exc.Base20DeprecationWarning

markers =
database: requires access to the musicbrainz sample database

0 comments on commit 7d77fcc

Please sign in to comment.