Skip to content

Commit

Permalink
test: Fail on unhandled warnings
Browse files Browse the repository at this point in the history
  • Loading branch information
edgarrmondragon committed Jan 30, 2024
1 parent 9bb7066 commit 0234f98
Showing 1 changed file with 19 additions and 0 deletions.
19 changes: 19 additions & 0 deletions pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -134,6 +134,25 @@ pytest-codspeed = ">=2.2.0"

[tool.pytest.ini_options]
addopts = '--ignore=singer_sdk/helpers/_simpleeval.py -m "not external"'
filterwarnings = [
"error",
"ignore:Could not configure external gitlab tests:UserWarning",
# https://github.com/meltano/sdk/issues/1354
"ignore:The function singer_sdk.testing.get_standard_tap_tests is deprecated:DeprecationWarning",
# https://docs.python.org/3.12/whatsnew/3.12.html#deprecated
# https://github.com/danthedeckie/simpleeval/blob/master/simpleeval.py
"ignore:ast.NameConstant is deprecated:DeprecationWarning:simpleeval",
# https://docs.python.org/3.12/whatsnew/3.12.html#deprecated
# https://github.com/danthedeckie/simpleeval/blob/master/simpleeval.py
"ignore:ast.Num is deprecated:DeprecationWarning:simpleeval",
# https://github.com/joblib/joblib/pull/1518
"ignore:ast.Num is deprecated:DeprecationWarning:joblib._utils",
# https://docs.python.org/3.12/whatsnew/3.12.html#deprecated
# https://github.com/danthedeckie/simpleeval/blob/master/simpleeval.py
"ignore:ast.Str is deprecated:DeprecationWarning:simpleeval",
# https://github.com/joblib/joblib/pull/1518
"ignore:Attribute n is deprecated:DeprecationWarning:joblib._utils",
]
markers = [
"external: Tests relying on external resources",
"windows: Tests that only run on Windows",
Expand Down

0 comments on commit 0234f98

Please sign in to comment.