Commit graph

19 commits

Author SHA1 Message Date
38b120b03e Update dependencies, fix tests
- replace assertTrue(mock.called_with(...)) with mock.assert_called_with
2024-08-23 17:57:40 +02:00
affb49a971 Update to Django 4.2
- fix deprecation warnings
- update dependencies
2023-07-08 19:21:02 +02:00
fc8f22432c Fix skipped tests in managemails 2023-02-19 15:13:31 +01:00
610f8976fc Refactor managemails to use signals
- use signals to trigger Celery tasks to create and delete mailboxes
- add generic TestCaseWithCeleryTasks class to handle celery task tests
  in a uniform way
2023-02-19 13:45:30 +01:00
4af1a39ca4 Upgrade to Django 3.2
- update dependencies
- fix deprecation warnings
- fix tests
- skip some tests that need more work
- reformat changed code with isort and black
2023-02-18 22:46:48 +01:00
3d18392b67 Fix tests for Python 3
- drop Python 2 __future__ imports
- fix tests to handle new Django and Python 3 module names
- reformat changed files with black
2019-01-30 21:27:25 +01:00
085b126416 Update to Django 1.9
- update all dependencies
- fix deprecation warnings and errors for Django 1.9 compatibility
2015-12-19 20:11:23 +01:00
30600ce107 Add tests for managemails.views
This commit adds a test suite for the views defined in
managemails.views. One issue discovered when writing tests is fixed by
checking the request method in CreateMailbox.dispatch.
2015-11-28 19:01:52 +00:00
1cfd4327da Add tests for managemails.models
This commit adds tests for managemails.models to improve the test
coverage of that model. There are some changes to the classes in
managemails.models too:

- add a method create_mailbox to MailboxManager
- properly handle uncommited mailaddresses in MailAddress.set_mailbox
  and MailAddress.set_forward_addresses
2015-11-28 14:07:34 +00:00
03a7dc0320 Add test for managemails.forms
This commit adds tests for managemails.forms. A refactoring TODO is
added to MailAddressFieldMixin and pragma: no cover has been added to
code paths not reachable if no new constants are added to the
MAILBOX_OR_FORWARDS constant array.
2015-11-22 18:41:45 +00:00
e913b1f771 fix tests 2015-02-01 20:12:23 +01:00
d4f68a155c fix some test issues 2015-01-22 00:19:16 +01:00
b9d39f31a4 rename test class names from Test* to *Test 2014-06-01 22:41:42 +02:00
32de6257d3 add test for managemails.models.Mailbox.__str__ 2014-06-01 18:29:41 +02:00
3407a5ed24 add tests for managemails.admin 2014-06-01 18:25:30 +02:00
ecaff6a4af move existing MailDomains to domains table 2014-05-25 15:17:08 +02:00
5db6223bc0 introduce new app domains
- generate domains app
- duplicate managemails.models.MailDomain as domains.models.MailDomain
- add domains app to gnuviechadmin.settings.base.LOCAL_APPS
- repair managemails.tests.test_models
- fix handling of empty results in osusers.models.GroupManager.get_next_gid and
  osusers.models.UserManager.get_next_uid
2014-05-25 14:53:58 +02:00
b044fe2dd9 add model tests 2014-05-24 13:56:45 +02:00
123eedaeb1 add generated managemails app 2014-05-18 20:02:39 +02:00