From 9c32f8a28c0e555537ee0c8236e099a6990dacbc Mon Sep 17 00:00:00 2001 From: Lucas Hoffmann Date: Wed, 15 Aug 2018 16:33:44 +0200 Subject: Use unittest.mock from the stdlib It was added to the stdlib in py3.3 and we already require 3.5. --- tests/db/test_envelope.py | 3 +-- tests/db/test_message.py | 3 +-- tests/db/test_thread.py | 3 +-- tests/db/test_utils.py | 2 +- 4 files changed, 4 insertions(+), 7 deletions(-) (limited to 'tests/db') diff --git a/tests/db/test_envelope.py b/tests/db/test_envelope.py index f14b8594..873f0927 100644 --- a/tests/db/test_envelope.py +++ b/tests/db/test_envelope.py @@ -19,8 +19,7 @@ import email.policy import os import tempfile import unittest - -import mock +from unittest import mock from alot.db import envelope diff --git a/tests/db/test_message.py b/tests/db/test_message.py index 6322a77e..2f7a6b8c 100644 --- a/tests/db/test_message.py +++ b/tests/db/test_message.py @@ -15,8 +15,7 @@ # along with this program. If not, see . import unittest - -import mock +from unittest import mock from alot import account from alot.db import message diff --git a/tests/db/test_thread.py b/tests/db/test_thread.py index e3e398eb..8c78a026 100644 --- a/tests/db/test_thread.py +++ b/tests/db/test_thread.py @@ -17,8 +17,7 @@ """Tests for the alot.db.thread module.""" import datetime import unittest - -import mock +from unittest import mock from alot.db import thread diff --git a/tests/db/test_utils.py b/tests/db/test_utils.py index 59a8e5b6..ac6555c0 100644 --- a/tests/db/test_utils.py +++ b/tests/db/test_utils.py @@ -17,9 +17,9 @@ import os.path import shutil import tempfile import unittest +from unittest import mock import gpg -import mock from alot import crypto from alot.db import utils -- cgit v1.2.3