Skip to content

Commit

Permalink
Merge pull request #137 from moggers87/fix-test-deps
Browse files Browse the repository at this point in the history
Fix test deps
  • Loading branch information
moggers87 committed Feb 15, 2020
2 parents a3bea3c + d22a4ad commit 6a0345a
Show file tree
Hide file tree
Showing 10 changed files with 10 additions and 14 deletions.
3 changes: 1 addition & 2 deletions setup.py
Expand Up @@ -11,8 +11,7 @@
]

tests_require = [
'jinja2',
'mock',
'jinja2<3.0',
]

extras_require = {
Expand Down
2 changes: 1 addition & 1 deletion tests/command_tests.py
@@ -1,10 +1,10 @@
from tempfile import mkdtemp
from unittest.mock import Mock, patch
import mailbox
import os
import sys

from click import testing
from mock import Mock, patch

from salmon import queue, commands, encoding, mail, routing, utils

Expand Down
2 changes: 1 addition & 1 deletion tests/confirm_tests.py
@@ -1,4 +1,4 @@
from mock import Mock, patch
from unittest.mock import Mock, patch

from salmon import mail, view
from salmon.confirm import ConfirmationEngine, ConfirmationStorage
Expand Down
2 changes: 1 addition & 1 deletion tests/encoding_tests.py
@@ -1,10 +1,10 @@
# -*- coding: utf-8 -*-
from email import encoders
from email.utils import parseaddr
from unittest.mock import Mock, patch
import mailbox
import os

from mock import Mock, patch
import chardet

from salmon import encoding
Expand Down
3 changes: 1 addition & 2 deletions tests/handler_tests.py
@@ -1,7 +1,6 @@
from unittest.mock import Mock
import sys

from mock import Mock

from salmon import mail, utils
from salmon.routing import Router

Expand Down
3 changes: 1 addition & 2 deletions tests/queue_tests.py
@@ -1,9 +1,8 @@
from unittest.mock import Mock, patch
import mailbox
import os
import shutil

from mock import Mock, patch

from salmon import mail, queue

from .setup_env import SalmonTestCase
Expand Down
2 changes: 1 addition & 1 deletion tests/routing_tests.py
@@ -1,4 +1,4 @@
from mock import Mock, patch
from unittest.mock import Mock, patch

from salmon import routing
from salmon.mail import MailRequest
Expand Down
2 changes: 1 addition & 1 deletion tests/server_tests.py
@@ -1,8 +1,8 @@
# Copyright (C) 2008 Zed A. Shaw. Licensed under the terms of the GPLv3.
from unittest.mock import Mock, call, patch
import socket
import sys

from mock import Mock, call, patch
import lmtpd

from salmon import mail, queue, routing, server
Expand Down
2 changes: 1 addition & 1 deletion tests/testing_tests.py
@@ -1,4 +1,4 @@
from mock import Mock, patch
from unittest.mock import Mock, patch

from salmon.testing import RouterConversation, assert_in_state, clear_queue, delivered, queue, relay

Expand Down
3 changes: 1 addition & 2 deletions tests/utils_tests.py
@@ -1,9 +1,8 @@
from tempfile import mkdtemp
from unittest import TestCase
from unittest.mock import patch
import os

from mock import patch

from salmon import utils

from .setup_env import SalmonTestCase
Expand Down

0 comments on commit 6a0345a

Please sign in to comment.