tests: fix expected get_by_tabname input type
This commit is contained in:
parent
66c615fd94
commit
e3b07d95f2
1 changed files with 6 additions and 5 deletions
|
@ -9,6 +9,7 @@ from pathlib import Path
|
||||||
import pytest
|
import pytest
|
||||||
|
|
||||||
from poezio import config
|
from poezio import config
|
||||||
|
from slixmpp import JID
|
||||||
|
|
||||||
|
|
||||||
@pytest.fixture(scope="module")
|
@pytest.fixture(scope="module")
|
||||||
|
@ -104,10 +105,10 @@ class TestTabNames(object):
|
||||||
config_obj.set_and_save('test2', value='value2@toto.com',
|
config_obj.set_and_save('test2', value='value2@toto.com',
|
||||||
section='@toto.com')
|
section='@toto.com')
|
||||||
|
|
||||||
assert config_obj.get_by_tabname('test', 'toto@toto.com') == 'value.toto@toto.com'
|
assert config_obj.get_by_tabname('test', JID('toto@toto.com')) == 'value.toto@toto.com'
|
||||||
assert config_obj.get_by_tabname('test2', 'toto@toto.com') == 'value2@toto.com'
|
assert config_obj.get_by_tabname('test2', JID('toto@toto.com')) == 'value2@toto.com'
|
||||||
assert config_obj.get_by_tabname('test2', 'toto@toto.com', fallback=False) == 'value2@toto.com'
|
assert config_obj.get_by_tabname('test2', JID('toto@toto.com'), fallback=False) == 'value2@toto.com'
|
||||||
assert config_obj.get_by_tabname('test2', 'toto@toto.com', fallback_server=False) == 'true'
|
assert config_obj.get_by_tabname('test2', JID('toto@toto.com'), fallback_server=False) == 'true'
|
||||||
assert config_obj.get_by_tabname('test_int', 'toto@toto.com', fallback=False) == ''
|
assert config_obj.get_by_tabname('test_int', JID('toto@toto.com'), fallback=False) == ''
|
||||||
|
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue