The Wayback Machine - https://web.archive.org/web/20201201165825/https://github.com/taoufik07/responder/issues/384
Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Test coverage 100% #384

Open
taoufik07 opened this issue Aug 6, 2019 · 2 comments
Open

Test coverage 100% #384

taoufik07 opened this issue Aug 6, 2019 · 2 comments

Comments

@taoufik07
Copy link
Owner

@taoufik07 taoufik07 commented Aug 6, 2019

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%

@dev-loki
Copy link

@dev-loki dev-loki commented Aug 22, 2019

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 :).

@valerybriz
Copy link

@valerybriz valerybriz commented Oct 1, 2019

Hello! I would like to help in here :D

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
3 participants
You can’t perform that action at this time.