Commit Graph

15 Commits

Author SHA1 Message Date
nautics889
6651b30fde fix: Remove unused imports in several modules #752
Removed unused imports in:
* terminator
* terminatorlib/plugins/dir_open.py
* terminatorlib/terminal.py
* terminatorlib/terminal_popup_menu.py
* terminatorlib/terminator.py
* tests/test_signalman.py
2024-01-26 20:20:19 +02:00
Matt Rose
1d5351ed86
Merge pull request #665 from vssdeo/559-Add-menu-autocomplete
[bug 559] Add menu autocomplete #559
2022-11-18 23:10:10 -05:00
Vishweshwar Saran Singh Deo
85f57543ed -added split_auto to prefseditor
-had to comment out test for ctrl shift a (need to cross check)
2022-11-05 15:29:42 +05:30
Vishweshwar Saran Singh Deo
d08cee42ee [bug 559] Add menu autocomplete
Follwing errors were being thrown:

FAILED tests/test_prefseditor_keybindings.py::test_keybinding_successfully_reassigned_after_clearing[accel_params0] - AttributeError: 'TreeModelFilter' object has no attribute 'set'

It seems earlier the Gtk.ListStore()  was directly being passed in the test cases. After the changes to the Preferences to add a search filter bar we had added a filter Gtk.TreeModelFilter and for the widget we were setting it:
        widget.set_model(self.treemodelfilter)

Now it seemed that instead of Gtk.ListStore() the object Gtk.TreeModelFilter was being received and since it did not have a "set" function the above error was thrown.

I have made changes so that the Gtk.ListStore() is taken from Gtk.TreeModelFilter via get_model function and this indirection is removed.
2022-11-01 18:24:15 +05:30
dkmvs
ba5d155c36 Reset Key Bindings to Default in Prefseditor Test
This commit adds a function that resets key bindings to the default in
 `test_keybinding_edit_produce_expected_accels` test.
Note that this function needs to run at the end of every test that
modifies the key bindings as they are not automatically reset after
the test has run.
2020-09-30 00:37:30 +03:00
dkmvs
03d5e20695 Add Test for Keybinding>Preferences
This commit adds
`test_keybinding_successfully_reassigned_after_clearing` test,
which checks that a key binding is successfully reassigned after it
has been cleared.
2020-09-29 22:05:54 +03:00
dkmvs
5e417ee09d Add Tests for Keybinding>Preferences
The test in this commit checks that editing a key binding using a predefined
key combination produces the expected accelerator.
2020-09-18 03:45:31 +03:00
dkmvs
1b5b584669 Add Tests for Preferences>Keybidings
This commit adds tests that check that:
1) Default key binding accelerators are distinct.
2) Message dialog appears when a duplicate key binding accelerator is
attempted to be assigned to a different action.
3) Duplicate key binding accelerator cannot refer to more than one action.

Also, `active_message_dialog` attribute was added to `PrefsEditor`, so
that tests could get a reference to a message dialog window.
2020-09-02 16:39:20 +03:00
Markus Frosch
294e5820f5 Fix Python 2.7 compat 2020-05-09 10:24:20 +02:00
Markus Frosch
e4cd22b7bd tests: Update suite for pytest 2020-05-09 10:24:20 +02:00
José Augusto
5151db48b1
Converting to python 3 and making all tests pass. (#9)
* Adding vscode dir with the config files.
* make all tests pass.
2020-04-06 14:11:06 +02:00
Markus Frosch
23135f2ca5 Fix shebang and executable flag for all scripts 2020-04-05 16:36:06 +02:00
Emilio Pozuelo Monfort
a3a67385fd Adopt patch "python3" from Debian
https://bugs.launchpad.net/terminator/+bug/1662544
2020-04-05 14:07:13 +02:00
Stephen Boddy
da37f398fa Fix terminator not working with default python3 by forcing python2 2016-11-25 02:29:55 +01:00
Stephen Boddy
fd0225893b (trunk-1565/1566) distcheck fix and improvements to tests 2015-06-23 02:34:24 +02:00