level12 / keg-app-cookiecutter

0 stars 0 forks source link

Ignore warnings in root module instead of pytest.ini #133

Closed rsyring closed 3 years ago

rsyring commented 3 years ago

Otherwise we get known and ignored errors when running pytest as a developer which makes the output annoying. Might also clutter production logs.

rsyring commented 3 years ago

Actually, this didn't work due to the way pytest messes with warnings. I ended up using a bit of a hack in RB to make sure developers have the same warning settings as we run in CI:

https://github.com/level12/racebetter/blob/fca2a1906dbbcfb7cd025f73bf099992d8438870/racebetter/conftest.py#L106

rsyring commented 3 years ago

refs #151