Hugo Osvaldo Barrera
b5d3b7e578
Apply auto-fixes for RUF rule
2025-08-29 10:17:44 +02:00
Hugo Osvaldo Barrera
b50f9def00
Ensure type annotations are backwards compatible
...
Related: https://github.com/pimutils/todoman/issues/544
2023-10-29 16:04:23 +01:00
Hugo Osvaldo Barrera
301aa0e16f
pre-commit run --all
2023-09-24 12:41:56 +02:00
Hugo Osvaldo Barrera
889183ec89
I think this makes sense
2021-08-18 18:20:04 +02:00
Hugo Osvaldo Barrera
d2d41e5df1
Use black to auto-format the codebase
2021-05-06 19:28:54 +02:00
Дилян Палаузов
bf67af609e
Substitute the d: prefix for the DAV: namespace with no prefix (default namespace)
2021-03-09 22:23:12 +02:00
Hugo Osvaldo Barrera
b1b4dd92fe
Sort imports
...
I don't want to ever have to sort imports again. It's a poor use of
developer time. Automate this with a pre-commit hook, and check this on
CI.
Developers: I suggest you configure your editor to use
`reorder_python_imports`. It uses the standard sorting, and detects
first/third party libs well.
2020-06-09 14:34:45 +02:00
Markus Unterwaditzer
3112e6899e
Remove invalid ascii chars from xml, fix #626 ( #668 )
...
* Remove invalid ascii chars from xml, fix #626
* Add changelog
* Remove unused imports
* Fix errors on older Python versions
* Fix tests
2017-09-13 20:55:03 +02:00
Markus Unterwaditzer
f7076118df
Stylefixes
2016-07-25 04:58:10 +02:00
Markus Unterwaditzer
140af81ead
Fix XML querying bug
...
Fix #480
2016-07-25 04:58:10 +02:00
Markus Unterwaditzer
f0e842ac41
Split up caldav and carddav tests
2015-07-25 03:30:47 +02:00
Markus Unterwaditzer
263a45e2a5
Fix unicode URLs
2015-06-12 02:51:34 +02:00
Markus Unterwaditzer
2aaeeb4e6b
Merge branch 'tolerant-xml-parser'
2015-05-21 08:10:15 +02:00
Markus Unterwaditzer
209648a936
Make XML parsing more tolerant re invalid chars
...
Fix #207
2015-05-21 08:05:59 +02:00
Markus Unterwaditzer
4cfca383d9
Small refactor
2015-05-19 13:29:49 +02:00
Markus Unterwaditzer
18103afcc2
Fix tests
2015-02-26 12:13:20 +01:00
Markus Unterwaditzer
5ce0d97f91
Remove copyright headers
2015-01-21 13:02:30 +01:00
Markus Unterwaditzer
a55d1f2d03
Re-enable baikal tests
2015-01-04 13:43:53 +01:00
Markus Unterwaditzer
bf81c769f8
Remove superfluous testcase.
2014-12-31 01:42:52 +01:00
Markus Unterwaditzer
40b64139fd
Add item_types test
2014-12-28 00:40:35 +01:00
Markus Unterwaditzer
291edd7be0
Merge branch 'encodings'
...
Conflicts:
vdirsyncer/storage/dav.py
2014-12-08 20:13:41 +01:00
Markus Unterwaditzer
61bf23588d
Refactor!
2014-12-08 16:32:23 +01:00
Markus Unterwaditzer
741045c1be
Rewrite DAV storages' encoding behavior
...
This is more explicit than the old behavior. See
https://github.com/Kozea/Radicale/issues/128 for the discussion that led
to this.
2014-12-07 15:11:42 +01:00
Markus Unterwaditzer
566a988f32
Remove indirection for get_storage_args fixture
2014-12-01 00:11:23 +01:00
Markus Unterwaditzer
ca30542801
Test against more item types
2014-11-04 21:16:37 +01:00
Markus Unterwaditzer
2e2082fb55
Make _create_bogus_item a fixture.
...
Also rename the "storage" fixture to "get_storage".
2014-08-06 22:03:30 +02:00
Markus Unterwaditzer
eb1431e5db
Fix all known URL-quoting problems
...
- Fix #49 -- The old fix caused problems with other servers. The new
behavior only decodes ``@`` characters.
- ``@`` is now not used when generating a new href, as some servers seem
to have problems with it (http://sabre.io/dav/character-encoding/ ).
This behavior is configurable via the ``unsafe_href_chars`` parameters
for DAV storages, and is disabled in the testsuite for Radicale and
ownCloud.
- Decoding of hrefs is also done twice for CarddavStorage.list because
of owncloud/contacts#581 . Vdirsyncer has behaved like that before, but
not intentionally.
- Storages now don't share their ``_get_href`` methods anymore.
2014-08-06 16:43:23 +02:00
Markus Unterwaditzer
574869f619
ownCloud 7 now does If-Match headers right
2014-07-23 14:21:10 +02:00
Markus Unterwaditzer
c750561fb8
Use more fixtures
2014-07-06 23:22:02 +02:00
Markus Unterwaditzer
0dfcefbfd3
Use PROPFIND for carddav queries because of Zimbra
...
Fix #83
Fix #84
2014-07-05 14:09:30 +02:00
Markus Unterwaditzer
201c840e88
Import beautification
2014-06-19 00:07:54 +02:00
Markus Unterwaditzer
77a8cf8ff7
Fix logic
2014-06-15 12:07:22 +02:00
Markus Unterwaditzer
fadff19752
Make CaldavStorage.list faster
2014-06-15 11:15:13 +02:00
Markus Unterwaditzer
d46795bdb7
Simplify error handling
2014-05-26 23:02:24 +02:00
Markus Unterwaditzer
c1eb55c241
Copyright and contributor stuff
...
Fix #60
2014-05-22 12:50:43 +02:00
Markus Unterwaditzer
91de80cef0
Also test carddav about this
2014-05-18 10:13:52 +02:00
Markus Unterwaditzer
61ef8b3ee3
Use icalendar for parsing
2014-05-15 15:14:06 +02:00
Markus Unterwaditzer
aff7a93582
owncloud requires UIDs
2014-05-14 16:10:33 +02:00
Markus Unterwaditzer
b87abfa4c0
Syncronization without UIDs!
2014-05-14 15:08:31 +02:00
Markus Unterwaditzer
9616f0bbfe
Move "obscure" exceptions into their own modules
2014-05-03 00:17:39 +02:00
Markus Unterwaditzer
bb579a8879
Fix some imports
2014-05-02 19:30:38 +02:00
Markus Unterwaditzer
cef68b5d09
Flake8
2014-04-16 00:45:13 +02:00
Markus Unterwaditzer
6a9de56df2
Fix more tests
2014-04-14 14:45:25 +02:00
Markus Unterwaditzer
2156051056
More tests
2014-04-13 10:30:23 +02:00
Markus Unterwaditzer
720174a205
Remove debug print statement
...
Yes, shame on me.
2014-04-13 09:28:49 +02:00
Markus Unterwaditzer
b8faf6ffdb
Simplify setup code for dav tests
2014-04-12 16:51:12 +02:00
Markus Unterwaditzer
9d9f193513
Move testserver-specific code into different repos
2014-04-12 16:23:32 +02:00
Markus Unterwaditzer
ccb4e42ce2
Polish up CaldavStorage.list
2014-04-12 14:17:37 +02:00
Markus Unterwaditzer
b6e3490980
Add test for timerange
2014-04-12 13:50:08 +02:00
Markus Unterwaditzer
0aedeb472e
Move allowed failures settings to travis
2014-04-05 12:47:28 +02:00