Ticket #213: tests.patch

File tests.patch, 2.1 KB (added by onlyjob, 12 years ago)

patch

  • 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  
    44# Copyright (c) 2009-2012 Antoine Martin <[email protected]>
    55# Window-Switch is released under the terms of the GNU GPL v3
    66
     7import sys,os.path
     8_ROOTPATH = os.path.split(os.path.dirname(os.path.abspath(__file__)))[0]
     9sys.path.append(_ROOTPATH)
    710
    811from winswitch.util.simple_logger import Logger
    912
  • tests/util/common_test.py

    a b  
    44# Copyright (c) 2009-2012 Antoine Martin <[email protected]>
    55# Window-Switch is released under the terms of the GNU GPL v3
    66
     7import sys,os.path
     8_ROOTPATH = os.path.split(os.path.dirname(os.path.abspath(__file__)))[0]
     9sys.path.append(_ROOTPATH+'/..')
     10
    711from winswitch.util.simple_logger import Logger
    812from winswitch.util.common import check_remote_version, parse_version_string
    913
  • tests/util/crypt_util_test.py

    a b  
    44# Copyright (c) 2009-2012 Antoine Martin <[email protected]>
    55# Window-Switch is released under the terms of the GNU GPL v3
    66
     7import sys,os.path
     8_ROOTPATH = os.path.split(os.path.dirname(os.path.abspath(__file__)))[0]
     9sys.path.append(_ROOTPATH+'/..')
     10
    711from winswitch.util.simple_logger import Logger
    812from 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
    913
  • tests/util/utmp_test.py

    a b  
    44# Copyright (c) 2009-2012 Antoine Martin <[email protected]>
    55# Window-Switch is released under the terms of the GNU GPL v3
    66
     7import sys,os.path
     8_ROOTPATH = os.path.split(os.path.dirname(os.path.abspath(__file__)))[0]
     9sys.path.append(_ROOTPATH+'/..')
    710
    811from winswitch.virt.utmp_wrapper import getutents, python_utmp_getutents, pyutmp_getutents, utmp_rec
    912