mirror of
https://github.com/OCA/server-backend.git
synced 2025-02-18 09:52:42 +02:00
Mute radicale logger for testing
This commit is contained in:
@@ -130,7 +130,3 @@ class Collection(BaseCollection):
|
|||||||
|
|
||||||
def list(self):
|
def list(self):
|
||||||
return self.collection.dav_list(self.path_components)
|
return self.collection.dav_list(self.path_components)
|
||||||
|
|
||||||
@classmethod
|
|
||||||
def create_collection(cls, href, collection=None, props=None):
|
|
||||||
return None
|
|
||||||
|
|||||||
@@ -7,6 +7,7 @@ from unittest import mock
|
|||||||
from urllib.parse import urlparse
|
from urllib.parse import urlparse
|
||||||
|
|
||||||
from odoo.tests.common import TransactionCase
|
from odoo.tests.common import TransactionCase
|
||||||
|
from odoo.tools import mute_logger
|
||||||
|
|
||||||
from ..controllers.main import PREFIX
|
from ..controllers.main import PREFIX
|
||||||
from ..controllers.main import Main as Controller
|
from ..controllers.main import Main as Controller
|
||||||
@@ -18,6 +19,7 @@ RADICALE_PATH = MODULE_PATH + ".radicale"
|
|||||||
ADMIN_PASSWORD = "RadicalePa$$word"
|
ADMIN_PASSWORD = "RadicalePa$$word"
|
||||||
|
|
||||||
|
|
||||||
|
@mute_logger("radicale")
|
||||||
@mock.patch(CONTROLLER_PATH + ".request")
|
@mock.patch(CONTROLLER_PATH + ".request")
|
||||||
@mock.patch(RADICALE_PATH + ".auth.request")
|
@mock.patch(RADICALE_PATH + ".auth.request")
|
||||||
@mock.patch(RADICALE_PATH + ".collection.request")
|
@mock.patch(RADICALE_PATH + ".collection.request")
|
||||||
|
|||||||
Reference in New Issue
Block a user