Skip to content
Snippets Groups Projects
Commit 198a0ca7 authored by Brendan Taylor's avatar Brendan Taylor
Browse files

moved testing libraries into their own directory

parent 83d9ef49
No related branches found
No related tags found
No related merge requests found
import sys
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 + '/test/lib')
# a temporary version of ~/.gajim for testing
configdir = gajim_root + '/test/tmp'
......
File moved
File moved
File moved
File moved
# tests for capabilities and the capabilities cache
import unittest
import testlib
testlib.setup_env()
import lib
lib.setup_env()
from common import gajim
from common import xmpp
......@@ -46,4 +46,4 @@ def test_examples(self):
if __name__ == '__main__':
unittest.main()
# vim: se ts=3:
\ No newline at end of file
# vim: se ts=3:
# tests for xmpppy's dispatcher_nb.py
import unittest
import testlib
testlib.setup_env()
import lib
lib.setup_env()
from mock import Mock
......@@ -52,4 +52,4 @@ def _got_message(conn, msg):
if __name__ == '__main__':
unittest.main()
# vim: se ts=3:
\ No newline at end of file
# vim: se ts=3:
# tests for the miscellaneous functions scattered throughout src/gajim.py
import unittest
import testlib
testlib.setup_env()
import lib
lib.setup_env()
from common import gajim
from gajim import Interface
......
......@@ -2,8 +2,8 @@
import time
import testlib
testlib.setup_env()
import lib
lib.setup_env()
from data import *
......
......@@ -2,8 +2,8 @@
import time
import testlib
testlib.setup_env()
import lib
lib.setup_env()
from common import gajim
from common import xmpp
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment