Skip to content

Commit

Permalink
Enable MovedIn20Warning and SADeprecationWarning
Browse files Browse the repository at this point in the history
  • Loading branch information
martinburchell committed Jan 31, 2025
1 parent 0f2cf23 commit b69c1ea
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 1 deletion.
2 changes: 1 addition & 1 deletion .github/workflows/python-tests.yml
Original file line number Diff line number Diff line change
Expand Up @@ -43,4 +43,4 @@ jobs:
${GITHUB_WORKSPACE}/.github/scripts/create_config_file.sh
echo running tests
cd server/camcops_server
SQLALCHEMY_WARN_20=1 pytest -v -W error::sqlalchemy.exc.RemovedIn20Warning
SQLALCHEMY_WARN_20=1 pytest -v -W error::sqlalchemy.exc.RemovedIn20Warning -W error::sqlalchemy.exc.MovedIn20Warning -W error::sqlalchemy.exc.SADeprecationWarning
2 changes: 2 additions & 0 deletions server/camcops_server/camcops_server.py
Original file line number Diff line number Diff line change
Expand Up @@ -92,6 +92,8 @@
from pyramid.router import Router

warnings.filterwarnings("error", category=exc.RemovedIn20Warning)
warnings.filterwarnings("error", category=exc.MovedIn20Warning)
warnings.filterwarnings("error", category=exc.SADeprecationWarning)

log = BraceStyleAdapter(logging.getLogger(__name__))

Expand Down

0 comments on commit b69c1ea

Please sign in to comment.