Jacek Tomaszewski
302c931fe0
Django 1.10 integration (ref #381 )
2016-08-19 21:23:45 +02:00
Jacek Tomaszewski
8320fc8a5a
Add Django 1.9 support (ref #349 ).
2015-12-06 18:48:17 +01:00
Jacek Tomaszewski
8047a4dcda
Add empty MIDDLEWARE_CLASSES to test settings in order to disable system check warning.
2014-09-07 21:43:58 +02:00
Jacek Tomaszewski
1d7e0876ec
Satisfy new flake8 version.
2014-03-27 00:39:41 +01:00
wrwrwr
670f378ae5
Be prepared to test with various storages or just with the usual FileSystemStorage, but with an overridden location (e.g. when the storage is created in another apps test before MEDIA_ROOT defined for tests gets set).
...
It would be nice to also find a way to ensure files are cleaned up with non-file-system storages in case test_translated_models_instance fails in the middle.
2013-02-20 20:45:49 +01:00
wrwrwr
46afcd0e5e
Disable timezone support for tests, as the date / time fields' tests use naive datatime objects and fail if it's enabled.
2013-02-20 17:48:35 +01:00
Jacek Tomaszewski
6947814e2a
Refactor tests: refactor ModelValidationTest.
2012-12-06 17:59:28 +01:00
Jacek Tomaszewski
5b51a7b793
Add fallback language feature and base tests.
2012-11-13 16:28:42 +01:00
Jacek Tomaszewski
0949e95441
Add MultilingualManager and its tests.
2012-11-11 16:28:29 +01:00
Jacek Tomaszewski
37b5c0f03f
Fix errors pointed by Travis.
2012-11-10 22:09:07 +01:00
Jacek Tomaszewski
c7b8b77e86
Allow tests to be run together with other apps.
2012-11-10 19:31:46 +01:00
Dirk Eschler
98e5e593f2
Merged app cache reset handling from django-modeltranslation-wrapper into ModeltranslationTestBase and cleaned up debug code from last commit.
2012-10-26 14:00:52 +02:00
Dirk Eschler
aa274b72a2
Used override of default database setting based on the DB env var present on travis-ci.
2012-10-25 11:09:22 +02:00
Dirk Eschler
60d8fd5262
Added a SECRET_KEY to test settings. Silences a DeprecationWarning and takes care of the fact that the upcoming Django 1.5 won't even start without one.
2012-10-24 17:20:44 +02:00
Dirk Eschler
4b4238b847
Removed deprecated MODELTRANSLATION_TRANSLATION_REGISTRY setting from test settings.
2012-10-24 16:17:07 +02:00
Dirk Eschler
5c0f4da084
Added staticfiles to INSTALLED_APPS only if Django 1.3 or later is used.
2012-10-24 14:13:04 +02:00
Dirk Eschler
dcd406a0df
Refactored tests to use a separate models.py.
2012-10-24 13:48:09 +02:00
Dirk Eschler
1aa515e739
Added missing DEFAULT_LANGUAGE setting.
2012-07-13 08:04:11 +00:00
Dirk Eschler
1c8e82890d
Major refactoring of the admin integration. Subclassed BaseModelAdmin and InlineModelAdmin. Patching options in init doesn't seem to be thread safe. Instead used provided hooks like get_form, get_formset and get_fieldsets. This should resolve several problems with the exclude and fieldsets options and properly support options in inlines. Added a new admin option exclude_languages to exclude certain translation fields per admin class. Moved tests to separate folder and added tests for TranslationAdmin. To run the tests the settings provided in model.tests.modeltranslation have to be used (settings.LANGUAGES override doesn't work for TranslationAdmin).
2012-07-04 09:29:05 +00:00