You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
This method yields a davclient object based on ...
* environment variables
* config file
* test config
For tests, rigging up and tearing down test servers is now done through davclient context. This should make it easy to make doctests.
Copy file name to clipboardExpand all lines: CHANGELOG.md
+5-3Lines changed: 5 additions & 3 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -41,12 +41,14 @@ This will be the last minor release before 2.0. The scheduling support has been
41
41
42
42
### Added
43
43
44
+
*`auto_conn` is more complete now - it could already read from test config, now it can read from environment (including environment variable for reading from test config and for locating the config file). While the `auto_conn` itself is tested in the functional tests, the code for reading the config file (and all the corner cases) is not tested. It's allowable with a yaml config file, but the yaml module is not included in the dependencies yet ... so late imports as for now.
44
45
* New option `event.save(all_recurrences=True)` to edit the whole series when saving a modified recurrence. Part of https://github.com/python-caldav/caldav/pull/500
45
-
* New methods `Event.set_dtend` and `CalendarObjectResource.set_end`. by @tobixen in https://github.com/python-caldav/caldav/pull/499
46
+
* New methods `Event.set_dtend` and `CalendarObjectResource.set_end`. https://github.com/python-caldav/caldav/pull/499
46
47
47
-
### Refactoring
48
+
### Refactoring and tests
48
49
49
50
* Partially tossed out all internal usage of vobject, https://github.com/python-caldav/caldav/issues/476. Refactoring and removing unuseful code. Parts of this work was accidentally committed directly to master, 2f61dc7adbe044eaf43d0d2c78ba96df09201542, the rest was piggybaced in through https://github.com/python-caldav/caldav/pull/500.
51
+
* Server-specific setup- and teardown-methods (used for spinning up test servers in the tests) is now executed through the DAVClient context manager. This will allow doctests to run easily.
50
52
51
53
### Time spent and roadmap
52
54
@@ -80,7 +82,7 @@ Python 3.7 is no longer tested (dependency problems) - but it should work. Plea
80
82
81
83
* Minor code cleanups by github user @ArtemIsmagilov in https://github.com/python-caldav/caldav/pull/456
82
84
* The very much overgrown `objects.py`-file has been split into three - https://github.com/python-caldav/caldav/pull/483
83
-
* Refactor compatibility issues by @tobixen in https://github.com/python-caldav/caldav/pull/484
## This is being moved from my plann library. The code itself will be introduced into caldav 2.0, but proper test code and documentation will come in a later release (2.1?)
4
+
5
+
6
+
## TODO TODO TODO - write test code for all the corner cases
7
+
## TODO TODO TODO - write documentation of config format
Copy file name to clipboardExpand all lines: tests/test_caldav.py
+56-1Lines changed: 56 additions & 1 deletion
Original file line number
Diff line number
Diff line change
@@ -8,9 +8,12 @@
8
8
belong in test_caldav_unit.py
9
9
"""
10
10
importcodecs
11
+
importjson
11
12
importlogging
13
+
importos
12
14
importrandom
13
15
importsys
16
+
importtempfile
14
17
importthreading
15
18
importtime
16
19
importuuid
@@ -41,6 +44,7 @@
41
44
fromcaldavimportcompatibility_hints
42
45
fromcaldav.davclientimportDAVClient
43
46
fromcaldav.davclientimportDAVResponse
47
+
fromcaldav.davclientimportget_davclient
44
48
fromcaldav.elementsimportcdav
45
49
fromcaldav.elementsimportdav
46
50
fromcaldav.elementsimportical
@@ -432,6 +436,56 @@
432
436
)
433
437
434
438
439
+
@pytest.mark.skipif(
440
+
notcaldav_servers,
441
+
reason="Requirement: at least one working server in conf.py. The tail object of the server list will be chosen, that is typically the LocalRadicale or LocalXandikos server.",
0 commit comments