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

Migrate doctests to unit tests (pyest) #10

Closed
SethMMorton opened this issue Jun 27, 2014 · 1 comment
Closed

Migrate doctests to unit tests (pyest) #10

SethMMorton opened this issue Jun 27, 2014 · 1 comment

Comments

@SethMMorton
Copy link
Owner

Currently, all of the testing for natsort is implemented as doctests. This was fine when natsort was just a single file with two functions, but since it has grown with new functionality things have gotten out of hand. I have also noticed that some doctests fail on python 2.6 because of the way it prints floating point numbers.

The doctests will be migrated to unit tests to use the pytest unit testing framework. This will help make the documentation and the code more clear, as well as allow for more thorough testing.

@SethMMorton
Copy link
Owner Author

Done in commit b7e25f9.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

1 participant