Commit Graph
11 Commits
Author SHA1 Message Date
Christophe CHAUVETandGitHub 3b4cf12e68 Fix tox serve command (#1463)
* Fix tox serve command
* Fix tests fail on travis
2018-04-12 19:26:35 +02:00
Antoine NguyenandGitHub 425258309a Merge pull request #1446 from fyfe/fix/prefer-stdlib-mock
prefer standard library version of mock over back port
2018-04-02 16:31:04 +02:00
Andrew Fyfe 1aff9b2a98 prefer standard library version of mock over back port 2018-03-31 15:45:23 +01:00
Andrew Fyfe 86d758d841 revert #1439 changes
adding external dependencies to setup.py was a bad idea
2018-03-31 14:45:15 +01:00
Andrew Fyfe be5e689cac remove dependency on pip internals
closes #1438
2018-03-19 19:03:06 +00:00
Andrew Fyfe 6503cef3da #1417 psycopg2 binary package has been renamed to psycopg2-binary
also bump the minimum version to 2.7.4 as this is when the psycopg2-binary became available.

See #1417 and http://initd.org/psycopg/articles/2018/02/08/psycopg-274-released/
2018-03-03 14:44:46 +00:00
Andrew Fyfe 9923b9362f fix test database setup
Django automatically renames test databases to 'test_%s' % settings.DATABASES[*]["NAME"], so modoboa_test became test_modoboa_test. There's no point creating the database in `before script` as the test suite creates it.

https://docs.djangoproject.com/en/1.11/topics/testing/advanced/#django.db.connection.creation.create_test_db

- target oldest currently supported database servers, travis currently defaults to PostgreSQL 9.2 which isn't supported anymore.

- move database dependencies out of travis.yml into test_requirements.txt and pin to minimum versions recommended by django.
  See https://docs.djangoproject.com/en/1.11/ref/databases/

- use MySQL root user for tests, we already use the root user (postgres) for PostgreSQL.

- fix typo in modoboa/test_settings for DB variable, default should be POSTGRESQL not POSTGRES

- enable MySQL strict mode (on by default on MySQL >= 5.7)
  See https://docs.djangoproject.com/en/1.11/ref/databases/#mysql-sql-mode
2018-01-04 16:36:52 +00:00
Antoine Nguyen 4c1c64771e SMTP authentication backend.
see #989
2017-01-18 13:52:33 +01:00
Antoine Nguyen 0af78cff3f Few fixes. 2016-10-19 09:45:30 +02:00
Antoine Nguyen 006a7fef43 Mock public API.
see #890
2016-06-17 17:07:02 +02:00
Antoine Nguyen 3181f5df5d WIP
see #831
2016-01-29 16:18:03 +01:00