Commit Graph
24 Commits
Author SHA1 Message Date
Antoine Nguyen 9a0a5a96af Added docker-compose file for development. 2018-08-19 17:07:27 +02:00
Andrew Fyfe 87e8a32063 whitespace fixes 2018-02-03 00:59:06 +00:00
Andrew Fyfe 24a7ca6a9e sort imports using isort
pip install isort
isort -y
2018-02-03 00:43:59 +00:00
Andrew Fyfe 8a1d5736c9 fix quotes
This ensures all files use " for quotes with the exception of
migrations, as this are auto generated I've not modified them.

pip install unify
unify --in-place --recursive --quote \" .
2018-02-03 00:43:58 +00:00
Andrew Fyfe 042d0a8501 add IPv6 support to mx check
- add support for looking up IPv6 addresses (socket.getaddrinfo)
- add support for International Domain Names in case the DNS reponse contains one, to_unicode() decodes them to a utf8 string
- add logging for potential configuration errors:
    - DNS configuration errors (i.e. no MX records)
    - server name resolution errors (i.e. resolv.conf doesn't contain a working name server)
    - invalid values in MX records
- when looking up an ip address, don't stop on the first failure check all addresses
- update mock results for tests, return a real MX record for mock dns queries
2018-01-04 21:52:02 +00:00
Andrew Fyfe 92963a0f4c update test_project files
synced with a fresh deployment using django 1.11.8
2017-12-19 01:24:15 +00:00
Andrew Fyfe 892160d5aa updates for django 1.11 support
- MIDDLEWARE_CLASSES is replaced by MIDDLEWARE

- add MiddlewareMixin to modoboa middlewares

- on_delete will become a required parameter for ForeignKey()
  set it to the current default CASCADE

- on_delete will become a required parameter for OneToOneField()
  set it to the current default CASCADE

- reverse and reverse_lazy have moved to django.urls

- RadioChoiceInput widget has been removed, replace with HorizontalRadioSelect
2017-12-19 00:50:53 +00:00
Antoine NguyenandGitHub 98eea782a0 Generic transport editor. (#1309)
Generic transport editor.

see #1301

* Fixed unit test.

* Added unit tests.

* Fixed unit test.

* Added transport module to test list.

* Moved relay transport backend to appropriate app.

see #1301

* Added missing file.
2017-11-27 10:42:27 +01:00
Antoine Nguyen c236d60bd9 Replaced django-passwords by django's builtins.
see #1153
2017-06-22 15:53:58 +02:00
Arthur Vuillard 615f73f272 unicode_literals everywhere and modoboa-admin deploy fixes 2017-05-11 09:25:42 +02:00
Antoine Nguyen 78da3240fb Fixed test settings.
see #1078
2017-03-16 12:08:10 +01:00
Antoine Nguyen 183723c609 Fixed test urls.
see #1024
2017-02-10 14:45:43 +01:00
Antoine Nguyen ee71016b69 Fixed test settings.
see #1024
2017-02-10 14:39:57 +01:00
Antoine Nguyen adf4750c1f Fixed tests configuration.
see #989
2017-01-18 13:57:41 +01:00
Antoine Nguyen d1b59cc312 WIP
see #951
2016-10-28 15:48:08 +02:00
Christian Wiegand 0fd1fafef3 Changed string delimiters form ' to ". Moved the webmail locale datetime formatting settings to new settings.py in webmail module. 2016-10-06 15:53:44 +02:00
Christian Wiegand 169d07b8fa localization of email headers, added the datetime format settings in test_project settings.py with some docs 2016-10-06 14:49:16 +02:00
Gael Pasgrimaud c87240eefb allow to use tox to run tests/serve locally in an easy way 2016-09-13 11:47:21 +02:00
Antoine Nguyen 489327dda6 Fix test settings.
see #867
2016-04-29 14:09:34 +02:00
Gael Pasgrimaud 101a773bfd introduce test_settings 2016-03-10 12:46:44 +01:00
Gael Pasgrimaud 6b6e16d073 run tests with mysql 2016-03-07 14:54:52 +01:00
Antoine Nguyen c4ec4f447c Update test config. 2015-11-27 14:53:53 +01:00
Antoine Nguyen 39444fbf54 Update travis config. 2015-11-09 19:14:06 +01:00
Antoine Nguyen ef7e345977 codecov 2015-09-23 13:52:39 +02:00