Created
May 14, 2009 15:20
-
-
Save gabrielfalcao/111710 to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| gabriel@morena:~/Projetos/dead-parrot$ python setup.py test | |
| running test | |
| running egg_info | |
| writing Dead_Parrot.egg-info/PKG-INFO | |
| writing top-level names to Dead_Parrot.egg-info/top_level.txt | |
| writing dependency_links to Dead_Parrot.egg-info/dependency_links.txt | |
| reading manifest file 'Dead_Parrot.egg-info/SOURCES.txt' | |
| writing manifest file 'Dead_Parrot.egg-info/SOURCES.txt' | |
| running build_ext | |
| test_relation_has_from_model_class_as_attribute (tests.test_relationships.TestForeignKey) ... ok | |
| test_relation_has_to_model_class_as_attribute (tests.test_relationships.TestForeignKey) ... ok | |
| test_relation_with_class_and_app_label_string (tests.test_relationships.TestForeignKey) ... ok | |
| test_relation_with_class_object (tests.test_relationships.TestForeignKey) ... ok | |
| test_relation_with_class_string (tests.test_relationships.TestForeignKey) ... ok | |
| test_relation_with_module_name (tests.test_relationships.TestForeignKey) ... ok | |
| test_to_json_evaluated (tests.test_relationships.TestForeignKeySerialization) ... ok | |
| test_to_json_unevaluated (tests.test_relationships.TestForeignKeySerialization) ... ok | |
| test_to_xml_evaluated (tests.test_relationships.TestForeignKeySerialization) ... ok | |
| test_to_xml_unevaluated (tests.test_relationships.TestForeignKeySerialization) ... ok | |
| test_set_from_model (tests.test_relationships.TestRelationShipBase) ... ok | |
| test_set_to_model (tests.test_relationships.TestRelationShipBase) ... ok | |
| test_deserialization (tests.test_serialization.TestJSONSerializer) ... ok | |
| test_fail_construct (tests.test_serialization.TestJSONSerializer) ... ok | |
| test_serialization (tests.test_serialization.TestJSONSerializer) ... ok | |
| test_fail_get_unknown (tests.test_serialization.TestSerializersRegistry) ... ok | |
| test_get_json_serializer (tests.test_serialization.TestSerializersRegistry) ... ok | |
| test_get_xml_serializer (tests.test_serialization.TestSerializersRegistry) ... ok | |
| test_registry_requires_implementation (tests.test_serialization.TestSerializersRegistry) ... ok | |
| test_deserialization (tests.test_serialization.TestXMLSerializer) ... ok | |
| test_fail_as_object (tests.test_serialization.TestXMLSerializer) ... ok | |
| test_fail_construction (tests.test_serialization.TestXMLSerializer) ... ok | |
| test_serialization (tests.test_serialization.TestXMLSerializer) ... ok | |
| test_serialization_missing (tests.test_serialization.TestXMLSerializer) ... ok | |
| test_auto_foreignkey (tests.test_fields.TestFieldsBasicBehavior) ... ok | |
| test_booleanfield_fail (tests.test_fields.TestFieldsBasicBehavior) ... ok | |
| test_booleanfield_fail_construct (tests.test_fields.TestFieldsBasicBehavior) ... ok | |
| test_booleanfield_success (tests.test_fields.TestFieldsBasicBehavior) ... ok | |
| test_booleanfield_success_with_stringified_boolean_type_false (tests.test_fields.TestFieldsBasicBehavior) ... ok | |
| test_booleanfield_success_with_stringified_boolean_type_true (tests.test_fields.TestFieldsBasicBehavior) ... ok | |
| test_charfield_fail (tests.test_fields.TestFieldsBasicBehavior) ... ok | |
| test_charfield_fail_construct (tests.test_fields.TestFieldsBasicBehavior) ... ok | |
| test_charfield_success (tests.test_fields.TestFieldsBasicBehavior) ... ok | |
| test_charfield_success_metadata (tests.test_fields.TestFieldsBasicBehavior) ... ok | |
| test_charfield_success_validate (tests.test_fields.TestFieldsBasicBehavior) ... ok | |
| test_datefield_fail_format (tests.test_fields.TestFieldsBasicBehavior) ... ok | |
| test_datefield_fail_types (tests.test_fields.TestFieldsBasicBehavior) ... ok | |
| test_datefield_success (tests.test_fields.TestFieldsBasicBehavior) ... ok | |
| test_datetimefield_fail_construct (tests.test_fields.TestFieldsBasicBehavior) ... ok | |
| test_datetimefield_fail_format (tests.test_fields.TestFieldsBasicBehavior) ... ok | |
| test_datetimefield_fail_format_type (tests.test_fields.TestFieldsBasicBehavior) ... ok | |
| test_datetimefield_fail_types (tests.test_fields.TestFieldsBasicBehavior) ... ok | |
| test_datetimefield_success (tests.test_fields.TestFieldsBasicBehavior) ... ok | |
| test_decimalfield_fail (tests.test_fields.TestFieldsBasicBehavior) ... ok | |
| test_decimalfield_fail_from_dict (tests.test_fields.TestFieldsBasicBehavior) ... ok | |
| test_decimalfield_fail_on_set (tests.test_fields.TestFieldsBasicBehavior) ... ok | |
| test_decimalfield_metadata (tests.test_fields.TestFieldsBasicBehavior) ... ok | |
| test_decimalfield_raises_on_construct (tests.test_fields.TestFieldsBasicBehavior) ... ok | |
| test_decimalfield_raises_on_setattr (tests.test_fields.TestFieldsBasicBehavior) ... ok | |
| test_decimalfield_success (tests.test_fields.TestFieldsBasicBehavior) ... ok | |
| test_emailfield_fail_construct (tests.test_fields.TestFieldsBasicBehavior) ... ok | |
| test_emailfield_fail_on_validate (tests.test_fields.TestFieldsBasicBehavior) ... ok | |
| test_emailfield_success (tests.test_fields.TestFieldsBasicBehavior) ... ok | |
| test_emailfield_validate_fail_on_set (tests.test_fields.TestFieldsBasicBehavior) ... ok | |
| test_field_fail (tests.test_fields.TestFieldsBasicBehavior) ... ok | |
| test_field_success_null_and_blank (tests.test_fields.TestFieldsBasicBehavior) ... ok | |
| test_floatfield_fail_on_validate (tests.test_fields.TestFieldsBasicBehavior) ... ok | |
| test_floatfield_success (tests.test_fields.TestFieldsBasicBehavior) ... ok | |
| test_integerfield_fail_on_validate (tests.test_fields.TestFieldsBasicBehavior) ... ok | |
| test_integerfield_success (tests.test_fields.TestFieldsBasicBehavior) ... ok | |
| test_phonenumberfield_fail_construct (tests.test_fields.TestFieldsBasicBehavior) ... ok | |
| test_phonenumberfield_fail_validate (tests.test_fields.TestFieldsBasicBehavior) ... ok | |
| test_phonenumberfield_success (tests.test_fields.TestFieldsBasicBehavior) ... ok | |
| test_phonenumberfield_success_maxlength (tests.test_fields.TestFieldsBasicBehavior) ... ok | |
| test_textfield_fail (tests.test_fields.TestFieldsBasicBehavior) ... ok | |
| test_textfield_success (tests.test_fields.TestFieldsBasicBehavior) ... ok | |
| test_timefield_fail_format (tests.test_fields.TestFieldsBasicBehavior) ... ok | |
| test_timefield_fail_format_date (tests.test_fields.TestFieldsBasicBehavior) ... ok | |
| test_timefield_success (tests.test_fields.TestFieldsBasicBehavior) ... ok | |
| test_url_checker (tests.test_fields.TestFieldsBasicBehavior) ... ok | |
| test_urlfield_fail_nonexistent_url (tests.test_fields.TestFieldsBasicBehavior) ... ok | |
| test_urlfield_fail_validate_url (tests.test_fields.TestFieldsBasicBehavior) ... ok | |
| test_urlfield_fail_value_nonstring (tests.test_fields.TestFieldsBasicBehavior) ... ok | |
| test_urlfield_success_no_verify (tests.test_fields.TestFieldsBasicBehavior) ... ok | |
| test_urlfield_success_no_verify_maxlength (tests.test_fields.TestFieldsBasicBehavior) ... ok | |
| test_urlfield_success_validate_url (tests.test_fields.TestFieldsBasicBehavior) ... ok | |
| test_urlfield_success_verify (tests.test_fields.TestFieldsBasicBehavior) ... ok | |
| test_construction (tests.test_managers.TestSQLAlchemyManager) ... ok | |
| test_create (tests.test_managers.TestSQLAlchemyManager) ... /usr/lib/pymodules/python2.5/sqlalchemy/engine/default.py:229: SAWarning: Unicode type received non-unicode bind param value datetime.datetime(2009, 5, 14, 12, 19, 43, 295502) | |
| param.append(processors[key](compiled_params[key])) | |
| ok | |
| test_delete (tests.test_managers.TestSQLAlchemyManager) ... ok | |
| test_delete_raises (tests.test_managers.TestSQLAlchemyManager) ... ok | |
| test_deserialization_xml (tests.test_managers.TestSQLAlchemyManager) ... /usr/lib/pymodules/python2.5/sqlalchemy/engine/default.py:229: SAWarning: Unicode type received non-unicode bind param value datetime.datetime(2009, 5, 14, 12, 19, 43) | |
| param.append(processors[key](compiled_params[key])) | |
| ok | |
| test_engine_setup (tests.test_managers.TestSQLAlchemyManager) ... ok | |
| test_filter (tests.test_managers.TestSQLAlchemyManager) ... ok | |
| test_filter_with_kwargs (tests.test_managers.TestSQLAlchemyManager) ... ok | |
| test_foreign_key (tests.test_managers.TestSQLAlchemyManager) ... ERROR | |
| test_get (tests.test_managers.TestSQLAlchemyManager) ... ok | |
| test_get_all (tests.test_managers.TestSQLAlchemyManager) ... ok | |
| test_save (tests.test_managers.TestSQLAlchemyManager) ... ok | |
| test_serialization_xml (tests.test_managers.TestSQLAlchemyManager) ... /usr/lib/pymodules/python2.5/sqlalchemy/engine/default.py:229: SAWarning: Unicode type received non-unicode bind param value datetime.datetime(2009, 5, 14, 12, 19, 43, 598760) | |
| param.append(processors[key](compiled_params[key])) | |
| ok | |
| test_camel_name (tests.test_attributes.TestAttributes) ... ok | |
| test_date (tests.test_attributes.TestAttributes) ... ok | |
| test_datetime_raises (tests.test_attributes.TestAttributes) ... ok | |
| test_datetime_success (tests.test_attributes.TestAttributes) ... ok | |
| test_float (tests.test_attributes.TestAttributes) ... ok | |
| test_int (tests.test_attributes.TestAttributes) ... ok | |
| test_time (tests.test_attributes.TestAttributes) ... ok | |
| test_unicode (tests.test_attributes.TestAttributes) ... ok | |
| test_unsupported_type (tests.test_attributes.TestAttributes) ... ok | |
| test_all_kinds_of_fields_deserialization_to_json (tests.test_models.TestAllFieldsSerialization) ... ok | |
| test_all_kinds_of_fields_deserialization_to_xml (tests.test_models.TestAllFieldsSerialization) ... ok | |
| test_all_kinds_of_fields_serialization_to_json (tests.test_models.TestAllFieldsSerialization) ... ok | |
| test_all_kinds_of_fields_serialization_to_xml (tests.test_models.TestAllFieldsSerialization) ... ok | |
| test_build_metadata_app_label (tests.test_models.TestBasicModel) ... ok | |
| test_build_metadata_verbose_name (tests.test_models.TestBasicModel) ... ok | |
| test_construction (tests.test_models.TestBasicModel) ... ok | |
| test_construction_fail (tests.test_models.TestBasicModel) ... ok | |
| test_from_dict (tests.test_models.TestBasicModel) ... ok | |
| test_from_dict_fail (tests.test_models.TestBasicModel) ... ok | |
| test_from_dict_fail_without_a_dict (tests.test_models.TestBasicModel) ... ok | |
| test_metadata (tests.test_models.TestBasicModel) ... ok | |
| test_metadata_for_pks (tests.test_models.TestBasicModel) ... ok | |
| test_should_not_validate_with_meta_property (tests.test_models.TestBasicModel) ... ok | |
| test_to_dict (tests.test_models.TestBasicModel) ... ok | |
| test_field_names (tests.test_models.TestModelInstrospection) ... ok | |
| test_properties (tests.test_models.TestModelInstrospection) ... ok | |
| test_is_not_valid (tests.test_models.TestModelInternals) ... ok | |
| test_is_valid (tests.test_models.TestModelInternals) ... ok | |
| Here I will test a common behavior: each field of both ... ok | |
| Here I will test a special behavior: at least all ... ok | |
| test_equals_raises (tests.test_models.TestModelOperations) ... ok | |
| test_notequals_success (tests.test_models.TestModelOperations) ... ok | |
| test_get_all_by_app_label (tests.test_models.TestModelRegistry) ... ok | |
| test_get_all_by_module (tests.test_models.TestModelRegistry) ... ok | |
| test_get_model (tests.test_models.TestModelRegistry) ... ok | |
| test_get_model_raises (tests.test_models.TestModelRegistry) ... ok | |
| test_model_registry_apps (tests.test_models.TestModelRegistry) ... ok | |
| test_model_registry_get_all_raises (tests.test_models.TestModelRegistry) ... ok | |
| test_model_registry_global_dict (tests.test_models.TestModelRegistry) ... ok | |
| test_model_registry_modules (tests.test_models.TestModelRegistry) ... ok | |
| test_repeated_names_but_different_app_labels (tests.test_models.TestModelRegistry) ... ok | |
| test_model_deserialization_extra_json (tests.test_models.TestModelSerialization) ... ok | |
| test_model_deserialization_json (tests.test_models.TestModelSerialization) ... ok | |
| test_model_deserialization_xml (tests.test_models.TestModelSerialization) ... ok | |
| test_model_deserialization_xml_json (tests.test_models.TestModelSerialization) ... ok | |
| test_model_serialization_json (tests.test_models.TestModelSerialization) ... ok | |
| test_model_serialization_xml (tests.test_models.TestModelSerialization) ... ok | |
| test_construction_fail (tests.test_models.TestModelSet) ... ok | |
| test_from_dict (tests.test_models.TestModelSet) ... ok | |
| test_to_dict (tests.test_models.TestModelSet) ... ok | |
| test_to_list_operations (tests.test_models.TestModelSet) ... ok | |
| test_modelset_deserialization_json (tests.test_models.TestModelSetSerialization) ... ok | |
| test_modelset_deserialization_xml (tests.test_models.TestModelSetSerialization) ... ok | |
| test_modelset_serialization_json (tests.test_models.TestModelSetSerialization) ... ok | |
| test_modelset_serialization_xml (tests.test_models.TestModelSetSerialization) ... ok | |
| ====================================================================== | |
| ERROR: test_foreign_key (tests.test_managers.TestSQLAlchemyManager) | |
| ---------------------------------------------------------------------- | |
| Traceback (most recent call last): | |
| File "/home/gabriel/Projetos/dead-parrot/tests/test_managers.py", line 221, in test_foreign_key | |
| dog1 = Pet.objects.create(animal=u'Dog', home=dogstore) | |
| File "/home/gabriel/Projetos/dead-parrot/deadparrot/models/managers.py", line 191, in create | |
| mobject = self.model(*args, **kw) | |
| File "<string>", line 4, in __init__ | |
| File "/usr/lib/pymodules/python2.5/sqlalchemy/orm/attributes.py", line 890, in initialize_instance | |
| return manager.events.original_init(*mixed[1:], **kwargs) | |
| File "/home/gabriel/Projetos/dead-parrot/deadparrot/models/base.py", line 197, in __init__ | |
| setattr(self, k, v) | |
| File "/home/gabriel/Projetos/dead-parrot/deadparrot/models/base.py", line 265, in __setattr__ | |
| super(Model, self).__setattr__(attr, val) | |
| File "/usr/lib/pymodules/python2.5/sqlalchemy/orm/attributes.py", line 151, in __set__ | |
| self.impl.set(instance_state(instance), value, None) | |
| File "/usr/lib/pymodules/python2.5/sqlalchemy/orm/attributes.py", line 557, in set | |
| value = self.fire_replace_event(state, value, old, initiator) | |
| File "/usr/lib/pymodules/python2.5/sqlalchemy/orm/attributes.py", line 577, in fire_replace_event | |
| value = ext.set(state, value, previous, initiator or self) | |
| File "/usr/lib/pymodules/python2.5/sqlalchemy/orm/attributes.py", line 810, in set | |
| new_state.get_impl(self.key).append(new_state, state.obj(), initiator, passive=PASSIVE_NO_CALLABLES) | |
| File "/usr/lib/pymodules/python2.5/sqlalchemy/orm/attributes.py", line 900, in get_impl | |
| return self.manager.get_impl(key) | |
| File "/usr/lib/pymodules/python2.5/sqlalchemy/orm/attributes.py", line 1317, in get_impl | |
| return self[key].impl | |
| KeyError: 'pet' | |
| ---------------------------------------------------------------------- | |
| Ran 145 tests in 19.921s | |
| FAILED (errors=1) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment