From 4e406c849ad435c665eeeec112b65049dc40ca5e Mon Sep 17 00:00:00 2001 From: fkantelberg Date: Sun, 12 Jan 2020 22:16:13 +0100 Subject: [PATCH] Mute radicale logger for testing --- base_dav/radicale/collection.py | 4 ---- base_dav/tests/test_base_dav.py | 2 ++ 2 files changed, 2 insertions(+), 4 deletions(-) diff --git a/base_dav/radicale/collection.py b/base_dav/radicale/collection.py index 5fd10cf5..9a37c5bf 100644 --- a/base_dav/radicale/collection.py +++ b/base_dav/radicale/collection.py @@ -130,7 +130,3 @@ class Collection(BaseCollection): def list(self): return self.collection.dav_list(self.path_components) - - @classmethod - def create_collection(cls, href, collection=None, props=None): - return None diff --git a/base_dav/tests/test_base_dav.py b/base_dav/tests/test_base_dav.py index b76cec11..6ed014f9 100644 --- a/base_dav/tests/test_base_dav.py +++ b/base_dav/tests/test_base_dav.py @@ -7,6 +7,7 @@ from unittest import mock from urllib.parse import urlparse from odoo.tests.common import TransactionCase +from odoo.tools import mute_logger from ..controllers.main import PREFIX from ..controllers.main import Main as Controller @@ -18,6 +19,7 @@ RADICALE_PATH = MODULE_PATH + ".radicale" ADMIN_PASSWORD = "RadicalePa$$word" +@mute_logger("radicale") @mock.patch(CONTROLLER_PATH + ".request") @mock.patch(RADICALE_PATH + ".auth.request") @mock.patch(RADICALE_PATH + ".collection.request")