summaryrefslogtreecommitdiff
path: root/tests/commands
diff options
context:
space:
mode:
Diffstat (limited to 'tests/commands')
-rw-r--r--tests/commands/test_envelope.py3
-rw-r--r--tests/commands/test_global.py3
-rw-r--r--tests/commands/test_init.py3
-rw-r--r--tests/commands/test_thread.py3
-rw-r--r--tests/commands/utils_tests.py2
5 files changed, 5 insertions, 9 deletions
diff --git a/tests/commands/test_envelope.py b/tests/commands/test_envelope.py
index 76aa7e88..a5d86d94 100644
--- a/tests/commands/test_envelope.py
+++ b/tests/commands/test_envelope.py
@@ -21,8 +21,7 @@ import os
import tempfile
import textwrap
import unittest
-
-import mock
+from unittest import mock
from alot.commands import envelope
from alot.db.envelope import Envelope
diff --git a/tests/commands/test_global.py b/tests/commands/test_global.py
index 9ef3d957..23c216ab 100644
--- a/tests/commands/test_global.py
+++ b/tests/commands/test_global.py
@@ -20,8 +20,7 @@ import logging
import os
import tempfile
import unittest
-
-import mock
+from unittest import mock
from alot.commands import globals as g_commands
diff --git a/tests/commands/test_init.py b/tests/commands/test_init.py
index a2b358ff..29828b9a 100644
--- a/tests/commands/test_init.py
+++ b/tests/commands/test_init.py
@@ -4,8 +4,7 @@
import argparse
import unittest
-
-import mock
+from unittest import mock
from alot import commands
from alot.commands import thread
diff --git a/tests/commands/test_thread.py b/tests/commands/test_thread.py
index 3d4268aa..335ca388 100644
--- a/tests/commands/test_thread.py
+++ b/tests/commands/test_thread.py
@@ -6,8 +6,7 @@
"""Test suite for alot.commands.thread module."""
import email
import unittest
-
-import mock
+from unittest import mock
from alot.commands import thread
from alot.account import Account
diff --git a/tests/commands/utils_tests.py b/tests/commands/utils_tests.py
index 0642ad32..63863db8 100644
--- a/tests/commands/utils_tests.py
+++ b/tests/commands/utils_tests.py
@@ -18,9 +18,9 @@ import tempfile
import os
import shutil
import unittest
+from unittest import mock
import gpg
-import mock
from alot import crypto
from alot import errors