summaryrefslogtreecommitdiff
path: root/tests/test_history.py
Commit message (Collapse)AuthorAgeFilesLines
* Printing error when OSError other than FileNotFoundError occurs when ↵Kevin Van Brunt2021-01-291-1/+12
| | | | deleting persistent history file with history --clear command.
* Changed isort to force wrapping of imports to reduce merge conflicts from ↵Eric Lin2021-01-221-3/+9
| | | | minor import changes.
* Added info on semantic versioning and branching strategy to CONTRIBUTING.mdTodd Leonhardt2020-04-241-3/+4
| | | | | | | Also: - Added isort to Pipenv dev - Added setup.cfg to make it easy to run flake8, doc8, and isort directly from the command line without using invoke - Ran isort to sort includes
* Increased code coverageKevin Van Brunt2019-12-101-11/+17
|
* do_history no longer calls do_edit since edit is a command that is commonly ↵Kevin Van Brunt2019-10-301-14/+3
| | | | overridden
* Fixed inconsistent parsing/tab completion behavior based on the value of ↵Kevin Van Brunt2019-08-021-1/+0
| | | | | | `allow_redirection`. This flag is only meant to be a security setting that prevents redirection of stdout and should not alter parsing logic.
* Added unit testKevin Van Brunt2019-07-291-0/+21
|
* Creating directory of persistent history file if it does not existKevin Van Brunt2019-07-291-2/+11
|
* Increased coverageKevin Van Brunt2019-07-231-5/+10
|
* Moved the sorting of shortcuts into StatementParser which allows users to ↵Kevin Van Brunt2019-07-161-1/+1
| | | | pass in a dictionary instead of a tuple for shortcuts.
* Added unit testsKevin Van Brunt2019-06-271-7/+20
|
* Fixed unit testsKevin Van Brunt2019-06-151-1/+1
|
* Added a unit test for HistoryItem.pr() in the case of non-verbose, ↵Todd Leonhardt2019-06-141-0/+12
| | | | | | | non-expanded multiline commands Also: - Updated CHANGELOG to reflect that 0.9.13 release is planned for June 2019
* Fix history display issuesTodd Leonhardt2019-06-131-0/+31
| | | | | | | | | | | Issues were two fold: - HistoryItem statement.raw was getting mangled for multiline commands due to macro-related changes in _input_line_to_statement() - HistoryItem pretty printing wasn't using rstrip() anymore in verbose mode I added a couple unit tests in the process of getting here. But we should add some explicit unit tests of _input_line_to_statement() for cases like: - basic single-line command - macro single-line command - multiline command
* Add the -a/--all flag to the history command for showing all commands ↵Todd Leonhardt2019-05-271-3/+75
| | | | | | | | | | including those persisted from previous sessions Also: - History class has been modified to keep track of the session start index - History class span(), str_search(), and regex_search() methods now take an optional 2nd boolean parameter `include_persisted` which determines whether or not commands persisted from previous sessions should be included by default - If a start index is manually specified, then it automatically includes the full search - Updates unit tests
* Improve unit test coverage for historykotfu2019-05-251-65/+128
|
* Refactored implementation of HistoryItem.__str__ and added an explicit ↵Todd Leonhardt2019-05-251-6/+15
| | | | HistoryItem unit test
* Manually check whether persistent_history_file is a directorykotfu2019-05-251-12/+5
|
* Another try to fix the appveyor on windows permission issuekotfu2019-05-251-10/+12
|
* Try and fix an Appveyor permission problemkotfu2019-05-251-1/+6
|
* Resolve PR feedbackkotfu2019-05-251-8/+5
|
* Populate readline history from unpickled historykotfu2019-05-241-40/+28
|
* Refactor HistoryItem to not subclass strkotfu2019-05-241-30/+91
|
* Cleanup some history testskotfu2019-05-241-7/+3
|
* Initializing history now detects plaintext or pickle formatkotfu2019-05-241-8/+40
|
* Simplified a unit testKevin Van Brunt2019-03-201-3/+2
|
* Fixed unit testKevin Van Brunt2019-03-201-3/+3
|
* Made run_cmd return out and errKevin Van Brunt2019-03-201-41/+39
|
* Negative ending history indices include the referenced command, instead of ↵kotfu2019-03-111-5/+5
| | | | excluding it
* Allow both history indices to be negativekotfu2019-03-101-1/+4
|
* Clean up history commandkotfu2019-03-091-23/+35
|
* Reworked get() on History classkotfu2019-03-091-8/+30
|
* Fixed commentsKevin Van Brunt2019-02-261-2/+2
|
* Fixed unit test which was slow on macOS and hung forever on WindowsTodd Leonhardt2019-02-261-3/+7
|
* Merged master into history branch and fixed merge conflictsTodd Leonhardt2019-02-261-2/+2
|
* expanded history searches with string or regex for #545kotfu2019-02-161-0/+25
| | | | history -v with a string or regex search now searches both the entered command as well as the expanded command
* Move the rest of the history tests into test_history.pykotfu2019-02-091-1/+116
|
* Added -x option to history command for #545kotfu2019-02-091-2/+59
|
* Extract history classes and test into their own fileskotfu2019-02-091-0/+209