Stephan Erb
2654ee9d56
Work around failing testcases.
...
It looks like those have not been run for month. A few are failing. They are now commented and wait for a proper fix. (Deferred)
2009-10-08 16:29:10 +02:00
Yann Leboulanger
752a6e72cb
test_sessions require gtk
2009-04-08 07:30:40 +00:00
Yann Leboulanger
b7c43f433b
re-enable tests on commit time
2009-04-06 18:34:20 +00:00
Yann Leboulanger
4388e18c77
fix typo in resolver test
2009-04-06 18:33:30 +00:00
Yann Leboulanger
fe8ca9b26a
fix xmpp transport tests. Fixes #4829
2009-04-06 15:45:56 +00:00
Yann Leboulanger
c5acd3f655
fix dispatcher tests. Fixes #4830
2009-04-06 13:36:29 +00:00
Yann Leboulanger
d3ebaf5d8d
fix test_xmpp_client_nb test unit
2009-04-06 13:18:56 +00:00
Yann Leboulanger
3d559033cb
fix Mock class: child of object class and fix realClass usage
2009-04-06 13:07:12 +00:00
Yann Leboulanger
a0d0a9b56c
fix function name
2009-04-06 13:05:03 +00:00
Stephan Erb
a757177e45
Improve code coverage of our testsuites and do some refactoring.
...
* resolver does not depend on GTK anymore
* renamed a few modules for consistency
* moved all mocks to lib/
* let client_nb test work again. Was broken here
There are many failing tests, help appreciated :-)
2009-01-11 13:49:03 +00:00
Stephan Erb
a1f346e48a
Remove duplicated coded in test_client_nb.py
2008-12-24 14:53:00 +00:00
Stephan Erb
62a334b8fd
Comment some prints in xmpp_mocks.py. Should be merged with test/lib/mocks.py
2008-12-24 14:50:50 +00:00
Stephan Erb
53d1fa6f66
Small cleanups to test_nonblockingtcp.py without much value.
2008-12-24 14:46:21 +00:00
Stephan Erb
c5aff6f37c
Make test_resolver work again after IdleQueue move.
2008-12-24 14:44:07 +00:00
Stephan Erb
f1b831fd90
Temporary disable regression tests on commit.
2008-12-24 13:43:42 +00:00
Yann Leboulanger
b317ffcdae
merge BOSH branch to trunk
2008-12-15 21:06:08 +00:00
Yann Leboulanger
38eadfae5e
[thorstenp] remove some useless space at eol
2008-12-03 22:44:02 +00:00
Yann Leboulanger
158538b81c
[thorstenp] rename some var to not hide builts-in functions (list -> list_, ...)
2008-10-11 10:22:04 +00:00
Yann Leboulanger
196dd7e30a
[thorstenp] use isinstance rather than type(x) == y. use sorted()
2008-10-11 09:59:52 +00:00
Yann Leboulanger
73aee40542
[thorstenp] replace none equality test with identity test
2008-10-11 09:44:12 +00:00
Yann Leboulanger
567f1e17c1
[thorstenp] di not use emtpy except clauses
2008-10-11 09:37:13 +00:00
Yann Leboulanger
9d7c80d522
[thorstenp] replace has_key by key in dict. Fixes #4392
2008-10-07 20:41:59 +00:00
Yann Leboulanger
3d46bf0b6e
[dwd] fix reconnection when we get wrong XML with undeclared namespaces. Fixes #3083
2008-09-27 14:26:50 +00:00
tomk
a7c36048b9
- renamed src/common/nslookup.py to resolver.py
...
- refactored resolver code and added asynchronous resolver based on patch by Damien Thebault[1]
* Uses libasyncns-python[2]. If it's not available, old nslookup resolver is used)
* works for SRV requests only at the moment
[1] https://www.lagaule.org/pipermail/gajim-devel/2008-July/000460.html
[2] https://code.launchpad.net/libasyncns-python
2008-08-31 23:40:06 +00:00
Stephan Erb
a16c65873a
Small enhancements for test_roster_window.
...
* Make sure that contacts show up under the correct parent
* Add check support for SelfContacts
2008-08-28 22:07:40 +00:00
Stephan Erb
9f52881d6e
Fix option handling of the unittest runner.
2008-08-27 18:55:18 +00:00
Yann Leboulanger
5b6da9fbe0
fix dispatcher test. <x:y> in a message are not allowed
2008-08-27 07:56:02 +00:00
Yann Leboulanger
8a83033816
add some options to runtests.py to be able to tune verbosity and wether we want to run tests that require X or not
2008-08-27 07:55:06 +00:00
Yann Leboulanger
ea99cb3682
coding standards
2008-08-27 07:51:05 +00:00
Yann Leboulanger
12f2c89070
coding standards
2008-08-27 07:49:41 +00:00
Yann Leboulanger
b5753fec60
test hash computation in caps test
2008-08-27 07:49:11 +00:00
Stephan Erb
0bc1ac47f7
Unittest to reproduce #4208 . With some tweaks to data.py it should also help to reproduce #4195 .
2008-08-18 22:15:45 +00:00
Brendan Taylor
559a8c8b13
status change tests, hopefully fix some status change issues
2008-08-09 06:10:04 +00:00
Brendan Taylor
198a0ca738
moved testing libraries into their own directory
2008-08-09 00:24:08 +00:00
Brendan Taylor
83d9ef49a3
a script for running all the tests
2008-08-08 23:53:44 +00:00
Stephan Erb
d1150f4d02
Implement some basic RosterWindow tests.
...
I just want the skeleton to be in place for feature bug fixing :-)
2008-08-06 20:17:00 +00:00
js
8605cd3f38
For historical reasons, we have a tab width of 3. This is strange, but
...
we have that in all files. To at least lesser the confusion a bit, add
vim tags for that.
Additionally, fix wrong #! in a few files.
2008-07-29 19:49:31 +00:00
tomk
3d860f40a6
BOSHClient transformed to NonBlockingBOSH transport - it's easier to maintain more connections from below, implemented handling of non-persistent HTTP connections - it runs with ejabberd, improved NonBlockingTransport interface, minor changes in BOSHDispatcher
2008-07-13 22:22:58 +00:00
tomk
f3820706fb
- Refactored non-blocking transport and client classes - getaddrinfo is called
...
in Client now
- Added NonBlockingHttpBOSH transport (to tranports_nb) and BOSHClient
(to client_nb)
- Extended possible proxy types in configuration by "BOSH" proxy
- Rewrote NonBlockingTLS to invoke success callback only after successful TLS handshake is over (formerly, the TLS Plugin returned right after sending <starttls>)
2008-06-30 00:02:32 +00:00
Brendan Taylor
f6609d5bc5
indentation bug in the test environment setup
2008-06-29 22:31:17 +00:00
Brendan Taylor
90d849f945
added test for parsing of unbound namespace prefixes
2008-06-29 17:06:30 +00:00
Brendan Taylor
59f9d7dc2e
test for URL regexp
2008-06-29 05:25:59 +00:00
Brendan Taylor
e3613be1fa
first pass at stripping out the one-tab-per-session code
2008-06-26 23:36:58 +00:00
tomk
65644ca13f
added stub for new transports module plus basic test for it, testing code reorganized
2008-06-18 23:58:19 +00:00
tomk
16e274b9ec
added test script for NonBlockingClient (test/test_client_nb.py)
2008-06-12 23:54:46 +00:00
Brendan Taylor
82b30c0791
CapsCache: made docstring match the API, fixed minor bugs, added tests
2008-06-12 03:56:47 +00:00
Brendan Taylor
de21abe97b
split off test initialization code
2008-06-12 03:56:30 +00:00
tomk
6a15c9b9c9
initial cleanup of xmpppy perfomed, see #3260
2008-06-09 00:32:02 +00:00
Brendan Taylor
cc307aed70
split mock objects into their own module
2008-06-03 23:54:22 +00:00
Brendan Taylor
1920b963da
fix unit test to be runnable from anywhere
2008-05-31 00:54:40 +00:00