summaryrefslogtreecommitdiff
path: root/src/mailman/mta
diff options
context:
space:
mode:
authorBarry Warsaw2015-03-21 21:32:12 -0400
committerBarry Warsaw2015-03-21 21:32:12 -0400
commit783163c4e7eda6d5983bcca512db645c64dad349 (patch)
treeae0a79ac7d8b80ad4cc5a54f003ea61d3e01f3d0 /src/mailman/mta
parent18b7980823d2f9d5b7b0f50596cc05e8efb845e8 (diff)
downloadmailman-783163c4e7eda6d5983bcca512db645c64dad349.tar.gz
mailman-783163c4e7eda6d5983bcca512db645c64dad349.tar.zst
mailman-783163c4e7eda6d5983bcca512db645c64dad349.zip
* Refactor add_member() so that it uses a RequestRecord namedtuple.
* RequestRecord contains no password key so these are not part of the held requests database any more. * Pending record contains `email` now instead of `address`.
Diffstat (limited to 'src/mailman/mta')
-rw-r--r--src/mailman/mta/tests/test_delivery.py8
1 files changed, 5 insertions, 3 deletions
diff --git a/src/mailman/mta/tests/test_delivery.py b/src/mailman/mta/tests/test_delivery.py
index 77d31d3a3..18eef8845 100644
--- a/src/mailman/mta/tests/test_delivery.py
+++ b/src/mailman/mta/tests/test_delivery.py
@@ -32,6 +32,7 @@ from mailman.app.membership import add_member
from mailman.config import config
from mailman.interfaces.mailinglist import Personalization
from mailman.interfaces.member import DeliveryMode
+from mailman.interfaces.subscriptions import RequestRecord
from mailman.mta.deliver import Deliver
from mailman.testing.helpers import (
specialized_message_from_string as mfs)
@@ -63,9 +64,10 @@ class TestIndividualDelivery(unittest.TestCase):
self._mlist = create_list('test@example.com')
self._mlist.personalize = Personalization.individual
# Make Anne a member of this mailing list.
- self._anne = add_member(self._mlist,
- 'anne@example.org', 'Anne Person',
- 'xyz', DeliveryMode.regular, 'en')
+ self._anne = add_member(
+ self._mlist,
+ RequestRecord('anne@example.org', 'Anne Person',
+ DeliveryMode.regular, 'en'))
# Clear out any results from the previous test.
del _deliveries[:]
self._msg = mfs("""\