tests: Fix tests
This commit is contained in:
parent
bd2aac6de2
commit
02a858eb49
2 changed files with 10 additions and 11 deletions
|
@ -99,7 +99,6 @@ class TestConfigSections(object):
|
||||||
|
|
||||||
class TestTabNames(object):
|
class TestTabNames(object):
|
||||||
def test_get_tabname(self, config_obj):
|
def test_get_tabname(self, config_obj):
|
||||||
config.post_logging_setup()
|
|
||||||
config_obj.set_and_save('test', value='value.toto@toto.com',
|
config_obj.set_and_save('test', value='value.toto@toto.com',
|
||||||
section='toto@toto.com')
|
section='toto@toto.com')
|
||||||
config_obj.set_and_save('test2', value='value2@toto.com',
|
config_obj.set_and_save('test2', value='value2@toto.com',
|
||||||
|
|
|
@ -29,7 +29,7 @@ class DummyTab(Tab):
|
||||||
|
|
||||||
def test_append():
|
def test_append():
|
||||||
DummyTab.reset()
|
DummyTab.reset()
|
||||||
tabs = Tabs(h)
|
tabs = Tabs(h, None)
|
||||||
dummy = DummyTab()
|
dummy = DummyTab()
|
||||||
tabs.append(dummy)
|
tabs.append(dummy)
|
||||||
assert tabs[0] is dummy
|
assert tabs[0] is dummy
|
||||||
|
@ -46,7 +46,7 @@ def test_append():
|
||||||
|
|
||||||
def test_delete():
|
def test_delete():
|
||||||
DummyTab.reset()
|
DummyTab.reset()
|
||||||
tabs = Tabs(h)
|
tabs = Tabs(h, None)
|
||||||
dummy = DummyTab()
|
dummy = DummyTab()
|
||||||
dummy2 = DummyTab()
|
dummy2 = DummyTab()
|
||||||
tabs.append(dummy)
|
tabs.append(dummy)
|
||||||
|
@ -61,7 +61,7 @@ def test_delete():
|
||||||
|
|
||||||
def test_delete_restore_previous():
|
def test_delete_restore_previous():
|
||||||
DummyTab.reset()
|
DummyTab.reset()
|
||||||
tabs = Tabs(h)
|
tabs = Tabs(h, None)
|
||||||
dummy = DummyTab()
|
dummy = DummyTab()
|
||||||
dummy2 = DummyTab()
|
dummy2 = DummyTab()
|
||||||
dummy3 = DummyTab()
|
dummy3 = DummyTab()
|
||||||
|
@ -82,7 +82,7 @@ def test_delete_restore_previous():
|
||||||
|
|
||||||
def test_delete_other_tab():
|
def test_delete_other_tab():
|
||||||
DummyTab.reset()
|
DummyTab.reset()
|
||||||
tabs = Tabs(h)
|
tabs = Tabs(h, None)
|
||||||
dummy = DummyTab()
|
dummy = DummyTab()
|
||||||
dummy2 = DummyTab()
|
dummy2 = DummyTab()
|
||||||
dummy3 = DummyTab()
|
dummy3 = DummyTab()
|
||||||
|
@ -102,7 +102,7 @@ def test_delete_other_tab():
|
||||||
|
|
||||||
def test_insert_and_gaps():
|
def test_insert_and_gaps():
|
||||||
DummyTab.reset()
|
DummyTab.reset()
|
||||||
tabs = Tabs(h)
|
tabs = Tabs(h, None)
|
||||||
dummy = DummyTab()
|
dummy = DummyTab()
|
||||||
dummy2 = DummyTab()
|
dummy2 = DummyTab()
|
||||||
dummy3 = DummyTab()
|
dummy3 = DummyTab()
|
||||||
|
@ -125,7 +125,7 @@ def test_insert_and_gaps():
|
||||||
|
|
||||||
def test_replace_tabs():
|
def test_replace_tabs():
|
||||||
DummyTab.reset()
|
DummyTab.reset()
|
||||||
tabs = Tabs(h)
|
tabs = Tabs(h, None)
|
||||||
dummy = DummyTab()
|
dummy = DummyTab()
|
||||||
dummy2 = DummyTab()
|
dummy2 = DummyTab()
|
||||||
dummy3 = DummyTab()
|
dummy3 = DummyTab()
|
||||||
|
@ -140,7 +140,7 @@ def test_replace_tabs():
|
||||||
|
|
||||||
def test_prev_next():
|
def test_prev_next():
|
||||||
DummyTab.reset()
|
DummyTab.reset()
|
||||||
tabs = Tabs(h)
|
tabs = Tabs(h, None)
|
||||||
dummy = DummyTab()
|
dummy = DummyTab()
|
||||||
dummy2 = DummyTab()
|
dummy2 = DummyTab()
|
||||||
dummy3 = DummyTab()
|
dummy3 = DummyTab()
|
||||||
|
@ -166,7 +166,7 @@ def test_prev_next():
|
||||||
|
|
||||||
def test_set_current():
|
def test_set_current():
|
||||||
DummyTab.reset()
|
DummyTab.reset()
|
||||||
tabs = Tabs(h)
|
tabs = Tabs(h, None)
|
||||||
dummy = DummyTab()
|
dummy = DummyTab()
|
||||||
dummy2 = DummyTab()
|
dummy2 = DummyTab()
|
||||||
dummy3 = DummyTab()
|
dummy3 = DummyTab()
|
||||||
|
@ -182,7 +182,7 @@ def test_set_current():
|
||||||
|
|
||||||
def test_slice():
|
def test_slice():
|
||||||
DummyTab.reset()
|
DummyTab.reset()
|
||||||
tabs = Tabs(h)
|
tabs = Tabs(h, None)
|
||||||
dummy = DummyTab()
|
dummy = DummyTab()
|
||||||
dummy2 = DummyTab()
|
dummy2 = DummyTab()
|
||||||
dummy3 = DummyTab()
|
dummy3 = DummyTab()
|
||||||
|
@ -194,7 +194,7 @@ def test_slice():
|
||||||
|
|
||||||
def test_find_by_unique_prefix():
|
def test_find_by_unique_prefix():
|
||||||
DummyTab.reset()
|
DummyTab.reset()
|
||||||
tabs = Tabs(h)
|
tabs = Tabs(h, None)
|
||||||
t1 = DummyTab()
|
t1 = DummyTab()
|
||||||
t2 = DummyTab()
|
t2 = DummyTab()
|
||||||
t3 = DummyTab()
|
t3 = DummyTab()
|
||||||
|
|
Loading…
Reference in a new issue