summaryrefslogtreecommitdiff
path: root/src/mailman/testing
diff options
context:
space:
mode:
authorBarry Warsaw2014-11-08 10:14:00 -0500
committerBarry Warsaw2014-11-08 10:14:00 -0500
commit410b2fae5eaba2e4bb6c2ebdc86d99eab4effc56 (patch)
tree754e4621eb24a9925bc3089461d65be518ae1160 /src/mailman/testing
parent1d9f6970b9a26ee576838b53f485b96365e3a6c2 (diff)
parent249607949d5eab11e63e52cbac65e8a68327d593 (diff)
downloadmailman-410b2fae5eaba2e4bb6c2ebdc86d99eab4effc56.tar.gz
mailman-410b2fae5eaba2e4bb6c2ebdc86d99eab4effc56.tar.zst
mailman-410b2fae5eaba2e4bb6c2ebdc86d99eab4effc56.zip
tox-ify the test suite. First, this makes it easier to run since you don't
have to manually set up the virtualenv. Second, it allows us to later create a python3 environment for porting purposes. Other change: * The `mailman conf` command no longer takes the `-t/--sort` option; the output is always sorted. * The ``[database]migrations_path`` setting is removed. * You no longer have to create a virtual environment separately when running the test suite. Just use `tox`. * The RFC 2369 headers added to outgoing messages are now added in sorted order. * The JSON representation `http_etag` key uses an algorithm that is insensitive to Python's dictionary sort order.
Diffstat (limited to 'src/mailman/testing')
-rw-r--r--src/mailman/testing/mta.py5
1 files changed, 5 insertions, 0 deletions
diff --git a/src/mailman/testing/mta.py b/src/mailman/testing/mta.py
index 7481e0093..875647485 100644
--- a/src/mailman/testing/mta.py
+++ b/src/mailman/testing/mta.py
@@ -161,6 +161,11 @@ class ConnectionCountingServer(QueueServer):
log.info('[ConnectionCountingServer] accepted: %s', address)
StatisticsChannel(self, connection, address)
+ def process_message(self, peer, mailfrom, rcpttos, data):
+ # Provide a guaranteed order to recpttos.
+ QueueServer.process_message(
+ self, peer, mailfrom, sorted(rcpttos), data)
+
def reset(self):
"""See `lazr.smtp.server.Server`."""
QueueServer.reset(self)