asks icon indicating copy to clipboard operation
asks copied to clipboard

Code Coverage (auth sparsely tested)

Open carlbordum opened this issue 7 years ago • 1 comments

Hey. Ran this, but you left irc before I could tell you :p

With coverage you can see how many of your statements are covered by tests.

Name                           Stmts   Miss  Cover
--------------------------------------------------
asks/__init__.py                   5      0   100%
asks/_event_loop_wrappers.py      16     16     0%
asks/auth.py                      83     63    24%
asks/base_funcs.py                14      0   100%
asks/cookie_utils.py              30      0   100%
asks/errors.py                    12      0   100%
asks/req_structs.py               45     17    62%
asks/request_object.py           332     63    81%
asks/response_objects.py         122     19    84%
asks/sessions.py                 124     10    92%
asks/utils.py                     34     14    59%
--------------------------------------------------
TOTAL                            817    202    75%

Install coverage and pytest-cov to recreate with pytest --cov=asks.

carlbordum avatar Nov 23 '17 17:11 carlbordum

Heh, yeah. _event_loop_wrappers.py is an artifact to be removed which I hadn't noticed till now. Thanks :D We can artificially inflate coverage wooo.

How can a whole file slip by? ¯\(ツ)

To the laboratory - we must test.

theelous3 avatar Nov 23 '17 19:11 theelous3