summaryrefslogtreecommitdiff
path: root/test
diff options
context:
space:
mode:
authormathieui <mathieui@mathieui.net>2021-04-11 19:59:40 +0200
committermathieui <mathieui@mathieui.net>2021-04-11 19:59:40 +0200
commit02a858eb49cdb6acd9082de539ebaf4bb4f773be (patch)
tree5f875636d9d4f4dad3d4fbfadb21589973bdebc1 /test
parentbd2aac6de2e67477478d6430c1243bd64404422d (diff)
downloadpoezio-02a858eb49cdb6acd9082de539ebaf4bb4f773be.tar.gz
poezio-02a858eb49cdb6acd9082de539ebaf4bb4f773be.tar.bz2
poezio-02a858eb49cdb6acd9082de539ebaf4bb4f773be.tar.xz
poezio-02a858eb49cdb6acd9082de539ebaf4bb4f773be.zip
tests: Fix tests
Diffstat (limited to 'test')
-rw-r--r--test/test_config.py1
-rw-r--r--test/test_tabs.py20
2 files changed, 10 insertions, 11 deletions
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()