| Commit message (Collapse) | Author | Age | Files | Lines |
| | |
|
| |
|
|
|
|
| |
Fixed a bug where a path separator was hard-coded as ":" and replaced it with os.path.pathsep
Also changed version from 0.7.1a to 0.7.1 in preparation for upcoming release.
|
| |
|
|
|
|
| |
Transcript testing no longer creates an unnecessary 2nd instance of the class derived from cmd2.Cmd. This dramatically simplifies transcript testing for derived classes which have required parameters during construction.
As a side effect the, feedback_to_output attribute now defaults to false. This had some minor ripple effects on various unit tests.
|
| |
|
|
|
|
| |
Than it is for Python 2 on Windows or Python 3 on Linux or Mac.
Go figure. You would think it would be the same for Python 3 across platforms.
|
| | |
|
| |
|
|
| |
Also added a unit test for this feature.
|
| |
|
|
| |
A few other miscellaneous minor tweaks for whitespace and such.
|
| | |
|
| |
|
|
|
|
| |
- Remove Python 2.6 and 3.2 builds because they don't work and aren't worth fixing
- Attempt at fixing pypy3 unit test that fails
- First attempt at building for Python 3 on Mac OS X
|
| | |
|
| |
|
|
| |
details.
|
| |
|
|
| |
These tests only run with Python 3 because cmd2 does not attempt to support unicode with Python 2.
|
| | |
|
| | |
|
| |
|
|
|
|
| |
This is a fix for Issue #55.
Updated a couple unit tests accordingly and also added a couple new unit tests to make sure this logic is appropriately covered.
|
| |
|
|
| |
One passes and the other fails and demonstrates the overall problem with the failing unit test for input redirection on some systems where a "-" ends up in the path name.
|
| | |
|
| |
|
|
| |
This concludes the fix for Issue #43.
|
| |
|
|
| |
Partial fix for Issue # 43
|
| |
|
|
|
|
| |
Done with first stage. Still a lot more parsing tests to convert.
It turns out the original problem wasn't a Python 2 vs Python 3 problem, but the fact that pyparsing changed the way the ParseResults.dump() command outputs strings - in version 2.1.10 it switched to putting strings in quotes.
|
| |
|
|
|
|
| |
This addresses Issue #15.
Also added a unit test for this new feature and display of it's status in the cmdenvironment command.
|
| |
|
|
|
|
|
|
| |
Also:
- Added locals_in_py to settable parameters to match documentation.
- Added pycon2010 slides back into doc build since they are referenced with :doc:
- Fixed some references in the documentation
- Updated unit tests accordingly
|
| | |
|
| |
|
|
|
|
|
|
| |
1) Built-in commands which use @options now properly deal with the USE_ARG_LIST boolean flag
2) Added an "autorun_on_edit" settable parameter which defaults to True to preserve backwards compatibility, but can be set False to prevent automatically running files as scripts when the editor closes
3) Improved how piping works so it can deal with commands which output a large amount of data
|
| |
|
|
|
|
|
|
| |
commands.
This is an experiment with usin non-POSIX parsing of the command line with shlex before passing it to the optparse OptionParser. The posix vs non-posix setitng primarily effects how quotes and escape characters are dealt with.
I'm experimenting with various options to see what may feel the most natural for the majority of end users.
|
| | |
|
| |
|
|
|
|
|
|
| |
The out-of-the-box help menu now looks a lot cleaner:
- All redundant command aliases have been removed
(NOTE: They can still be used if self.abbrev is True, which is the default)
- All previously undocumented commands have been documented
- Unit tests and README.rst documentation has been updated to reflect new behavior
|
| | |
|
| |
|
|
|
|
|
|
| |
Fixed a bug which made parallelizing the unit tests with pytest-xdist unreliable.
The unit tests can now be run in parallel using pytest-xdist for a dramatic speedup on multicore machines. To do this use:
py.test -n4
(where 4 is the number of cores you wish to parallelize across)
|
| |
|
|
|
| |
One for transcript testing with multi-line commands and commments at the beginning.
Another for cmdloop testing with use_rawinput = False
|
| |
|
|
| |
Added list tests with string, integer, and integer span arguments
|
| | |
|
| |
|
|
| |
Re-ordered boolean and so it should fail fast on Windows and not try to run the 2nd part which would cause issues.
|
| |
|
|
| |
The input redirection test which only fails on TravisCI Linux containers will now only be skipped if the user name is travis AND the OS is Linux (but will now be validly skipped for both Python 2 and 3).
|
| |
|
|
|
|
| |
containers.
But it works on both Ubuntu 16.04 and Debian 8.7.
|
| | |
|
| | |
|
| | |
|
| | |
|
| |
|
|
| |
Also added a unit test for the cmd2.Cmd.select() method.
|
| | |
|
| | |
|
| |
|
|
| |
With os.system() call mocked out to prevent actually opening an editor.
|
| | |
|
| | |
|
| | |
|
| | |
|
| |
|
|
| |
Very short time deltas look different on Windows that Linux/Mac due to poor timing resolution on Windows.
|
| | |
|
| |
|
|
|
|
| |
problematic.
The feature does work on Windows though.
|