From 2994a8e1e93ea789426ccf2b8c1d912855a78daa Mon Sep 17 00:00:00 2001 From: mathieui Date: Sun, 12 Jun 2016 16:56:18 +0200 Subject: Update tests --- test/test_common.py | 8 +++++--- test/test_theming.py | 2 +- 2 files changed, 6 insertions(+), 4 deletions(-) (limited to 'test') 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') -- cgit v1.2.3