diff --git a/radicale/tests/static/propfind1.xml b/radicale/tests/static/propfind1.xml new file mode 100644 index 0000000..1535f7f --- /dev/null +++ b/radicale/tests/static/propfind1.xml @@ -0,0 +1,6 @@ + + + + + + \ No newline at end of file diff --git a/radicale/tests/static/proppatch1.xml b/radicale/tests/static/proppatch1.xml new file mode 100644 index 0000000..c549dec --- /dev/null +++ b/radicale/tests/static/proppatch1.xml @@ -0,0 +1,8 @@ + + + + + #BADA55 + + + \ No newline at end of file diff --git a/radicale/tests/test_base.py b/radicale/tests/test_base.py index acb06ff..2e39fc4 100644 --- a/radicale/tests/test_base.py +++ b/radicale/tests/test_base.py @@ -20,24 +20,20 @@ Radicale tests with simple requests. """ import logging +import os import posixpath import shutil import tempfile +import pytest from radicale import Application, config from . import BaseTest from .helpers import get_file_content -class BaseRequests: +class BaseRequestsMixIn: """Tests with simple requests.""" - storage_type = None - - def setup(self): - self.configuration = config.load() - self.configuration.set("storage", "type", self.storage_type) - self.logger = logging.getLogger("radicale_test") def test_root(self): """GET request at "/".""" @@ -219,6 +215,23 @@ class BaseRequests: assert "href>%s%s#BADA55/calendar.ics/journal1.ics/calendar.ics/journal2.ics