Commit Graph

150 Commits

Author SHA1 Message Date
Philipp Hörist 00c7715c01 Refactor parse_datetime and add unit test 2018-11-19 20:06:31 +01:00
André Apitzsch 31e75823fd Remove useless comment 2018-11-19 20:05:36 +01:00
André Apitzsch bc6068cdd8 Test: Fix KeyError
The added account causes an issue with test_gui_interface,
so the account needs to be removed again
2018-11-19 20:05:36 +01:00
Philipp Hörist 3e8b12a533 XHTML: Fix parsing font-size
Remove checking for font_scale, Gtk.TextIter.get_attributes() seems buggy at
the moment, and we dont need to check the current scale to apply a new scale

Fixes #9067
2018-11-19 20:05:02 +01:00
Philipp Hörist 4979bcf675 Refactor htmltextview test 2018-11-19 20:04:51 +01:00
André Apitzsch 958e1390fd Restructure test 2018-11-13 22:00:40 +01:00
André Apitzsch 8946af337a Test: caps cache: use mock from unittest 2018-11-13 22:00:40 +01:00
André Apitzsch e8941a4f0f Test: remove unused imports 2018-11-13 22:00:40 +01:00
André Apitzsch e95a7fccd2 Test: Remove unused xmpp_mocks 2018-11-13 21:59:58 +01:00
Philipp Hörist 50c670e61b Refactor Chat State Notifications
- Move code into chatstate module
- Refactor most of the code, make it much simpler
2018-10-07 00:46:57 +02:00
Philipp Hörist eb8093d25f Add annotations
- Remove some unused vars from app
2018-10-07 00:46:52 +02:00
Philipp Hörist fb42136be1 Move HtmlTextView test into test folder 2018-10-07 00:46:52 +02:00
André Apitzsch 38218aced1 Tests: fix imports 2018-08-18 22:19:01 +02:00
Philipp Hörist 5a6f03dea4 Add connect_maschine()
Add method that sequentially works the steps we have to do
before sending first presence

- Move Delimiter into own module
- Move Metacontacts into own module
2018-07-27 16:01:10 +02:00
Philipp Hörist a943a35a5d Move caps code into own module 2018-07-22 20:49:53 +02:00
Philipp Hörist 07c87a4194 Rewrite discovery code and move it into own module 2018-07-22 16:20:00 +02:00
Philipp Hörist 37f7a80396 Move message handler into own module 2018-07-22 12:33:55 +02:00
Philipp Hörist bd79fe629f Refactor Privacy and Blocking into own modules 2018-07-08 16:44:14 +02:00
Philipp Hörist 8b800f4646 Refactor VCard code into own modules 2018-06-30 19:32:36 +02:00
Philipp Hörist 5bc9822cec Call notify check methods with JID arg
For subscription requests we dont have a contact obj
2018-06-30 11:02:30 +02:00
Alexander Krotov d871dcdcb1 More spelling fixes 2018-06-22 01:47:29 +03:00
Philipp Hörist 32b74b459e Remove support for ESessions
Fixes #5294
2018-05-28 18:21:45 +02:00
Philipp Hörist 105427b8fd Use consistent way to get paths
This lets us now import the app module without setting paths
2018-04-25 20:49:37 +02:00
Philipp Hörist 4a26ecb12c Refactor configpaths
- init configpaths earlier so logging can access it to store debug logs
- First step for more consistency across Gajim when looking up paths

  Recommended usage for the future:
  app.configpaths.get()
  configpaths.get()
2018-04-21 12:48:57 +02:00
Philipp Hörist 32e23ff58b Remove unused code in resolver test 2018-01-26 23:58:24 +01:00
Philipp Hörist 7dacd51c1d Add complex caps test 2018-01-26 23:57:32 +01:00
Philipp Hörist a01cdbf271 Refactor Avatars
- Add support for Pubsub Avatars
- Dont poll for vCard Updates, only use XEP-0153
- Dont cache vCards
- Store the avatar SHA of roster contacts in the DB
- Store the current SHA of each contact in the Contacts Object
- Move some code into the ConnectionVcard Class
2017-10-08 11:26:28 +02:00
André Apitzsch 9ef942469a Package test, but don't install it 2017-09-22 19:12:26 +02:00
Yann Leboulanger 84060484c4 Remove more Gmail things 2017-09-19 15:52:53 +02:00
Yann Leboulanger 152be4473b Fix some strings for a better translation 2017-09-19 12:45:02 +02:00
André Apitzsch 0080c61014 Install data to new location 2017-09-16 12:18:22 +02:00
Yann Leboulanger 5c0538a202 Fix running make test 2017-09-15 15:11:55 +02:00
André Apitzsch 40770843ae test_pluginmanager: fix imports 2017-09-10 12:22:49 +02:00
André Apitzsch 3c31574cf9 Unittest: replace deprecated functions 2017-09-10 12:21:10 +02:00
André Apitzsch 89c7eb6e6a Rename gajim.common.gajim to avoid name conflicts 2017-08-18 20:03:20 +02:00
André Apitzsch 56d002ce34 Fix test imports 2017-08-18 19:48:48 +02:00
André Apitzsch efec098aef Use absolute imports 2017-08-18 19:48:48 +02:00
Yann Leboulanger 44a29e7a50 make tests run without gui 2017-08-09 22:09:01 +02:00
Yann Leboulanger b5c3b15c0f Fix running tests 2017-08-09 21:05:45 +02:00
André Apitzsch 68a57e7c91 Replace src by gajim 2017-07-02 17:25:46 +02:00
Yann Leboulanger 0d3ce37b27 fix a test. Fixes #8660 2017-06-14 20:25:06 +02:00
Yann Leboulanger e5b69fae5c start running tests 2016-10-10 15:22:51 +02:00
tmolitor 065d08cebf Honor profile given on commandline for plugin dir and history db and more.
Also added new property 'additional_data' to message event objects. Changes to this attribute (a dict) are passed on from event to event and are also written to the history db as json string (reading of those values isn't implemented yet).
2016-09-05 00:01:29 +02:00
Yann Leboulanger cf40035a65 start fixing last test. still a problem with sessions 2013-04-08 18:57:39 +02:00
Yann Leboulanger d2992815ee re-enable test suite 2013-04-07 23:41:15 +02:00
Yann Leboulanger e03b3c35b6 fix traceback handling
fix struc and sha1 usage (use bytes instead of string)
2013-01-05 00:03:36 +01:00
Yann Leboulanger 912f0e921d fix imports and many py3 changements 2013-01-02 13:54:02 +01:00
Yann Leboulanger d27591076f fix exception handling 2013-01-01 23:18:36 +01:00
Yann Leboulanger 414e349345 python uses unicode internally 2013-01-01 19:44:25 +01:00
Yann Leboulanger e71188a6fa print -> print() 2013-01-01 19:36:56 +01:00