summaryrefslogtreecommitdiff
path: root/src/mailman/testing/layers.py
Commit message (Collapse)AuthorAgeFilesLines
...
| * Add doctest for connecting using invalid credentials and some documentation ↵root2010-09-291-2/+6
| | | | | | | | regarding the basic auth for the REST server.
* | Fix the obvious errors identified by pyflakes. Skip false positives (mostlyBarry Warsaw2010-10-081-1/+0
|/ | | | | due to _() interpolation) and a few other problems that did not have immediately obvious fixes.
* This is a better fix than the previous commit, since it uses a principled ↵Barry Warsaw2010-08-301-0/+15
| | | | approach to finding the bin directory. Thanks go to Gary Poster.
* * Fix the bin/test -e/--stderr option to work with the currentBarry Warsaw2010-06-181-13/+16
| | | | | | | | | | | | | zope.testrunner. Actually, divorce it from the latter and handle the sys.argv sequence ourselves. * Added IMailingList.get_roster() which returns the named roster (from a MemberRole enum). * The start of an IMailingList doctest. This needs much more detail. * Move the subscribe() function from membership.txt into the mailman.testing.helpers. * Added new REST interface for getting all the members of a roster for a specific mailing list: .../lists/<list>/roster/<role>. Note that <role> is the plural form of the MemberRole enum.
* Checkpointint support for different path layouts, allowing us to optionallyBarry Warsaw2010-01-271-1/+6
| | | | | | | | support the Filesystem Hierarchy Standard. This is done through the configuration file. * add a --paths/-p option to 'bin/mailman info' * PIDFILE -> PID_FILE
* Happy New Year.Barry Warsaw2010-01-011-1/+1
|
* The test suite has to be able to inhibit the loading of any configurationBarry Warsaw2009-12-131-1/+2
| | | | files.
* * Make IDomainManager a utility, since the config object is global.Barry Warsaw2009-12-081-1/+1
| | | | | | | | * Give IMailingList a .domain attribute which looks up the IDomain for its .host_name. This cleans up a lot of code. * Add a test for the 'confirm' email command. * Suppress blank lines in email command responses. * Make the IDomainCollection a utility.
* Factor out most of the i18n subsystem and convert to using the flufl.i18nBarry Warsaw2009-11-151-1/+1
| | | | package.
* Fix all tests except outgoing.txt and common.txtBarry Warsaw2009-11-021-1/+1
|
* Show that a max_sessions_per_connection == 0 means there's an unlimited numberBarry Warsaw2009-10-181-2/+2
| | | | of sessions per connection (or at least 10 <wink>).
* Infrastructure for testing the Connection class, and for counting the numberBarry Warsaw2009-10-181-16/+2
| | | | of session start and end events in the server.
* Use lazr.smtptest instead of our own SMTPServer and test SMTPd.Barry Warsaw2009-10-151-2/+19
| | | | | Update the lazr.restful IWebServiceConfiguration implementation to include the new hop_by_hop_headers attribute, by way of BaseWSGIWebServiceConfiguration.
* Replace the message_store instance on the database with an IMessageStoreBarry Warsaw2009-08-261-2/+5
| | | | utility.
* Wow. Put domains into the database.Barry Warsaw2009-07-161-1/+6
| | | | | | | | Add an IDomainManager and a global domain manager which can be gotten by adapting the global config object. Add an IDomainCollection interface for exposing the domain manager onto the API.
* Clean a few more lints.Barry Warsaw2009-07-101-4/+20
| | | | | | | | | | | | | | Add get_mailing_lists() which is used just for the web interface. Because of a bug in lazr.restful, this cannot be a generator. Similar change in IDomainSet. Instrument IListManager to be vended through the api. The REST server must be run in a separate process since SQLite does not like objects created in one thread to be used in another thread. Note that this breaks the domain.txt test, but domains really need to be in the database anyway.
* Allow for setting the doctest layer in the doctest package's __init__. If notBarry Warsaw2009-05-271-0/+21
| | | | given, then SMTPLayer is used by default.
* Add a "mock and monkey" layer to set up testing infrastructure, e.g. forBarry Warsaw2009-02-171-1/+20
| | | | | | | | | | predictable dates and times. Fill out the autorespond.txt test to show that when the date flips over, the response counts reset. Add a date/time factory which we should use rather than the built-in datetime for now() and today() so that they can be appropriately tested.
* Push the source directory into a 'src' subdirectory so that zc.buildout worksBarry Warsaw2009-01-251-0/+204
correctly regardless of how it's used.