From 5f0c0fbb0adb45407008d84dc1b6e843cd94870c Mon Sep 17 00:00:00 2001 From: mathieui Date: Sun, 21 Aug 2016 15:39:46 +0200 Subject: Update tests --- test/test_common.py | 15 ++++++--------- 1 file changed, 6 insertions(+), 9 deletions(-) (limited to 'test/test_common.py') diff --git a/test/test_common.py b/test/test_common.py index dde49524..d7bc2b8b 100644 --- a/test/test_common.py +++ b/test/test_common.py @@ -2,19 +2,16 @@ Test the functions in the `common` module """ -import sys -sys.path.append('poezio') - import time import pytest import datetime from slixmpp import JID from datetime import timedelta -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) +from poezio.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) @@ -65,4 +62,4 @@ def test_parse_secs_to_str(): def test_safeJID(): assert safeJID('toto@titi/tata') == JID('toto@titi/tata') - assert safeJID('é_è') == JID('') + assert safeJID('toto@…') == JID('') -- cgit v1.2.3