summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authormathieui <mathieui@mathieui.net>2016-06-12 16:56:18 +0200
committermathieui <mathieui@mathieui.net>2016-06-12 16:56:18 +0200
commit2994a8e1e93ea789426ccf2b8c1d912855a78daa (patch)
treec097f961a06ab7aa82aea01610ccbee713aabaf5
parented5f7b18bd5c92269300e63706adae77a3bbe966 (diff)
downloadpoezio-2994a8e1e93ea789426ccf2b8c1d912855a78daa.tar.gz
poezio-2994a8e1e93ea789426ccf2b8c1d912855a78daa.tar.bz2
poezio-2994a8e1e93ea789426ccf2b8c1d912855a78daa.tar.xz
poezio-2994a8e1e93ea789426ccf2b8c1d912855a78daa.zip
Update tests
-rw-r--r--test/test_common.py8
-rw-r--r--test/test_theming.py2
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')