Classes whose name begins with Test but are not test classes were collected by py.test, and giving the following errors at the end of the test run:
WC1 test_model_serializer.py cannot collect test class 'TestMetaClassModel' because it has a __init__ constructor
WC1 browsable_api/test_browsable_nested_api.py cannot collect test class 'TestNestedSerializerSerializer' because it has a __init__ constructor
779 passed, **2 pytest-warnings** in 3.57 seconds
I changed the name so that the meaning is the same but they are not picked up as tests.
Also running the tests produced a coverage.xml file which was not in .gitignore and I added as coverage.* since py.test also supports other report formats like *.html etc.
Fix warnings when running tests
Good call, thanks!