diff options
author | mathieui <mathieui@mathieui.net> | 2016-06-12 16:56:18 +0200 |
---|---|---|
committer | mathieui <mathieui@mathieui.net> | 2016-06-12 16:56:18 +0200 |
commit | 2994a8e1e93ea789426ccf2b8c1d912855a78daa (patch) | |
tree | c097f961a06ab7aa82aea01610ccbee713aabaf5 | |
parent | ed5f7b18bd5c92269300e63706adae77a3bbe966 (diff) | |
download | poezio-2994a8e1e93ea789426ccf2b8c1d912855a78daa.tar.gz poezio-2994a8e1e93ea789426ccf2b8c1d912855a78daa.tar.bz2 poezio-2994a8e1e93ea789426ccf2b8c1d912855a78daa.tar.xz poezio-2994a8e1e93ea789426ccf2b8c1d912855a78daa.zip |
Update tests
-rw-r--r-- | test/test_common.py | 8 | ||||
-rw-r--r-- | test/test_theming.py | 2 |
2 files changed, 6 insertions, 4 deletions
diff --git a/test/test_common.py b/test/test_common.py index 97727aaf..dde49524 100644 --- a/test/test_common.py +++ b/test/test_common.py @@ -10,9 +10,11 @@ import pytest import datetime from slixmpp import JID from datetime import timedelta -from common import (datetime_tuple, get_utc_time, get_local_time, shell_split, - find_argument_quoted, find_argument_unquoted, - parse_str_to_secs, parse_secs_to_str, safeJID) +from common import (_datetime_tuple as datetime_tuple, get_utc_time, + get_local_time, shell_split, _find_argument_quoted + as find_argument_quoted, _find_argument_unquoted as + find_argument_unquoted, parse_str_to_secs, + parse_secs_to_str, safeJID) def test_utc_time(): delta = timedelta(seconds=-3600) diff --git a/test/test_theming.py b/test/test_theming.py index b59560b7..40d1ab42 100644 --- a/test/test_theming.py +++ b/test/test_theming.py @@ -10,7 +10,7 @@ from theming import dump_tuple, read_tuple def test_read_tuple(): assert read_tuple('1,-1,u') == ((1, -1), 'u') - assert read_tuple('1,2') == ((1, 2), None) + assert read_tuple('1,2') == ((1, 2), '\0') with pytest.raises(IndexError): read_tuple('1') |