summaryrefslogtreecommitdiff
path: root/service/test
diff options
context:
space:
mode:
authorPixpoa pairing <pixpoapairing@pixelated-project.org>2015-01-21 19:49:22 -0200
committerPixpoa pairing <pixpoapairing@pixelated-project.org>2015-01-21 19:49:22 -0200
commit1f6e072aad07e1678187bd176c24eca0182a2da2 (patch)
treed4cc50c00b87b655c4d0fe00f60cedd388ee1958 /service/test
parent70e6d825d6b3e6804d42f931f30a18445650f9b2 (diff)
Fixed mock leftover problem in bitmask session test
Diffstat (limited to 'service/test')
-rw-r--r--service/test/unit/bitmask_libraries/session_test.py8
1 files changed, 8 insertions, 0 deletions
diff --git a/service/test/unit/bitmask_libraries/session_test.py b/service/test/unit/bitmask_libraries/session_test.py
index 32d92f25..0aa7861a 100644
--- a/service/test/unit/bitmask_libraries/session_test.py
+++ b/service/test/unit/bitmask_libraries/session_test.py
@@ -14,12 +14,20 @@
# You should have received a copy of the GNU Affero General Public License
# along with Pixelated. If not, see <http://www.gnu.org/licenses/>.
from mock import patch
+from mock import MagicMock
from pixelated.bitmask_libraries.session import LeapSession
from abstract_leap_test import AbstractLeapTest
class SessionTest(AbstractLeapTest):
+
+ def setUp(self):
+ self.mail_fetcher_mock = MagicMock()
+
+ def tearDown(self):
+ self.mail_fetcher_mock = MagicMock()
+
def test_background_jobs_are_started(self):
self.config.start_background_jobs = True