mirror of
https://github.com/samsonjs/vdirsyncer.git
synced 2026-04-02 10:15:50 +00:00
Fix bug in repr of davstorage
This commit is contained in:
parent
22490119b7
commit
62340814fa
2 changed files with 8 additions and 0 deletions
|
|
@ -178,3 +178,7 @@ class StorageTests(object):
|
|||
(href, etag) for href, item, etag
|
||||
in s.get_multi(href for href, etag in iteritems(info))
|
||||
) == info
|
||||
|
||||
def test_repr(self):
|
||||
s = self._get_storage()
|
||||
assert self.storage_class.__name__ in repr(s)
|
||||
|
|
|
|||
|
|
@ -264,6 +264,10 @@ class DavStorage(Storage):
|
|||
useragent, dav_header=self.dav_header)
|
||||
self.collection = collection
|
||||
|
||||
# defined for _repr_attributes
|
||||
self.username = username
|
||||
self.url = url
|
||||
|
||||
@classmethod
|
||||
def discover(cls, url, **kwargs):
|
||||
if kwargs.pop('collection', None) is not None:
|
||||
|
|
|
|||
Loading…
Reference in a new issue