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

Add tests to sanitize #82

Merged
merged 3 commits into from
May 23, 2017
Merged

Add tests to sanitize #82

merged 3 commits into from
May 23, 2017

Conversation

janetriley
Copy link
Collaborator

@janetriley janetriley commented May 23, 2017

#70 write tests for sanitize.

Added constants for the sanitize levels.
sanitize_html didn't return anything if the sanitize level isn't recognized. Returns the unmodified content if level None, raises an error if unknown level.

* Add tests for sanitize_html functions
* made constants for the levels for easier reference in tests
@coveralls
Copy link

coveralls commented May 23, 2017

Coverage Status

Coverage increased (+1.6%) to 70.952% when pulling ba6de53 on janetriley:feature-tweak_export_sanitize_and_add_tests into f16b2a3 on DistrictDataLabs:develop.

@will2041
Copy link
Collaborator

Looks like the pep8 check while running tests is failing the travis build. I'll address that in a different commit.

I'm digging the changes here. I'll pull this in then fix up the build issue.

@will2041 will2041 merged commit b5db1e4 into DistrictDataLabs:develop May 23, 2017
@janetriley janetriley deleted the feature-tweak_export_sanitize_and_add_tests branch June 24, 2017 14:59
This pull request was closed.
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.

4 participants