summaryrefslogtreecommitdiff
path: root/src/mailman/model/tests
Commit message (Collapse)AuthorAgeFilesLines
* Add more tests for coverage.J08nY2017-08-071-0/+24
|
* Save the complete workflow stack, not only last step.J08nY2017-08-071-11/+11
|
* Create mailman.workflows package. Move base Workflow there.J08nY2017-08-071-1/+1
| | | | | - Also introduce IWorkflow, ISubscriptionWorkflow, IUnsubscriptionWorkflow.
* IListManager.get() now accepts both List-IDs and FQDN list names.Barry Warsaw2017-06-241-0/+18
|
* Delete subscription requests when a mailing list is deleted.Barry Warsaw2017-01-081-5/+11
| | | | Closes #214
* Delete all pendings when mailing list is deletedAbhilash Raj2017-01-081-0/+18
|
* Bump copyright years.Barry Warsaw2017-01-0419-19/+19
|
* Merge branch 'hide-system-disabled-archivers' into 'master' Barry Warsaw2016-11-261-7/+7
|\ | | | | | | | | | | | | | | | | | | | | | | Don't show the disabled archivers in the REST API Previously, system-disabled archivers were shown in the REST API. As a result it was possible to enable them without a validation error, but they would stay disabled on the next API GET call (their actual activation status depends on the list-specific *and* the system-wide status). Because one can't add a configuration overlay to the running REST server in testing mode, the prototype archiver was disabled in the testing configuration. This is where most of the changes in this commit come from. See merge request !87
| * Fix testsAurélien Bompard2016-08-181-7/+7
| |
* | Fix the Flake8 ignore tagsAurélien Bompard2016-11-212-2/+2
| |
* | News and test tweak.Barry Warsaw2016-10-261-6/+9
| |
* | Sort the ban list by emailAurélien Bompard2016-10-261-4/+4
| |
* | Full coverage.Barry Warsaw2016-10-261-1/+17
| | | | | | | | NEWS.
* | Implement the review suggestionsAurélien Bompard2016-10-261-4/+5
| | | | | | | | See !161
* | Add a method to find list using properties filtersAurélien Bompard2016-10-261-0/+8
| | | | | | | | | | | | This allows the filtering to be done at the database level. It also makes list pagination much more efficient, since the slicing is done at the database level too.
* | Manual merge.Barry Warsaw2016-10-251-7/+12
| | | | | | | | * Rebased, cleaned up, and test improvement.
* | rewritten bans test with more thorough testsAmit Tripathi2016-10-251-3/+6
| |
* | added a test to check bans property of IBanManagerAmit Tripathi2016-10-251-0/+6
| |
* | Simplify the implementation.Barry Warsaw2016-10-171-53/+25
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | This merges the SubscriptionManager and UnsubscriptionManager into a single SubscriptionManager implementation that handles both register() and unregister(). This allows us to use direct class-based adaptation instead of the more clunky getAdapter() API. We can also eliminate the funky _get_workflow() implementation detail. This has a couple of side-effects. .confirm() must lookup the token in the pendings database and pull out the pending type, dispatching to the proper class depending on the type, or raising a LookupError if the token is None or there is no pendable associated with the given token. This feels like an acceptable trade-off. However, this *also* means that IWorkflowStateManager must lose its 'name' argument in its methods. That's because we won't actually know the name until its too late. Honestly, the name wasn't providing much value anyway (it was always the subclass's name), so losing that seems fine too. The complication here is that the name was a primary key in the 'workflowstate' table, so we need to add its removal in the database migration.
* | IWorkflowManager -> ISubscriptionManagerBarry Warsaw2016-09-011-1/+1
| |
* | CheckpointingBarry Warsaw2016-09-012-2/+3
| |
* | Intermediate CommitAbhilash Raj2016-09-012-1/+14
|/
* MySQL is now an officially supported database.Barry Warsaw2016-07-291-1/+3
| | | | Given by Abhilash Raj.
* Rebase mailman/mailman!180 and cleanup # noqaBarry Warsaw2016-07-283-3/+3
|
* Fix failure to change copied name :(Mark Sapiro2016-07-191-1/+1
|
* Improved email address validation and added tests.Mark Sapiro2016-07-181-0/+36
|
* New template system. Closes #249Barry Warsaw2016-07-162-0/+396
| | | | | The new template system is introduced for API 3.1. See ``src/mailman/rest/docs/templates.rst`` for details.
* Clean up the User.absorb() method and tests.Barry Warsaw2016-05-141-85/+130
|
* Clean up.Barry Warsaw2016-05-131-45/+53
|
* Fix Flake8 errorsAurélien Bompard2016-05-042-10/+12
|
* Implement suggestions from the reviewAurélien Bompard2016-05-042-15/+27
|
* Delete redundant memberships before deleting the absorbed userAurélien Bompard2016-05-041-0/+5
|
* Sort importsAurélien Bompard2016-05-042-2/+2
|
* Add a method to merge a user into another userAurélien Bompard2016-05-042-0/+203
|
* Restore a test from !151 which only fails on PostgreSQL.Barry Warsaw2016-04-291-0/+44
|
* Tweaks and clean up.Barry Warsaw2016-04-291-0/+32
| | | | | | | | * Add NEWS entry. * De-duplicate emails in the sequence passed to the model's ISubscriptionService.unsubscribe_members() method. * Modify the semantics of the DELETE method to return a mapping of addresses to boolean status.
* Tweak for landing.Barry Warsaw2016-04-251-39/+57
| | | | | | * Add NEWS. * Add more comments. * Minor changes to test code style.
* Cover two more corner casesAurélien Bompard2016-04-261-0/+43
|
* Fix difference between iter and count in find_membersAurélien Bompard2016-04-261-4/+27
| | | | | | | In `SubscriptionService._find_members()`, only select preferred addresses. Fixes #227
* Add NEWS, tweak an interface, and rewrite a unit test.Barry Warsaw2016-04-181-111/+147
|
* Extend ISubscriptionService interface.Harshit Bansal2016-04-181-0/+121
| | | | | | Add documentation. Extend ISubscriptionService interface.
* Don't use `flake8: noqa`.Barry Warsaw2016-04-011-1/+1
| | | | | | | 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.
* Members and nonmembers moderation action fallbackAurélien Bompard2016-03-311-0/+21
| | | | | | | | Members and nonmember's moderation action should be None by default, and in that case the moderation rule should fallback to the mailing list's default action. Fixes: #189
* Add member unsubscription testAditya2016-03-301-0/+9
|
* Import order flake8 plugin.Barry Warsaw2016-03-271-1/+1
| | | | Fix lots of import order errors discovered by the new plugin.
* Clean up the model and languages directories.Barry Warsaw2016-03-2516-172/+64
|
* Fix cross-posting held on more than one list.Barry Warsaw2016-03-081-0/+19
| | | | | | | | | | | Closes #176 Also: * IMessageStore no longer raises a ValueError if the Message-ID already exists in the store; it just returns None. * The internal handle_message() function no longer takes a `preserve` argument, since messages are never removed from the IMessageStore.
* Last cleanups.Barry Warsaw2016-02-291-11/+6
| | | | | | | | | * Remove an unused import. * Opportunistically remove ^Ls * Add a missing interface attribute. * Fix up some docstrings. * Rename a parameter in an interface for clarity. * Random code style cleanups.
* Revert "Rename the HeaderMatch.chain column to action"Aurélien Bompard2016-02-291-8/+7
| | | | This reverts commit 703fc135dfcd496a704562ddc263aa0f4f828de9.
* Review suggestions: improve unit testsAurélien Bompard2016-02-291-19/+39
|