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

initial functional tests - refractor argument parsing in class #14

Merged
merged 1 commit into from
Oct 15, 2017

Conversation

shepherdjay
Copy link
Contributor

@shepherdjay shepherdjay commented Oct 14, 2017

This is an initial py.test functional test. Mocking out requests with responses
In order to allow for testing needed to refactor the way the class processes arguments so that the arguments can be directly passed via a call to the class instead of parsing sysargs by default.

A separate function wasn't completely necessary but this allows clarity for where the arguments when invoking your class are.

Edit:
Fixes #2

@shepherdjay
Copy link
Contributor Author

shepherdjay commented Oct 14, 2017

This is the result on my system of running py.test --cov:

tests\test_wtfuzz.py .

----------- coverage: platform win32, python 3.6.3-final-0 -----------
Name               Stmts   Miss Branch BrPart  Cover
----------------------------------------------------
wtfuzz\wtfuzz.py     108     24     44      8    71%

Copy link
Owner

@mattjegan mattjegan left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Looks awesome, I'll have to add a codecov and CI integration now 😄 Thanks.

@mattjegan mattjegan merged commit 060e6d7 into mattjegan:master Oct 15, 2017
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants