summaryrefslogtreecommitdiff
path: root/src/mailman/testing (follow)
Commit message (Collapse)AuthorAgeFilesLines
* Fix mailman shell processing of $PYTHONSTARTUP.Barry Warsaw2016-04-081-0/+20
| | | | Closes #224
* Don't use `flake8: noqa`.Barry Warsaw2016-04-012-2/+2
| | | | | | | This suppresses all errors in the file. Use `noqa`, although pep8 doesn't honor this for all errors. There may be a plugin which helps.
* Refactor.Barry Warsaw2016-03-291-31/+31
|
* Tweak the import rules checker.Barry Warsaw2016-03-271-1/+16
| | | | Fix the last few violations of the import rules.
* Import order flake8 plugin.Barry Warsaw2016-03-271-3/+85
| | | | Fix lots of import order errors discovered by the new plugin.
* Start of import order testing.Barry Warsaw2016-03-271-0/+44
|
* Clean up the testing directory.Barry Warsaw2016-03-256-99/+47
|
* Clean up the interfaces directory.Barry Warsaw2016-03-251-1/+2
|
* Clean ups for merge.Barry Warsaw2016-03-231-1/+6
| | | | | | | | * Update some comments. * Slightly rewrite a conditional test. * Coding style fixes. * Add a convenience to get_queue_message(). * Add NEWS.
* Add a set_preferred() helper.Barry Warsaw2016-02-061-0/+11
| | | | | This refactors the setting of a user's preferred address to the first in their list of linked addresses.
* Super duper.Barry Warsaw2016-01-261-4/+3
| | | | | * Python 3-ify super() calls. * Remove a bunch of obsolete exception classes.
* Several optimizations:Barry Warsaw2016-01-112-4/+2
| | | | | | | | | | | | * Use `yield from` wherever appropriate. * Use SA's .one_or_none() where appropriate. - Fix a bug in MailingList.pass_extensions. - Use ValueError in other places for consistency. - Remove unreached/nonsense code. - Simplify the SubscriptionService.find_member() and .find_members() implementations. - Boost coverage.
* Happy New Year.Barry Warsaw2016-01-028-8/+8
|
* Major push for completing issue #121. Now in API 3.1, all UUIDs must be theBarry Warsaw2015-12-301-4/+4
| | | | | | | | | hex representations of a UUID, not the int representation. Also: * Some general code cleanup. * Fix issue 185 (REST server crash when subscribing a user without a preferred address).
* Coverage improvements.Barry Warsaw2015-12-291-1/+1
| | | | | | | | * Boost coverage. * Don't report coverage on the test modules. * In one test, when acquiring the lock, set a timeout. Hopefully this will eliminate the occasional test deadlock. * Fix a buglet in wrap()
* * Remove the test_suite key from setup.py; it isn't the right way to run theBarry Warsaw2015-10-081-2/+2
| | | | | tests suite (for that, use tox). * Use resource_filename() to locate the top mailman package.
* Core no longer depends on the standalone `mock` module. (Closes: #146)Barry Warsaw2015-09-221-1/+1
|
* Turn off tying the -E test suite option to debugging the database logger.Barry Warsaw2015-08-181-2/+5
| | | | | | | SQLAlchemy is generally pretty chatty and usually not necessary to debug. Set use_poll=True in asyncore.loop() which improves Python 3.5 compatibility. We were getting OSErrors in stop() when using select under Python 3.5.
* Port to Python 3.5.Barry Warsaw2015-06-221-4/+37
|
* Abhilash's branch, pre-cleaning.Barry Warsaw2015-04-061-1/+1
|\
| * merge serverowner branchAbhilash Raj2015-03-271-1/+1
| |\
| | * all tests passing now (except doctests)Abhilash Raj2015-03-261-1/+1
| | |
* | | Merging in several refactorings, and a REST API change.Barry Warsaw2015-03-261-8/+13
|\ \ \ | |/ / |/| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Backward Incompatible REST API Changes: * The JSON representation for subscription holds now no longer contains the `password` key. Also, the `address` key has been renamed to `email` for consistency with established terminology and other usage. Other Internal API Changes: * IUserManager has grown a `make_user()` method. Refactorings: * Most uses in the test suite of add_member() have been replaced with a new version of the subscribe() helper. This reduces the surface area of this ancient internal API. Eventually add_member() will have to go away or significantly change with the subscription policy workflow. * hold_subscription() as well as the remaining instances of add_member() now use a namedtuple in their arguments, to keep the signatures manageable.
| * | Extended test helper subscribe() which takes an optional email address andBarry Warsaw2015-03-261-8/+13
| |/ | | | | | | returns the newly created member.
* / Add a test for instance-containing pickle importAurélien Bompard2015-03-261-0/+0
|/
* We don't need the 'six' package any more.Barry Warsaw2015-01-042-3/+3
|
* Bump copyright years.Barry Warsaw2015-01-048-8/+8
|
* Remove huge amounts of now unnecessary file boilerplate.Barry Warsaw2014-12-226-41/+13
|
* Trunk merge.Barry Warsaw2014-12-221-21/+19
|\
| * * Fixed `AttributeError` on MIME digest messages. Given by Aurélien Bompard.Barry Warsaw2014-12-101-1/+24
| |\ | | | | | | | | | (LP: #1130696)
| | * LP: #1130696 - AttributeError on .senderBarry Warsaw2014-12-101-0/+23
| |/|
| | * Make the MIMEDigester generate a subclass of MIMEMultipart with our additionsAurélien Bompard2014-12-091-0/+22
| |/ | | | | | | Fixes bug #1130696 (differently)
* | Move internationalized digest tests to unittests.Barry Warsaw2014-12-201-0/+25
| |
* | Fix mta and lmtp tests.Barry Warsaw2014-12-171-11/+11
| |
* | Make sure that TestConfigurationErrors doesn't break global state.Barry Warsaw2014-12-161-0/+6
| |
* | Better, but not perfect handler test passing.Barry Warsaw2014-12-151-2/+3
| |
* | Fix some basic REST plumbing, and make test_rosters pass.Barry Warsaw2014-12-111-1/+4
| |
* | Checkpointing.Barry Warsaw2014-11-303-10/+9
|/ | | | | | | | | | By using `six` I think I have most of the imports squared away. There's probably still uses of `unicode` built-ins that need fixing. The idea is to first get the test suite running (which it doesn't yet), and then to fix tests. There's a bug in lazr.config which requires us to patch it for now.
* * Fixed Unicode errors in the digest runner and when sending messages to theBarry Warsaw2014-11-291-0/+5
| | | | | | | | | | | site owner as a fallback. Given by Aurélien Bompard. (LP: #1130957). Also: * Convert some uses of the unicode() built-in to bytes.decode() in preparation for Python 3 and to eliminate some pyflakes errors. * Added LogFileMark.read() as a convenience method.
* Trunk mergeBarry Warsaw2014-11-091-5/+0
|\
| * * You no longer have to edit `src/mailman/testing/testing.cfg` to run theBarry Warsaw2014-11-091-5/+0
| | | | | | | | | | | | | | | | | | | | | | test suite against PostgreSQL. See `src/mailman/docs/START.rst` for details. Also: * Test fixes. * Doc fixes. * PostgreSQL/model fixes.
* | Trunk merge.Barry Warsaw2014-11-081-0/+5
|\|
| * Tox-ify the test suite. Now you don't have to create a virtualenv separately.Barry Warsaw2014-11-071-0/+5
| | | | | | | | | | | | | | | | | | | | | | To do this, we have to handle random test ordering, since tox explicitly sets PYTHONHASHSEED. That's a good thing for the future Python 3 port. Removed `mailman conf -t/--sort`; now the output is always sorted. RFC 2369 headers are now sorted before being added. etag repr dicts are sorted using pprint.pformat().
* | Trunk merge.Barry Warsaw2014-11-022-3/+7
|\|
| * Remove some unnecessary code, and revert back to SQLite by default for theBarry Warsaw2014-11-012-6/+3
| | | | | | | | test suite.
| * DatabaseBarry Warsaw2014-11-012-3/+10
| |\ | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | -------- * The ORM layer, previously implemented with Storm, has been replaced by SQLAlchemy, thanks to the fantastic work by Abhilash Raj and Aurélien Bompard. Alembic is now used for all database schema migrations. * The new logger `mailman.database` logs any errors at the database layer. API --- * Several changes to the internal API: - `IListManager.mailing_lists` is guaranteed to be sorted in List-ID order. - `IDomains.mailing_lists` is guaranteed to be sorted in List-ID order. - Iteration over domains via the `IDomainManager` is guaranteed to be sorted by `IDomain.mail_host` order. - `ITemporaryDatabase` interface and all implementations are removed.
| | * SQLite by defaultBarry Warsaw2014-10-311-3/+3
| | |
| | * Merge in the last of Aurelien's changes, and make the test suite pass withBarry Warsaw2014-10-311-1/+1
| | | | | | | | | | | | PostgreSQL.
| | * Merge abompard's fixes to the Postgres test suite.Barry Warsaw2014-10-302-6/+7
| | |
| | * Remove some unnecessary code.Barry Warsaw2014-10-131-4/+1
| | |