1
0
Fork 0
mirror of https://github.com/Kozea/Radicale.git synced 2025-09-15 20:36:55 +00:00

Tests: Use absolute imports

This commit is contained in:
Unrud 2020-01-15 18:44:00 +01:00
parent 428e4be0b8
commit ed72e697de
7 changed files with 13 additions and 21 deletions

View file

@ -24,9 +24,8 @@ import shutil
import tempfile
from radicale import Application, config
from .helpers import get_file_content
from .test_base import BaseTest
from radicale.tests.helpers import get_file_content
from radicale.tests.test_base import BaseTest
class TestBaseRightsRequests(BaseTest):
@ -144,8 +143,8 @@ permissions: Rr""")
def test_custom(self):
"""Custom rights management."""
self._test_rights("tests.custom.rights", "", "/", "r", 401)
self._test_rights("tests.custom.rights", "", "/tmp", "r", 207)
self._test_rights("radicale.tests.custom.rights", "", "/", "r", 401)
self._test_rights("radicale.tests.custom.rights", "", "/tmp", "r", 207)
def test_collections_and_items(self):
"""Test rights for creation of collections, calendars and items.