File tree 2 files changed +6
-5
lines changed
2 files changed +6
-5
lines changed Original file line number Diff line number Diff line change 4
4
0.7.5
5
5
-----
6
6
7
- * Release date: 2017-TBD *
7
+ * Release date: 2017-07-08 *
8
8
9
9
* Bug Fixes
10
10
* ` case_insensitive ` is no longer a runtime-settable parameter, but it was still listed as such
17
17
* Set the default value of ` abbrev ` to ` False ` (which controls whether or not abbreviated commands are allowed)
18
18
* With good tab-completion of command names, using abbreviated commands isn't particularly useful
19
19
* And it can create complications if you are't careful
20
+ * Improved implementation of ` load ` to use command queue instead of nested inner loop
20
21
21
22
0.7.4
22
23
-----
Original file line number Diff line number Diff line change @@ -731,16 +731,16 @@ def test_base_cmdloop_with_queue():
731
731
# Create a cmd2.Cmd() instance and make sure basic settings are like we want for test
732
732
app = cmd2 .Cmd ()
733
733
app .use_rawinput = True
734
- app . intro = 'Hello World, this is an intro ...'
734
+ intro = 'Hello World, this is an intro ...'
735
735
app .cmdqueue .append ('quit\n ' )
736
736
app .stdout = StdOut ()
737
737
738
738
# Need to patch sys.argv so cmd2 doesn't think it was called with arguments equal to the py.test args
739
739
testargs = ["prog" ]
740
- expected = app . intro + '\n '
740
+ expected = intro + '\n '
741
741
with mock .patch .object (sys , 'argv' , testargs ):
742
- # Run the command loop
743
- app .cmdloop ()
742
+ # Run the command loop with custom intro
743
+ app .cmdloop (intro = intro )
744
744
out = app .stdout .buffer
745
745
assert out == expected
746
746
You can’t perform that action at this time.
0 commit comments