diff options
author | mathieui <mathieui@mathieui.net> | 2018-07-22 16:17:06 +0200 |
---|---|---|
committer | mathieui <mathieui@mathieui.net> | 2018-07-22 16:17:06 +0200 |
commit | c6cf2d08b7295a477d89d01535463d18103f6311 (patch) | |
tree | 9ec9f61ab5d4b6fe45d10d0752dab90df935e76f /test | |
parent | e2414121af16474744d012cdb8466de6ae3136e4 (diff) | |
download | poezio-c6cf2d08b7295a477d89d01535463d18103f6311.tar.gz poezio-c6cf2d08b7295a477d89d01535463d18103f6311.tar.bz2 poezio-c6cf2d08b7295a477d89d01535463d18103f6311.tar.xz poezio-c6cf2d08b7295a477d89d01535463d18103f6311.zip |
Fix close_all and change_title plugins
Diffstat (limited to 'test')
-rw-r--r-- | test/test_tabs.py | 19 |
1 files changed, 11 insertions, 8 deletions
diff --git a/test/test_tabs.py b/test/test_tabs.py index 6db4c2cc..83f7e6dc 100644 --- a/test/test_tabs.py +++ b/test/test_tabs.py @@ -4,6 +4,9 @@ Tests for the Tabs list module from poezio.core.tabs import Tabs from poezio.tabs import GapTab +from poezio.events import EventHandler + +h = EventHandler() class DummyTab: count = 0 @@ -18,7 +21,7 @@ class DummyTab: def test_append(): DummyTab.reset() - tabs = Tabs() + tabs = Tabs(h) dummy = DummyTab() tabs.append(dummy) assert tabs[0] is dummy @@ -35,7 +38,7 @@ def test_append(): def test_delete(): DummyTab.reset() - tabs = Tabs() + tabs = Tabs(h) dummy = DummyTab() dummy2 = DummyTab() tabs.append(dummy) @@ -50,7 +53,7 @@ def test_delete(): def test_delete_restore_previous(): DummyTab.reset() - tabs = Tabs() + tabs = Tabs(h) dummy = DummyTab() dummy2 = DummyTab() dummy3 = DummyTab() @@ -71,7 +74,7 @@ def test_delete_restore_previous(): def test_delete_other_tab(): DummyTab.reset() - tabs = Tabs() + tabs = Tabs(h) dummy = DummyTab() dummy2 = DummyTab() dummy3 = DummyTab() @@ -91,7 +94,7 @@ def test_delete_other_tab(): def test_insert_and_gaps(): DummyTab.reset() - tabs = Tabs() + tabs = Tabs(h) dummy = DummyTab() dummy2 = DummyTab() dummy3 = DummyTab() @@ -114,7 +117,7 @@ def test_insert_and_gaps(): def test_replace_tabs(): DummyTab.reset() - tabs = Tabs() + tabs = Tabs(h) dummy = DummyTab() dummy2 = DummyTab() dummy3 = DummyTab() @@ -129,7 +132,7 @@ def test_replace_tabs(): def test_prev_next(): DummyTab.reset() - tabs = Tabs() + tabs = Tabs(h) dummy = DummyTab() dummy2 = DummyTab() dummy3 = DummyTab() @@ -155,7 +158,7 @@ def test_prev_next(): def test_set_current(): DummyTab.reset() - tabs = Tabs() + tabs = Tabs(h) dummy = DummyTab() dummy2 = DummyTab() dummy3 = DummyTab() |