Commit graph

53 commits

Author SHA1 Message Date
Jacek Tomaszewski
00210c14ba Fix for mysql. 2012-12-31 13:47:57 +01:00
Jacek Tomaszewski
f13bcdbebc Add test concerning update_translation_fields command. 2012-12-31 13:12:03 +01:00
Jacek Tomaszewski
91db5d2ff7 Fix translation registry in tests. 2012-12-31 13:08:50 +01:00
Jacek Tomaszewski
0c0edb4aaf New rule3 test. 2012-12-07 13:14:05 +01:00
Jacek Tomaszewski
85164b2ff2 Fix ContentFile usage to be Django 1.3 compatible. 2012-12-06 18:38:51 +01:00
Jacek Tomaszewski
5085f7e111 Refactor tests: create default_fallback context manager. 2012-12-06 18:09:03 +01:00
Jacek Tomaszewski
6947814e2a Refactor tests: refactor ModelValidationTest. 2012-12-06 17:59:28 +01:00
Jacek Tomaszewski
c065485d53 Refactor tests: refactor all RulesTests. 2012-12-06 17:08:17 +01:00
Jacek Tomaszewski
b8556ea952 Refactor tests: refactor OtherFieldsTest. 2012-12-06 14:43:06 +01:00
Jacek Tomaszewski
7347141f50 Refactor tests: refactor FileFieldsTest. 2012-12-06 14:17:57 +01:00
Jacek Tomaszewski
f0d6a955de Refactor tests: refactor first TestCase. 2012-12-06 13:57:11 +01:00
Jacek Tomaszewski
ef7930feb9 Fix flake8 warnings. 2012-12-06 13:57:11 +01:00
Jacek Tomaszewski
278913fac7 Refactor tests: use package-level import for models. 2012-12-06 12:46:27 +01:00
Jacek Tomaszewski
dbc3e1b358 Refactor tests: use package-level import for admin. 2012-12-06 12:42:59 +01:00
Dirk Eschler
2257fb0aa2 Enhanced admin tests for grouped fields inside a fieldsets definition. 2012-11-20 20:51:17 +01:00
Dirk Eschler
ee380ec7b7 Handled nested lists to display multiple fields on same line by flatting them. 2012-11-20 01:02:12 +01:00
Dirk Eschler
e8355b0e94 Enhanced admin tests for readonly_fields. 2012-11-18 22:00:43 +01:00
Dirk Eschler
5affe7940c Added basic tests for DateField, DateTimeField and TimeField and added them to the list of supported fields. 2012-11-18 00:08:04 +01:00
Dirk Eschler
5088f591fd Disabled the test for GenericIPAddressField for now as it new in Django 1.4 and the tests will fail with 1.3. That said we don't expect any different behaviour from this field compared to IPAddressField. 2012-11-17 17:12:24 +01:00
Dirk Eschler
1163765c3b Increased the list of supported fields. Today featuring: Floatfield, DecimalField, IPAddressField and GenericIPAddressField. 2012-11-17 16:19:15 +01:00
Dirk Eschler
b20496cb22 Merge pull request #113 from zlorf/metaclass_field_aggregation
TranslationOptions fields inheritance
2012-11-15 13:54:21 -08:00
Dirk Eschler
2e4265324d Added test for CommaSeparatedIntegerField and noted that it's implicitly supported as a subclass of CharField. 2012-11-15 21:29:02 +01:00
Jacek Tomaszewski
0ede18c0c5 Fix field aggregation. 2012-11-15 20:34:20 +01:00
Bruno Tavares
2431e2a21a field aggregation when subclassing a TranslationOption 2012-11-15 18:26:56 +00:00
Dirk Eschler
7dd3891821 Added support and basic tests for BooleanField and NullBooleanField. 2012-11-14 23:37:45 +01:00
Jacek Tomaszewski
777867dcf7 Clarify resolution order. 2012-11-13 16:57:24 +01:00
Jacek Tomaszewski
dd92cf0115 Add more verbose test for fallback languages. 2012-11-13 16:45:44 +01:00
Jacek Tomaszewski
5b51a7b793 Add fallback language feature and base tests. 2012-11-13 16:28:42 +01:00
Jacek Tomaszewski
86cb1e0de2 Use namespaced settings values in utils. 2012-11-13 16:03:09 +01:00
Jacek Tomaszewski
df02c81207 Disable rule 3
Merge branch 'upstream/no-rule3' into 'master'
2012-11-12 19:32:50 +01:00
Jacek Tomaszewski
71364966a5 Make model constructor rewrite fields in kwargs. 2012-11-12 12:54:10 +01:00
Jacek Tomaszewski
cff7382f74 Fix objects.create kwargs priority. 2012-11-12 12:25:02 +01:00
Jacek Tomaszewski
0949e95441 Add MultilingualManager and its tests. 2012-11-11 16:28:29 +01:00
Jacek Tomaszewski
a043680a68 Add Integer fields support. 2012-11-11 15:52:12 +01:00
Jacek Tomaszewski
acf59e3a55 Fix python 2.5 compatibility. 2012-11-10 22:28:58 +01:00
Jacek Tomaszewski
c7b8b77e86 Allow tests to be run together with other apps. 2012-11-10 19:31:46 +01:00
Dirk Eschler
2e3c000960 Handled non-empty test media root directory deletion. 2012-11-07 11:50:04 +01:00
Dirk Eschler
cb3cce70be Cleaned up test media directories which are created during FileFieldsTest run. 2012-11-07 11:10:59 +01:00
Dirk Eschler
5b6f5ae8ea Refactored test and model names. 2012-11-06 20:00:31 +01:00
Dirk Eschler
58ae1b42a8 Revert "Revert "Moved registrations in tests to a separate translation.py.""
This reverts commit 4ae1fb2d55.
2012-10-27 15:16:49 +02:00
Dirk Eschler
4ae1fb2d55 Revert "Moved registrations in tests to a separate translation.py."
This reverts commit c75709948c.
2012-10-27 14:42:46 +02:00
Dirk Eschler
c75709948c Moved registrations in tests to a separate translation.py. 2012-10-26 14:53:04 +02: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
d3e86f160b Made changes to support at least Django 1.3. 2012-10-24 20:56:01 +02:00
Dirk Eschler
aac70fa613 Temporarily deactivated (the only) failing test to get a full run of travis ci. 2012-10-24 17:07:31 +02:00
Dirk Eschler
dcd406a0df Refactored tests to use a separate models.py. 2012-10-24 13:48:09 +02:00
Dirk Eschler
3acfa09dbc - Validated codebase against pep8 and pyflakes.
- Fixed an undefined name bug in add_localized_fields error message when a model already has a field by the name that is added.
- Fixed redefined method name in ModeltranslationWithFileFields test class.
2012-10-24 11:06:35 +02:00
Dirk Eschler
a3db814551 Added unittest for FileField and ImageField and incorporated a small fix for the pre_save method of TranslationField (thanks to Bruno Tavares). 2012-10-12 12:59:52 +00:00
Dirk Eschler
4fe3f6d837 Updated unittest of rule 3 to do a language switch. This should demonstrate a wrong behaviour of save when the current language is different than the default language. In this case the original field is set to value of the current language's field. See issue 33 for details. 2012-07-12 22:15:44 +00:00
Dirk Eschler
4579d831e5 Use app-level translation files in favour of a single project-level one. Adds an autoregister feature similiar to the one provided by Django's admin. A new setting MODELTRANSLATION_TRANSLATION_FILES keeps backwards compatibility with older versions. This is basically a merge from django-modeltranslation-wrapper with a few changes regarding how registration is triggered. See documentation for details. Resolves issues 58 and 71 (thanks to Jacek Tomaszewski, the author of modeltranslation-wrapper). 2012-07-10 12:58:08 +00:00