Hello all,
I have a django app which is full REST APIs created using Django Rest Framework.
In tests.py, I am testing fthe APIs using
self.client.post and
self.clilent.get. I use coverage tool to figure out the test coverage
but it seems to check the coverage in a way I don't really understand.
When I check test coverage for just views.py file, it says 37% and
when I do that for tests.py, it says 98%.
Is there a way to determine test coverage only by looking at views.py
and checking how many of the views in it are tested in tests.py?
Or is it an unreasonable expectation?
Regards,
Dharmit.