From ba5d155c36e59731b8322d60fcf223d73dceb11f Mon Sep 17 00:00:00 2001 From: dkmvs <67212386+dkmvs@users.noreply.github.com> Date: Wed, 30 Sep 2020 00:37:30 +0300 Subject: [PATCH] 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. --- tests/test_prefseditor_keybindings.py | 2 ++ 1 file changed, 2 insertions(+) diff --git a/tests/test_prefseditor_keybindings.py b/tests/test_prefseditor_keybindings.py index 9d8ec02d..661d8f3e 100644 --- a/tests/test_prefseditor_keybindings.py +++ b/tests/test_prefseditor_keybindings.py @@ -252,6 +252,8 @@ def test_keybinding_edit_produce_expected_accels( assert accel_after_edit == expected_accel + reset_config_keybindings() + @pytest.mark.parametrize( "accel_params",