moved testing libraries into their own directory
This commit is contained in:
parent
83d9ef49a3
commit
198a0ca738
|
@ -1,10 +1,11 @@
|
||||||
import sys
|
import sys
|
||||||
import os.path
|
import os.path
|
||||||
|
|
||||||
gajim_root = os.path.join(os.path.abspath(os.path.dirname(__file__)), '..')
|
gajim_root = os.path.join(os.path.abspath(os.path.dirname(__file__)), '../..')
|
||||||
|
|
||||||
# look for modules in the CWD, then gajim/src, then everywhere else
|
# look for modules in the CWD, then gajim/test/lib, then gajim/src, then everywhere else
|
||||||
sys.path.insert(1, gajim_root + '/src')
|
sys.path.insert(1, gajim_root + '/src')
|
||||||
|
sys.path.insert(1, gajim_root + '/test/lib')
|
||||||
|
|
||||||
# a temporary version of ~/.gajim for testing
|
# a temporary version of ~/.gajim for testing
|
||||||
configdir = gajim_root + '/test/tmp'
|
configdir = gajim_root + '/test/tmp'
|
|
@ -1,8 +1,8 @@
|
||||||
# tests for capabilities and the capabilities cache
|
# tests for capabilities and the capabilities cache
|
||||||
import unittest
|
import unittest
|
||||||
|
|
||||||
import testlib
|
import lib
|
||||||
testlib.setup_env()
|
lib.setup_env()
|
||||||
|
|
||||||
from common import gajim
|
from common import gajim
|
||||||
from common import xmpp
|
from common import xmpp
|
||||||
|
|
|
@ -1,8 +1,8 @@
|
||||||
# tests for xmpppy's dispatcher_nb.py
|
# tests for xmpppy's dispatcher_nb.py
|
||||||
import unittest
|
import unittest
|
||||||
|
|
||||||
import testlib
|
import lib
|
||||||
testlib.setup_env()
|
lib.setup_env()
|
||||||
|
|
||||||
from mock import Mock
|
from mock import Mock
|
||||||
|
|
||||||
|
|
|
@ -1,8 +1,8 @@
|
||||||
# tests for the miscellaneous functions scattered throughout src/gajim.py
|
# tests for the miscellaneous functions scattered throughout src/gajim.py
|
||||||
import unittest
|
import unittest
|
||||||
|
|
||||||
import testlib
|
import lib
|
||||||
testlib.setup_env()
|
lib.setup_env()
|
||||||
|
|
||||||
from common import gajim
|
from common import gajim
|
||||||
from gajim import Interface
|
from gajim import Interface
|
||||||
|
|
|
@ -2,8 +2,8 @@ import unittest
|
||||||
|
|
||||||
import time
|
import time
|
||||||
|
|
||||||
import testlib
|
import lib
|
||||||
testlib.setup_env()
|
lib.setup_env()
|
||||||
|
|
||||||
from data import *
|
from data import *
|
||||||
|
|
||||||
|
|
|
@ -2,8 +2,8 @@ import unittest
|
||||||
|
|
||||||
import time
|
import time
|
||||||
|
|
||||||
import testlib
|
import lib
|
||||||
testlib.setup_env()
|
lib.setup_env()
|
||||||
|
|
||||||
from common import gajim
|
from common import gajim
|
||||||
from common import xmpp
|
from common import xmpp
|
||||||
|
|
Loading…
Reference in New Issue