responder icon indicating copy to clipboard operation
responder copied to clipboard

Test coverage 100%

Open taoufik07 opened this issue 6 years ago • 2 comments

For now the tests cover 87% of our code base, it would be cool if we can reach the 100% !

Name                              Stmts   Miss  Cover   Missing
---------------------------------------------------------------
responder/__init__.py                 2      0   100%
responder/__main__.py                 3      3     0%   1-4
responder/__version__.py              1      0   100%
responder/api.py                    351     51    85%   94, 166, 173, 191, 199-206, 271, 325, 393, 416-418, 429-431, 469, 476-478, 481, 493, 499, 513-521, 618, 658-661, 688-701, 704-706
responder/app.py                     12     12     0%   1-21
responder/background.py              34      4    88%   28-31
responder/cli.py                     18     14    22%   22-43
responder/core.py                     3      0   100%
responder/ext/__init__.py             1      0   100%
responder/ext/graphql.py             30      2    93%   35, 41
responder/formats.py                 58      2    97%   12, 51
responder/models.py                 200     13    94%   41-42, 53-55, 178-179, 214, 222, 228, 247, 252, 349
responder/routes.py                  51      2    96%   32, 40
responder/statics.py                  5      0   100%
responder/status_codes.py            17      0   100%
responder/templates/__init__.py       1      0   100%
---------------------------------------------------------------
TOTAL                               787    103    87%

taoufik07 avatar Aug 06 '19 19:08 taoufik07

Hey :),

Sorry in advance, if I'm wasting your time, or this question is stupid.

I wanted to start here, but I already got stuck on the very first missing lines: __main__.py the main()... I really can't find "main". Especially not in cli.

Initially I thought, this might be a hidden gem of python (I couldn't find it) or an artifact which no longer works. Is this the case? If yes: What would be the expected behavior?

  • python -m responder could just start the server, when in a directory where a responder project is present
  • Alternatively it could just start a static file server? But this wouldn't fulfill the one purpose principle.

Thanks for your time :).

dev-loki avatar Aug 22 '19 19:08 dev-loki

Hello! I would like to help in here :D

valerybriz avatar Oct 01 '19 15:10 valerybriz