Source

djangotoolbox / djangotoolbox / tests.py

Author Commit Message Labels Comments Date
Waldemar Kornewald
enabled a unit test which now works in SDK 1.6.0
Comments 4
Jonas Haag
Fixed 'add' parameter of embedded models in lists add? should depend on the *embedded* model's state, not the containing model's.
Jonas Haag
Improved an error message
Jonas Haag
Fixed loading of EmbeddedModelFields that use a custom db_column.
Jonas Haag
Fix #9: Allow field classes to be passed to fields (not only field instances)
Jonas Haag
Fix #39: Don't call convert_value_from_db for fields' default values (which don't come from the database)
Jonas Haag
Fixed #7: Exclude unset primary keys from embedded model instances. At the same time, simplified EmbeddedModelField.pre_save and .get_db_prep_save.
Thomas Wanschik
Thomas Wanschik
fixed test so that running them on production works correctly
Waldemar Kornewald
Tests that make sure we can sort embedded models in lists nicely. Contributed by Jonas Haag.
Waldemar Kornewald
Adds test cases that assert that ordering happens only once for each save (and also happens *before* any data type conversions). Also fixes the code accordingly. Contributed by Jonas Haag.
Waldemar Kornewald
Adds a test case for nice TypeErrors in EmbeddedModelField's seriaization method, plus one fix to make the tests pass (nice error messages should also be used in the "untyped" case) Contributed by Jonas Haag.
Waldemar Kornewald
fixed ForeignKey support in embedded models. thanks for the patch Jonas Haag!
Waldemar Kornewald
extended select_related unit test
Waldemar Kornewald
disabled select_related by default and added unit test to make sure everything works
Waldemar Kornewald
added unit test for post_save "created" parameter
Waldemar Kornewald
added support for lazy lookups of models to EmbeddedModelField. Thanks to Jonas Haag for the patch
Waldemar Kornewald
added support for EmbeddedModelField. Thanks to Jonas Haag for the patch! only slightly modified his patch
Waldemar Kornewald
switched to unittest2 library's skipIf (now part of Django 1.3)
Waldemar Kornewald
fixed support for null=True in fields. thanks to Jonas Haag for the patch
Waldemar Kornewald
Vladimir Mihailenco
Support for proxy models
Waldemar Kornewald
added value conversion test
Waldemar Kornewald
renamed GenericField to RawField to make it clearer what it does (i.e., you can pass any low-level datatype in there and it'll be stored without any field-specific conversion, so not all field-specific types might be supported: e.g. GAE doesn't support date and time objects, only datetime)
Waldemar Kornewald
added SetField and DictField and extended ListField with ordering support (all contributed by Jonas Haag). only the (very simple) unit tests are by me (added check if dicts are supported by the DB, for instance)
Waldemar Kornewald
removed unused imports
Waldemar Kornewald
hmm, didn't work correctly in all cases, so reverting
Waldemar Kornewald
fixed foreignkey__isnull=True queries by rewriting them to not use a JOIN
fhahn
remove tests for NonrelPermissionBackend
fhahn
re-enable other tests
  1. Prev
  2. 1
  3. 2
  4. Next