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 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'
......
File moved
File moved
File moved
File moved
# 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
...@@ -46,4 +46,4 @@ def test_examples(self): ...@@ -46,4 +46,4 @@ def test_examples(self):
if __name__ == '__main__': if __name__ == '__main__':
unittest.main() unittest.main()
# vim: se ts=3: # vim: se ts=3:
\ No newline at end of file
# 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
...@@ -52,4 +52,4 @@ def _got_message(conn, msg): ...@@ -52,4 +52,4 @@ def _got_message(conn, msg):
if __name__ == '__main__': if __name__ == '__main__':
unittest.main() unittest.main()
# vim: se ts=3: # vim: se ts=3:
\ No newline at end of file
# 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 @@ ...@@ -2,8 +2,8 @@
import time import time
import testlib import lib
testlib.setup_env() lib.setup_env()
from data import * from data import *
......
...@@ -2,8 +2,8 @@ ...@@ -2,8 +2,8 @@
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
......
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