summaryrefslogtreecommitdiff
path: root/mailman/tests/test_documentation.py
Commit message (Collapse)AuthorAgeFilesLines
* Push the source directory into a 'src' subdirectory so that zc.buildout worksBarry Warsaw2009-01-251-150/+0
| | | | correctly regardless of how it's used.
* Several important cleanups.Barry Warsaw2009-01-161-8/+16
| | | | | | | | | | * Turn on absolute_import and unicode_literals everywhere, and deal with the aftermath. * Use 'except X as Y' everywhere. * Make the module prologues much more consistent. * Use '{}'.format() consistently, except for logger interface. * Because of the problems with calling ** args with unicode keywords, hide calls to Template.substitute() behind an API.
* Bump copyright yearsBarry Warsaw2009-01-011-1/+1
|
* All tests are now passing!Barry Warsaw2009-01-011-1/+0
|
* Convert more configuration variables to lazr.config.Barry Warsaw2008-12-221-50/+47
| | | | | | | | Add .push() and .pop() methods to the Configuration object. Put the 'config' object in the globals of doctests. Add some test layers for setting up the configuration and the SMTP server.
* Lots of changes to make bin/withlist work under a buildout environment.Barry Warsaw2008-12-201-1/+1
| | | | | | | | | | mailman.configuration -> mailman.config.config mailman.initialize -> mailma.core.initialize mailman.loginit -> mailman.core.logging (yay future absolute imports!) Convert all configurations to lazr.config, though some legacy still remains, and I haven't been able to remove Defaults.py yet. Added as_boolean() and as_log_level() helpers for explicit type conversion. Added a schema.cfg.
* Move core Mailman modules to the new mailman.core package. FunctionalityBarry Warsaw2008-09-291-1/+1
| | | | | that's part of the 'application', i.e. non-essential to the core functionality is left in mailman.app. This division of labor is still formative.
* Upgrade to GPLv3.Barry Warsaw2008-09-241-12/+12
|
* Support for proper domains by interface. Add a test and update modules asBarry Warsaw2008-09-201-0/+14
| | | | | | | | | | necessary. Finally delete DEFAULT_EMAIL_HOST and DEFAULT_URL_HOST. Now add_domain() must be called in the confirmation file for every domain. add_domain() itself is now pretty much just a proxy for the Domain constructor. Add stop() as an alias for pdb.set_trace() to the documentation doctest globs.
* Use IMailingList.posting_address (a.k.a. List-Post header) in theBarry Warsaw2008-07-061-0/+8
| | | | | | | Mail-Archive.com hash calculation, not the post-id sequence number. test_documentation now starts and stops the smtp listener, simplifing many tests.
* Refactor the archivers so that they live in a separate sub-package. Split outBarry Warsaw2008-07-051-0/+3
| | | | | | | | | the Pipermail, Prototype, and MailArchiver plugins into separate modules. Put the archives registry on the config object and initialize it at the right time. Update plugin entry points.
* Add some randomization to the way tests are run. This isn't complete (seeBarry Warsaw2008-03-121-8/+19
| | | | | the help for bin/testall --randomize for details), but it still better than nothing.
* Sprinkle a few more transaction API calls around to make sure the databaseBarry Warsaw2008-03-121-0/+1
| | | | | | | | | | | | doesn't remain in a locked state, hosing other processes. - Move a commit to the end of StockDatabase._create() - Add an abort to the Exception clause if there's an error while dequeuing - Add an abort to the Exception clause if there's an error while finishing - Add a commit after _doperiodic() and _shortcircuit() is called. - Add a commit to the end of cleaning_teardown() in test_documentation.py This now makes all the tests pass even when all of them are run.
* Add transaction API to IDatabase, e.g. begin(), commit(), and abort(). Add anBarry Warsaw2008-03-121-0/+5
| | | | implementation of these to StockDatabase. Expose 'commit' to doctest globals.
* Add a working (though not yet complete) test for the LMTP runner.Barry Warsaw2008-03-121-1/+1
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Refactor the TestableMaster class so that doctests don't need to do all the threading and event fiddling themselves. Hide all that in the test class. In bin/master, add the -r/--runner option to allow overriding the set of queue runners to start from the command line. This is much more convenient than fiddling the config file (which is still supported), and it allows us to start a subset of the runners from the TestableMaster class. Refactor the calculation of queue runner shortcut names into Configuration.add_qrunner(). This way, it's easy to share between bin/qrunner and bin/master. Use pkg_resource in bin/testall to create the test configuration file. We're still using mailman.__file__ as the target to os.walk() though, so this conversion isn't complete. In bin/testall, update to the new convention of putting .options and .arguments on the parser instance, so we only need to pass back one thing. In test_documentation.py, use config.verbosity instead of config.options.verbosity. Wind that through to bin/testall while we're at it. Update loginit.py so that defaults for all the logging options can be found in a [*] section. This is better than [DEFAULT] because the latter requires %-interpolation and still requires each sublogger to be specified explicitly. Now we just set values in the [*] section and have them apply to all loggers. Allow for passing bin/testall's -v and -e options to any subprocesses that get created, e.g. via the TestableMaster. Now testall will write a logging.cfg file with a [*] entry as appropriate. It's DEFAULT_DATABASE_URL now, not SQLALCHEMY_ENGINE_URL. StockDatabase._reset() requires that the store be rolled back before it's reset. Otherwise if there are outstanding transactions, the reset will fail with an OperationalError. Update the LMTPRunner. Have it return a 501 error if the message has defects. Most defective messages are spam. Make the LMTPRunner startable and stoppable. Just because it's asyncore based doesn't mean that's not possible <wink>. Enable the LMTP runner in tests.
* Bite the bullet: rename the Mailman package to mailman.Barry Warsaw2008-02-271-0/+104