Commit Graph

92 Commits

Author SHA1 Message Date
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
Mateusz Biliński f62698e28c Added docstrings in reST format (also with todos). Commented out 'print' statements related to roster window. A few modifications to make code prettier (PyLint driven). 2008-06-02 23:15:08 +00:00
Mateusz Biliński 95b1e45920 Initial commit related to plug-in system:
- basic PluginManager class that loads plugins from *.py files
  in given directories
- Singleton metaclass was created to use with PluginManager;
  notice: __init__ of class is called only once (not like in code
	that is included in Python Cookbook)
- variable to keep paths of plugin directories has been created
  (common.gajim.PLUGINS_DIRS); also added initilization of these
  paths to common.ConfigPaths
- added global variable with PluginManager object:
  common.gajim.plugin_manager
- created customized logger for plugin system ('gajim.plugin_system')
- created function decorator plugins.helpers.log_calls which logs
  each call of function/method; it also logs when function is left
- base class Plugin for plug-in implementation added; not much
  here - only empty class attributes: name, short_name, authors,
	version, description
- based on Plugin class, first plugin was created named
  LengthNotifierPlugin; it is used to notify users when they
  exceed given length of message during writing it (text entry
  field highlights)
- first GUI extension points works when ChatControl object
  is created (it is used in mentioned plugin)
- added 'epydoc.conf' file customized a little bit (file
	is also in trunk now)
- fixed indentation in common.sleepy module (also in trunk
	now)
2008-06-01 23:33:51 +00:00
Brendan Taylor 1920b963da fix unit test to be runnable from anywhere 2008-05-31 00:54:40 +00:00
Brendan Taylor e3e514cdc9 some basic session unit tests and support files 2008-05-29 02:49:03 +00:00