Commit Graph

29 Commits

Author SHA1 Message Date
Unrud 402bd3580e Tests: Simplify HTTP status check 2022-01-16 13:07:56 +01:00
Unrud 4b5165dc42 Extract method configure 2021-12-10 20:54:04 +01:00
Unrud bbaf0ebd8c Change name in file header 2021-12-09 16:55:46 +01:00
Unrud 60f25bf19a Type hints for tests 2021-09-26 22:24:45 +02:00
Unrud cecb17df03 More type hints 2021-09-26 22:24:45 +02:00
Unrud 7642d72919 Improve variable names 2020-09-26 22:08:21 +02:00
Unrud 80e8750c8a Add more tests 2020-09-14 18:54:02 +02:00
Tom Hacohen d3bb19800c
Web: add support for the POST HTTP method. (#1097)
* Web: add support for the POST HTTP method.

This patch adds support for POST in addition to the already supported GET.

This is needed for implementing more complex web modules that also
support configuration modifications and advanced queries.

* Base web: return METHOD_NOT_ALLOWED when method isn't implemenetd.

Co-authored-by: Unrud <Unrud@users.noreply.github.com>
2020-09-14 18:17:45 +02:00
Unrud d3b90506f5 Add tests for conflicting UIDs and overwriting of items 2020-05-24 13:19:29 +02:00
Unrud 9bd852ba5e Remove duplicated code 2020-04-22 19:20:36 +02:00
Unrud d3b632e123 Remove unused code 2020-02-20 10:41:33 +01:00
Unrud fc180266d5 Improve tests
- Parse and verify XML responses
- Extract methods for common requests
2020-01-20 09:47:51 +01:00
Unrud 866aa34f54 Cosmetic changes 2020-01-19 21:07:54 +01:00
Unrud 0fb02cd026 Cosmetic changes (pylint) 2020-01-17 12:59:14 +01:00
Unrud ed72e697de Tests: Use absolute imports 2020-01-15 18:44:00 +01:00
Unrud 63e6d091b9 Update copyright 2019-06-17 04:13:24 +02:00
Unrud 14b46c04bf Create configuration for isort 2019-06-15 09:01:55 +02:00
Braxton Plaxco 27185f7291 Get `python3 ./setup.py test` to pass cleanly
~ B'ezrat Hashem ~
2019-06-15 08:49:05 +02:00
Unrud e4ee569bd2 Measure coverage of forked processes 2018-09-09 07:28:36 +02:00
Unrud 5e0a387ed9 remove whitespace before email 2018-09-04 03:33:47 +02:00
Unrud 8869b34470 refactor 2018-08-28 16:19:43 +02:00
Unrud 09644414b5 set logging level to DEBUG for tests 2018-08-21 18:43:44 +02:00
Unrud c657dda753 Add clarifying comment 2018-08-16 07:59:57 +02:00
Unrud d7255df768 Tests: Remove start_response method 2018-08-16 07:59:57 +02:00
Unrud 24815255be Use wsgi.errors to for errors 2018-08-16 07:59:56 +02:00
Unrud 54b9995e22 Use module-wide logger and remove logging config 2018-08-16 07:59:55 +02:00
Unrud 01ea0a3c40 Capture log messages during tests
The log messages help finding problems with failed tests.
2017-05-30 05:44:02 +02:00
Guillaume Ayoub 3e0c8cf285 Update copyright years 2017-05-27 17:28:07 +02:00
Florian Mounier 9056561211 Move test inside radicale 2016-07-07 14:30:10 +02:00