summaryrefslogtreecommitdiffstats
path: root/tests
Commit message (Collapse)AuthorAgeFilesLines
* Ensure that we have not reintroduced the performance problem of T1988Christian Mollekopf2022-08-251-0/+17
|
* Extract check_event_conflcit_impl so we can test the reverse situationChristian Mollekopf2022-08-251-0/+1
|
* python2 translit doesn't work for meChristian Mollekopf2022-08-251-0/+4
| | | | | | (also not in master) The problem seems to be somehwere in sending data to/from iconv, because on the console it works, but not in python.
* Restore python2 compatChristian Mollekopf2022-08-256-38/+80
|
* Get the conflict detection algorithm test to passChristian Mollekopf2022-08-251-3/+10
| | | | | | | | | | | | Not sure how this ever passed. It seems to me the conflict detection algorithm is only built to detect a conflict between a recurring event and another event, and not between two recurrences if the initial events do not conflict, however, this is what the test attempts to test. I'm not certain the change in the algorithm actually works if the events were the other way around.
* Transliteration fixChristian Mollekopf2022-08-251-4/+6
|
* Python3: various compatibility fixesChristian Mollekopf2022-08-2517-271/+337
| | | | strings and imports
* [Python 3]exec to eval where exec(" var = ...")Christoph Erhardt2022-08-122-4/+4
| | | | | | | | | | | | | Summary: All exec() with (var = ...) exec() with (import ... ) or with (self.var = ..) or just with (function()) should work out of the box. If not worked as expected, they could be grouped and put into other diff s. Reviewers: #pykolab_developers, sicherha Reviewed By: #pykolab_developers, sicherha Differential Revision: https://git.kolab.org/D3638
* [Python3] changed module namesChristoph Erhardt2022-03-131-1/+4
| | | | | | | | | | | | | | | | | Summary: ConfigParser -> configparser urlparse -> urllib.parse Test Plan: todo: test with python2 Reviewers: #pykolab, #pykolab_developers, sicherha Reviewed By: #pykolab_developers, sicherha Subscribers: ghane, sicherha Differential Revision: https://git.kolab.org/D3355
* [Python 3] Use .items() instead of .iteritems()Christoph Erhardt2022-01-101-20/+20
| | | | | | | | | | | | | | | | | | Summary: .iteritems() was dropped in Python 3.0. This commit may have a negative performance impact on Python 2 since .items() returns a copy of the dictionary's item list. In Python 3, .items() returns a view object, so no performance drop should be noticeable there. Reviewers: machniak, mollekopf Reviewed By: mollekopf Subscribers: mollekopf Differential Revision: https://git.kolab.org/D3244
* [Python 3] Remove unnecessary occurrences of .keys()Christoph Erhardt2022-01-105-13/+13
| | | | | | | | | | | | | | | | Summary: The following cases are covered: * for key in dict * if key in dict * len(dict) This will make life easier for futurize. Reviewers: machniak, mollekopf Reviewed By: mollekopf Differential Revision: https://git.kolab.org/D3235
* [Python 3] Use print() as function instead of statementChristoph Erhardt2022-01-107-10/+10
| | | | | | | | | | | | | | | Summary: print() has been a function since Python 2.6; the old behaviour was dropped in Python 3.0. To use the named file argument in Python 2, we need to import print_function from the __future__ module. Reviewers: machniak, mollekopf Reviewed By: mollekopf Differential Revision: https://git.kolab.org/D3229
* [Python 3] Avoid use of 0 prefix for decimal literalsChristoph Erhardt2022-01-101-12/+12
| | | | | | | | Reviewers: machniak, mollekopf Reviewed By: mollekopf Differential Revision: https://git.kolab.org/D3223
* Implement ACT_STORE_AND_NOTIFY policy for resources, add webmail url to the ↵dev/resourcemanagement3Aleksander Machniak2021-12-161-3/+53
| | | | | | | | | | notification body Summary: Set the status to NEEDS_ACTION and don't send out an immediate reply to the organizer. Differential Revision: https://git.kolab.org/D3077
* Add footer_position option, so the added footer content can be also placed ↵Aleksander Machniak2021-11-031-0/+47
| | | | | | | | | | | | on top Reviewers: #pykolab_developers, vanmeeuwen Reviewed By: #pykolab_developers, vanmeeuwen Subscribers: #pykolab_developers Differential Revision: https://git.kolab.org/D2996
* T5641: Support CUTYPE=ROOM and CUTYPE=UNKNOWNAleksander Machniak2019-11-082-9/+17
|
* Fix unit tests after fix in utils.parse_ldap_uri()Aleksander Machniak2019-11-081-2/+2
|
* Be more forgiving on dummy entries in DTSTAMP,LAST-MODIFIED and CREATED ↵Aleksander Machniak2019-04-121-0/+18
| | | | | | | | (Bifrost#T123747) Instead of throwing an error when parsing iTip data that contains e.g. 00000000T000000, which will converted to datetime.time object by icalendar lib, convert them to datetime.date (1970-01-01 or "utc now").
* Fix mocking sendmail operationsAleksander Machniak2018-06-202-3/+4
|
* Fix unit tests on a system with no smtp serviceAleksander Machniak2018-06-202-0/+2
|
* T1221: Fix a "race" between Event and Todo properties_map dictAleksander Machniak2016-10-062-11/+12
| | | | | | | | | | | | Summary: Fixes T1221 Reviewers: #pykolab_developers, vanmeeuwen Reviewed By: #pykolab_developers, vanmeeuwen Maniphest Tasks: T1221 Differential Revision: https://git.kolab.org/D216
* T1461: Convert windows timezones into Olson format in iTipAleksander Machniak2016-09-301-1/+6
| | | | | | | | | | | | | | | | Summary: iCalendar is used to parse iTip data, but it does not support windows tz. Fixes T1461 Reviewers: #pykolab_developers, vanmeeuwen Reviewed By: #pykolab_developers, vanmeeuwen Subscribers: vanmeeuwen Maniphest Tasks: T1461 Differential Revision: https://git.kolab.org/D219
* Correct encodingJeroen van Meeuwen (Kolab Systems)2016-07-221-1/+1
|
* T1373: Fix untraslated "PENDING" label in invitation notificationAleksander Machniak2016-07-221-2/+2
| | | | | | | | | | | | | | | Summary: Fixes T1373 Note: This could be also fixed by using "NEEDS-ACTION" label in wallace intead of "PENDING". Reviewers: #pykolab_developers, vanmeeuwen Reviewed By: #pykolab_developers, vanmeeuwen Maniphest Tasks: T1373 Differential Revision: https://git.kolab.org/D198
* Trim spaces in surname/givenname/sn when generating mail/alias (#5360)Aleksander Machniak2016-05-132-0/+50
| | | | | | | | | | Reviewers: vanmeeuwen, #pykolab_developers Reviewed By: vanmeeuwen, #pykolab_developers Subscribers: vanmeeuwen Differential Revision: https://git.kolab.org/D136
* Add RDATE support (#5401)Aleksander Machniak2016-05-061-0/+44
| | | | | | | | | | | | Summary: Fixes #5401 Reviewers: #pykolab_developers, vanmeeuwen Reviewed By: #pykolab_developers, vanmeeuwen Subscribers: vanmeeuwen Differential Revision: https://git.kolab.org/D139
* Fix encoding errors also for cache updates (#5143)Aleksander Machniak2016-05-041-0/+46
| | | | | | | | | | Summary: The fix in a9aa9c2650 missed encoding conversion for UPDATE queries Reviewers: #pykolab_developers, vanmeeuwen Reviewed By: #pykolab_developers, vanmeeuwen Differential Revision: https://git.kolab.org/D138
* CS fixes according to PEP8 (ignored mostly line-length errors only)Aleksander Machniak2016-05-0449-510/+463
| | | | | | | | Summary: . Reviewers: #pykolab_developers Differential Revision: https://git.kolab.org/D134
* Event/Todo 'created' property is mandatory now, fixes unit tests (T1182)Aleksander Machniak2016-04-141-1/+1
| | | | | | | | | | | | Summary: Fixes T1182 Reviewers: #pykolab_developers, vanmeeuwen Reviewed By: #pykolab_developers, vanmeeuwen Maniphest Tasks: T1182 Differential Revision: https://git.kolab.org/D127
* Remove functional test from unit test suiteJeroen van Meeuwen (Kolab Systems)2015-12-281-9/+0
|
* Make event testing passJeroen van Meeuwen (Kolab Systems)2015-12-281-9/+10
|
* Complete coverageJeroen van Meeuwen (Kolab Systems)2015-12-281-1/+5
|
* Fix event testsJeroen van Meeuwen (Kolab Systems)2015-12-281-3/+3
|
* Fix wallace resources testsJeroen van Meeuwen (Kolab Systems)2015-12-281-24/+24
|
* Ensure the dtstamp is written out with a consistent timestamp parameterJeroen van Meeuwen (Kolab Systems)2015-12-281-0/+2
|
* Fix wallace tests, do not tests superprivileged itemsJeroen van Meeuwen (Kolab Systems)2015-12-281-16/+18
|
* Add _msg parameter to assertIsInstance()Jeroen van Meeuwen (Kolab Systems)2015-12-281-4/+7
| | | | Correct newline termination
* Fix note unit testsJeroen van Meeuwen (Kolab Systems)2015-12-281-3/+4
|
* Modify the auth_cache to use proper encodings (#5174)Jeroen van Meeuwen (Kolab Systems)2015-08-131-0/+115
|
* Catch errors in translation, append UTF-8 if not specified to avoid ↵Jeroen van Meeuwen (Kolab Systems)2015-08-131-1/+8
| | | | translation-related tracebacks
* Limit number of retries to send an update notification; fix the ↵Thomas Bruederli2015-05-261-0/+1
| | | | smtplib.SMTP.sendmail() mock to also return success status
* Improve proplist ordering routineThomas Bruederli2015-03-281-0/+8
|
* Fully implement pykolab.xml.Contact.to_dict() + add unit tests for it (#4974)Thomas Bruederli2015-03-281-0/+351
|
* Add wrapper class for kolabformat.Note (#4908)Thomas Bruederli2015-03-261-0/+95
|
* Improve object diff computation: ignore order of attribute lists (e.g. ↵Thomas Bruederli2015-03-241-0/+199
| | | | attachments, attendees)
* Add getter for related-to property of todo objectsThomas Bruederli2015-03-241-0/+4
|
* New *_CANCEL_DELETE policy to remove cancelled objects rather than flagging ↵Thomas Bruederli2015-03-111-2/+49
| | | | as cancelled (#4306)
* Force RRULE UNTIL attribute to be a UTC date/time but also account for it to ↵Thomas Bruederli2015-03-101-1/+2
| | | | be a date-only value
* Fix date conflict check (#4767)Thomas Bruederli2015-03-091-0/+1
|
* Store reservations for single occurrences with the same UID in one object ↵Thomas Bruederli2015-03-022-6/+39
| | | | (#4766)