| Commit message (Collapse) | Author | Age | Files | Lines |
| |
|
|
|
| |
These tests are not entirely thorough, but they demonstrate the
function well enough. The rest of the testing is good.
|
| | |
|
| |
|
|
|
|
| |
The testing files were getting too long, so they have been split
into more targeted files. This will make further development less
daunting.
|
| | |
|
| |
|
|
|
|
| |
This makes the boilerplate at the top of the main natsort files simply
import based, and all the try: excepts and if: else statements are
in the files contained in the compat folder.
|
| |
|
|
|
|
|
| |
All the try: excepts: and if: else: statements in the testing code
that is related to handling different python versions or different
installed modules has been relegated to a compat folder that provide an
easy and uniform interface.
|
| | |
|
| |
|
|
|
|
| |
- Moved compatibility support to compat module.
- Skip hypothesis tests if using Python 2.6.
- Skip locale tests for de_DE on platforms that do not support it.
|
| | |
|
| | |
|
| |
|
|
|
|
|
|
| |
The tests have been refactored to include as few asserts per test as
was deemed reasonable.
The tests on the "main" function have been refactored with the "mock"
module.
|
| | |
|
| |
|
|
|
|
|
|
|
|
|
|
|
|
| |
Added unit tests to test all the new features.
Fixed a bug where locale-aware sorting was not doing anything. It
was found that this was due to the locale module itself... a bit of
Googling found that on Mac there are some known bugs. To remedy this,
natsort will use PyICU if it is installed to do the sorting.
Documentation has been updated to account for the new locale-aware
sorting.
This also resolves #14.
|
| |
|
|
|
|
|
|
|
| |
This documentation is in reST format, in a docs folder. The README has
been pruned to only include what is needed to notify the user of what
the package does, and directs them to the documentation.
The tests and .travis.yml have been updated to account for the
documentation.
|
| |
|
|
|
| |
Some the test_natsort.py script has some line length rules ignored, but
otherwise all rules are obeyed.
|
| |
|
|
|
| |
This was mostly import problems. The setup.cfg has been updated with
options to refine what is checked.
|
| |
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
This release provides the following updates:
- Added a 'versorted' method for more convenient sorting of versions.
- Updated command-line tool --number_type option with 'version' and
'ver' to make it more clear how to sort version numbers.
- Moved unit-testing mechanism from being docstring-based to actual
unit tests in actual functions.
- This has provided the ability determine the coverage of the unit
tests (99%).
- This also makes the pydoc documentation a bit more clear.
- Made docstrings for public functions mirror the README API.
- Connected natsort development to Travis-CI to help ensure quality
releases.
|
|
|
This was a pull request from ghickman.
|