From 02a858eb49cdb6acd9082de539ebaf4bb4f773be Mon Sep 17 00:00:00 2001 From: mathieui Date: Sun, 11 Apr 2021 19:59:40 +0200 Subject: tests: Fix tests --- test/test_config.py | 1 - test/test_tabs.py | 20 ++++++++++---------- 2 files changed, 10 insertions(+), 11 deletions(-) (limited to 'test') diff --git a/test/test_config.py b/test/test_config.py index 0a1c80ce..e562f425 100644 --- a/test/test_config.py +++ b/test/test_config.py @@ -99,7 +99,6 @@ class TestConfigSections(object): class TestTabNames(object): def test_get_tabname(self, config_obj): - config.post_logging_setup() config_obj.set_and_save('test', value='value.toto@toto.com', section='toto@toto.com') config_obj.set_and_save('test2', value='value2@toto.com', diff --git a/test/test_tabs.py b/test/test_tabs.py index cb72340b..d2503df2 100644 --- a/test/test_tabs.py +++ b/test/test_tabs.py @@ -29,7 +29,7 @@ class DummyTab(Tab): def test_append(): DummyTab.reset() - tabs = Tabs(h) + tabs = Tabs(h, None) dummy = DummyTab() tabs.append(dummy) assert tabs[0] is dummy @@ -46,7 +46,7 @@ def test_append(): def test_delete(): DummyTab.reset() - tabs = Tabs(h) + tabs = Tabs(h, None) dummy = DummyTab() dummy2 = DummyTab() tabs.append(dummy) @@ -61,7 +61,7 @@ def test_delete(): def test_delete_restore_previous(): DummyTab.reset() - tabs = Tabs(h) + tabs = Tabs(h, None) dummy = DummyTab() dummy2 = DummyTab() dummy3 = DummyTab() @@ -82,7 +82,7 @@ def test_delete_restore_previous(): def test_delete_other_tab(): DummyTab.reset() - tabs = Tabs(h) + tabs = Tabs(h, None) dummy = DummyTab() dummy2 = DummyTab() dummy3 = DummyTab() @@ -102,7 +102,7 @@ def test_delete_other_tab(): def test_insert_and_gaps(): DummyTab.reset() - tabs = Tabs(h) + tabs = Tabs(h, None) dummy = DummyTab() dummy2 = DummyTab() dummy3 = DummyTab() @@ -125,7 +125,7 @@ def test_insert_and_gaps(): def test_replace_tabs(): DummyTab.reset() - tabs = Tabs(h) + tabs = Tabs(h, None) dummy = DummyTab() dummy2 = DummyTab() dummy3 = DummyTab() @@ -140,7 +140,7 @@ def test_replace_tabs(): def test_prev_next(): DummyTab.reset() - tabs = Tabs(h) + tabs = Tabs(h, None) dummy = DummyTab() dummy2 = DummyTab() dummy3 = DummyTab() @@ -166,7 +166,7 @@ def test_prev_next(): def test_set_current(): DummyTab.reset() - tabs = Tabs(h) + tabs = Tabs(h, None) dummy = DummyTab() dummy2 = DummyTab() dummy3 = DummyTab() @@ -182,7 +182,7 @@ def test_set_current(): def test_slice(): DummyTab.reset() - tabs = Tabs(h) + tabs = Tabs(h, None) dummy = DummyTab() dummy2 = DummyTab() dummy3 = DummyTab() @@ -194,7 +194,7 @@ def test_slice(): def test_find_by_unique_prefix(): DummyTab.reset() - tabs = Tabs(h) + tabs = Tabs(h, None) t1 = DummyTab() t2 = DummyTab() t3 = DummyTab() -- cgit v1.2.3