tests: Fix tests

This commit is contained in:
mathieui 2021-04-11 19:59:40 +02:00
parent bd2aac6de2
commit 02a858eb49
2 changed files with 10 additions and 11 deletions

View file

@ -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',

View file

@ -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()