Ticket #213: tests.patch
File tests.patch, 2.1 KB (added by , 12 years ago) |
---|
-
tests/window_xlib_test.py
Last-Update: 2012-08-09 Author: Dmitry Smirnov <[email protected]> Forwarded: 2012-08-10 Bug-Winswitch: https://winswitch.org/trac/ticket/213 Description: tests to use modules from build-dir.
a b 4 4 # Copyright (c) 2009-2012 Antoine Martin <[email protected]> 5 5 # Window-Switch is released under the terms of the GNU GPL v3 6 6 7 import sys,os.path 8 _ROOTPATH = os.path.split(os.path.dirname(os.path.abspath(__file__)))[0] 9 sys.path.append(_ROOTPATH) 7 10 8 11 from winswitch.util.simple_logger import Logger 9 12 -
tests/util/common_test.py
a b 4 4 # Copyright (c) 2009-2012 Antoine Martin <[email protected]> 5 5 # Window-Switch is released under the terms of the GNU GPL v3 6 6 7 import sys,os.path 8 _ROOTPATH = os.path.split(os.path.dirname(os.path.abspath(__file__)))[0] 9 sys.path.append(_ROOTPATH+'/..') 10 7 11 from winswitch.util.simple_logger import Logger 8 12 from winswitch.util.common import check_remote_version, parse_version_string 9 13 -
tests/util/crypt_util_test.py
a b 4 4 # Copyright (c) 2009-2012 Antoine Martin <[email protected]> 5 5 # Window-Switch is released under the terms of the GNU GPL v3 6 6 7 import sys,os.path 8 _ROOTPATH = os.path.split(os.path.dirname(os.path.abspath(__file__)))[0] 9 sys.path.append(_ROOTPATH+'/..') 10 7 11 from winswitch.util.simple_logger import Logger 8 12 from winswitch.util.crypt_util import make_key_fingerprint, generate_key, recreate_key, encrypt, encrypt_hex, encrypt_salted_hex, sign, sign_long, verify, verify_long, decrypt, decrypt_hex, decrypt_salted_hex, hex_str, unhex_str 9 13 -
tests/util/utmp_test.py
a b 4 4 # Copyright (c) 2009-2012 Antoine Martin <[email protected]> 5 5 # Window-Switch is released under the terms of the GNU GPL v3 6 6 7 import sys,os.path 8 _ROOTPATH = os.path.split(os.path.dirname(os.path.abspath(__file__)))[0] 9 sys.path.append(_ROOTPATH+'/..') 7 10 8 11 from winswitch.virt.utmp_wrapper import getutents, python_utmp_getutents, pyutmp_getutents, utmp_rec 9 12