summaryrefslogtreecommitdiff
path: root/service/test/unit
diff options
context:
space:
mode:
authorBruno Wagner <bwagner@riseup.net>2016-01-13 16:57:50 -0200
committerBruno Wagner <bwagner@riseup.net>2016-01-13 16:57:50 -0200
commite84b13eb3821a497eac6fdec3ad7644495a2ab58 (patch)
tree3aba8ecd1f343549aed86290dfb2c172aa69cea1 /service/test/unit
parent8046a75c14778cff19c0543b2df9b70d1a168e3f (diff)
Changed attachment error print with a logger
Diffstat (limited to 'service/test/unit')
-rw-r--r--service/test/unit/resources/test_attachments_resource.py3
1 files changed, 3 insertions, 0 deletions
diff --git a/service/test/unit/resources/test_attachments_resource.py b/service/test/unit/resources/test_attachments_resource.py
index d7a35351..8beb02fa 100644
--- a/service/test/unit/resources/test_attachments_resource.py
+++ b/service/test/unit/resources/test_attachments_resource.py
@@ -1,5 +1,6 @@
import json
import unittest
+import logging
from mock import patch, MagicMock
from mockito import mock, when, verify
@@ -9,6 +10,8 @@ from twisted.web.test.requesthelper import DummyRequest
from pixelated.resources.attachments_resource import AttachmentsResource
from test.unit.resources import DummySite
+logging.getLogger('pixelated.resources.attachments_resource').addHandler(logging.NullHandler())
+
class AttachmentsResourceTest(unittest.TestCase):