test/test_exc.py:4
/Users/dani/bottle/test/test_exc.py:4: PytestCollectionWarning: cannot collect test class 'TestError' because it has a __init__ constructor (from: test/test_exc.py)
class TestError(Exception):
this is because pytest is trying to collect all classes starting with the word Test. Since this class isn't an actual test, renaming it to something else is appropriate.
Another solution would've been to add __test__ = False to the class, but renaming seemed straight-forward.
It's always nice to run tests and not see warnings, so I may fix some more in upcoming PRs :)
When running tests, this warning is raised:
this is because pytest is trying to collect all classes starting with the word
Test
. Since this class isn't an actual test, renaming it to something else is appropriate. Another solution would've been to add__test__ = False
to the class, but renaming seemed straight-forward.It's always nice to run tests and not see warnings, so I may fix some more in upcoming PRs :)