Commit 888b5b0d authored by Florian Fuchs's avatar Florian Fuchs

modified mailman.client imports to mailmanclient

parent 393ac6c9
......@@ -35,5 +35,6 @@ setup(
packages = find_packages('src'),
package_dir = {'': 'src'},
include_package_data = True,
install_requires = ['django-social-auth>=0.6.7']
install_requires = ['django-social-auth>=0.6.7',
'mailmanclient']
)
......@@ -21,7 +21,7 @@ import logging
from django.conf import settings
from django.db import models
from django.http import Http404
from mailman.client import Client, MailmanConnectionError
from mailmanclient import Client, MailmanConnectionError
from urllib2 import HTTPError
......
......@@ -24,7 +24,7 @@ from postorius.auth.decorators import (list_owner_required,
list_moderator_required)
from postorius.models import (Domain, List, Member, MailmanUser,
MailmanApiError, Mailman404Error)
from mailman.client import Client
from mailmanclient import Client
@list_owner_required
......
......@@ -46,7 +46,7 @@ class ListMembersViewTest(unittest.TestCase):
from postorius.views import ListMembersView
# test get_list
view = ListMembersView()
with patch('mailman.client.Client.get_list') as mock:
with patch('mailmanclient.Client.get_list') as mock:
mock.return_value = self.mock_list
the_list = view._get_list('foolist@example.org')
self.assertEqual(the_list.members[0].address, 'les@example.org')
......@@ -57,7 +57,7 @@ class ListMembersViewTest(unittest.TestCase):
from postorius.views import ListMembersView
# test get_list
view = ListMembersView()
with patch('mailman.client.Client.get_list') as mock:
with patch('mailmanclient.Client.get_list') as mock:
mock.return_value = self.mock_list
the_list = view._get_list('foolist@example.org')
request = self.request_factory.get(
......@@ -71,7 +71,7 @@ class ListMembersViewTest(unittest.TestCase):
"""Test response status code by user status.
"""
from postorius.views import ListMembersView
with patch('mailman.client.Client.get_list') as mock:
with patch('mailmanclient.Client.get_list') as mock:
mock.return_value = self.mock_list
request = self.request_factory.get(
'/lists/foolist@example.org/members/')
......
......@@ -38,7 +38,7 @@ from django.utils.decorators import method_decorator
from django.utils.translation import gettext as _
from urllib2 import HTTPError
from mailman.client import Client
from mailmanclient import Client
from postorius import utils
from postorius.models import (Domain, List, Member, MailmanUser,
MailmanApiError, Mailman404Error)
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment