summaryrefslogtreecommitdiff
path: root/tests/test_run_pyscript.py
Commit message (Collapse)AuthorAgeFilesLines
* Fixed extra space appended to each alias by "alias list" command.Kevin Van Brunt2021-08-251-0/+7
| | | | Added self.last_result unit tests for alias, edit, eof, help, macro, quit, shortcuts, and run_pyscript commands.
* Renamed use_ipython keyword parameter of cmd2.Cmd.__init__() to include_ipy.Kevin Van Brunt2021-03-301-0/+36
| | | | | | | | | | Added include_py keyword parameter to cmd2.Cmd.__init__(). If False, then the py command will not be available. Removed ability to run Python commands from the command line with py. Made banners and exit messages of Python and IPython consistent. Changed utils.is_text_file() to raise OSError if file cannot be read.
* Deprecate Python 3.5Todd Leonhardt2021-02-201-8/+3
|
* Add in isort changesTodd Leonhardt2021-01-311-1/+3
|
* Add black for automatic code formatTodd Leonhardt2021-01-311-1/+15
|
* 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-1/+2
| | | | | | | 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
* Updated error textKevin Van Brunt2020-04-201-1/+1
|
* cmd2 now considers ipy a pyscript environmentKevin Van Brunt2020-04-201-1/+1
|
* Fixed unit test nameKevin Van Brunt2020-04-111-1/+1
|
* Made some optional arguments with defaults keyword-only.Kevin Van Brunt2020-04-111-1/+8
| | | | | Added unit test for echo argument to pyscript app() command. Removed _relative_load from hidden commands since that command was renamed.
* Fixed bug where pyscripts could edit cmd2.Cmd.py_locals dictionary.Kevin Van Brunt2020-02-141-5/+4
| | | | | | | | | Fixed bug where cmd2 set sys.path[0] for a pyscript to its cwd instead of the script's directory. Fixed bug where sys.path was not being restored after a pyscript ran. Setting the following pyscript variables: __name__: __main__ __file__: script path (as typed) Removed do_py.run() function since it didn't handle arguments and offered no benefit over run_pyscript.
* Updating unit testsKevin Van Brunt2019-12-171-18/+9
|
* Fixed unit test on WindowsKevin Van Brunt2019-07-241-4/+4
|
* Updated unit testsKevin Van Brunt2019-07-241-4/+8
|
* Added unit testsKevin Van Brunt2019-07-241-2/+23
|
* Fixed issue where run_pyscript failed if the script's filename had a spaceKevin Van Brunt2019-07-231-4/+12
|
* Changed warning textKevin Van Brunt2019-07-211-1/+1
|
* Added unit testKevin Van Brunt2019-07-211-1/+17
|
* Remove load, _relative_load, pyscript aliases whichTodd Leonhardt2019-06-291-5/+0
| | | | | | These commands were renamed in the last release, but aliases were created along with warnings to help aid the transition. The command aliases are now being removed in this release.
* Fix unit test failures I introduced in last commitTodd Leonhardt2019-06-151-1/+1
|
* Added unit testsKevin Van Brunt2019-06-151-9/+4
|
* Updated unit testsKevin Van Brunt2019-06-151-2/+42
|
* Renamed fileKevin Van Brunt2019-06-151-0/+56