Commit f024a97
* Add _name method to Trigger base class
Trigger.encode calls self._name() but the base class did not define it,
causing AttributeError on unrecognized trigger types returned by
decode_trigger.
* Add tests for Trigger base class _name method
Verify that:
- Trigger base class has _name attribute
- Trigger._name() returns "Trigger"
- Trigger.encode does not crash on bare Trigger instances
- Unrecognized trigger types can round-trip through decode/encode
---------
Co-authored-by: George Nachman <gnachman@gmail.com>
1 parent c220d3e commit f024a97
File tree
2 files changed
+47
-0
lines changed- api/library/python/iterm2
- iterm2
- tests
2 files changed
+47
-0
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
137 | 137 | | |
138 | 138 | | |
139 | 139 | | |
| 140 | + | |
| 141 | + | |
140 | 142 | | |
141 | 143 | | |
142 | 144 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1 | 1 | | |
| 2 | + | |
| 3 | + | |
| 4 | + | |
| 5 | + | |
| 6 | + | |
| 7 | + | |
| 8 | + | |
| 9 | + | |
| 10 | + | |
| 11 | + | |
| 12 | + | |
| 13 | + | |
| 14 | + | |
| 15 | + | |
| 16 | + | |
| 17 | + | |
| 18 | + | |
| 19 | + | |
| 20 | + | |
| 21 | + | |
| 22 | + | |
| 23 | + | |
| 24 | + | |
| 25 | + | |
| 26 | + | |
| 27 | + | |
| 28 | + | |
| 29 | + | |
| 30 | + | |
| 31 | + | |
| 32 | + | |
| 33 | + | |
| 34 | + | |
| 35 | + | |
| 36 | + | |
| 37 | + | |
| 38 | + | |
| 39 | + | |
| 40 | + | |
| 41 | + | |
| 42 | + | |
| 43 | + | |
| 44 | + | |
| 45 | + | |
| 46 | + | |
2 | 47 | | |
3 | 48 | | |
4 | 49 | | |
| |||
0 commit comments