python-caldav / caldav

Apache License 2.0
326 stars 98 forks source link

use pytest instead of nosetests #197

Closed azmeuk closed 2 years ago

azmeuk commented 2 years ago

This patch:

Before nose can be totally removed, it is needed to replace the SkipTest exception with the pytest @pytest.mark.skip or @pytest.mark.skipif decorator equivalent. https://github.com/python-caldav/caldav/blob/6b791de7ccae48901ada8318158ae824f8f36982/tests/test_caldav.py#L25 Though it is not as simple as I expected so I havn't implement this in this patch.

Fixes partially #196

tobixen commented 2 years ago

Thanks a lot.

I wonder if the xandikos<0.2.4 still makes sense. As far as I remember, I was spending quite some efforts mending the test framework to support newer versions of xandikos. For all I know, support for elder xandikos may even be broken now. (I don't have time looking into it right now)

tobixen commented 2 years ago

Four checks passed. I guess that means the old xandikos version still works :-)