Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- $ hg qapplied
- t694/t694_r1534486_bloodhound_i18n.diff
- $ python setup.py test -m tests
- running test
- running egg_info
- writing BloodhoundMultiProduct.egg-info/PKG-INFO
- writing top-level names to BloodhoundMultiProduct.egg-info/top_level.txt
- writing dependency_links to BloodhoundMultiProduct.egg-info/dependency_links.txt
- writing entry points to BloodhoundMultiProduct.egg-info/entry_points.txt
- writing BloodhoundMultiProduct.egg-info/PKG-INFO
- writing top-level names to BloodhoundMultiProduct.egg-info/top_level.txt
- writing dependency_links to BloodhoundMultiProduct.egg-info/dependency_links.txt
- writing entry points to BloodhoundMultiProduct.egg-info/entry_points.txt
- reading manifest file 'BloodhoundMultiProduct.egg-info/SOURCES.txt'
- writing manifest file 'BloodhoundMultiProduct.egg-info/SOURCES.txt'
- running build_ext
- fe_sendauth: no password supplied
- test_with_global_product_component_manager (tests.core.MultiProductExtensionPointTestCase) ... ok
- test_with_product_component_manager (tests.core.MultiProductExtensionPointTestCase) ... ok
- No parent attribute, no _all_product_envs method ... ok
- test_params_as_args (tests.hooks.ProductizedHrefTestCase) ... ok
- test_params_as_dictionary (tests.hooks.ProductizedHrefTestCase) ... ok
- test_params_as_kwargs (tests.hooks.ProductizedHrefTestCase) ... ok
- test_paths_no_transform (tests.hooks.ProductizedHrefTestCase) ... ok
- test_static_path_no_transform (tests.hooks.ProductizedHrefTestCase) ... ok
- test_change_listener_changed (tests.model.ProductTestCase) ... ok
- test_change_listener_created (tests.model.ProductTestCase) ... ok
- test_change_listener_deleted (tests.model.ProductTestCase) ... ok
- test that we are able to delete Products ... ok
- test that we error when deleting twice on the same key ... ok
- tests that we can use table.field syntax to get to the field data ... ok
- tests that we can use table.field = something to set field data ... ok
- test_get_tickets (tests.model.ProductTestCase) ... ok
- test saving new Product ... ok
- test attempted saving of Product with existing key fails ... ok
- ensure that that insert method works when _meta does not specify ... ok
- tests that select can search Products by fields ... ok
- tests that table.field style update works ... ok
- tests that we can use update to push data to the database ... ok
- tests that we raise an error for attempting to update key fields ... ok
- test_batch_ticket_insert_after_upgrade (tests.upgrade.EnvironmentUpgradeTestCase) ... ERROR
- test_can_insert_tickets_after_upgrade (tests.upgrade.EnvironmentUpgradeTestCase) ... ok
- test_can_insert_tickets_with_same_id_to_different_products (tests.upgrade.EnvironmentUpgradeTestCase) ... ok
- test_can_upgrade_database_with_orphaned_attachments (tests.upgrade.EnvironmentUpgradeTestCase) ... ok
- test_can_upgrade_database_with_ticket_attachment_with_text_ids (tests.upgrade.EnvironmentUpgradeTestCase) ... ok
- test_can_upgrade_environment_with_multi_product_disabled (tests.upgrade.EnvironmentUpgradeTestCase) ... ok
- test_can_upgrade_multi_product_from_v1 (tests.upgrade.EnvironmentUpgradeTestCase) ... ok
- test_can_upgrade_multi_product_from_v2 (tests.upgrade.EnvironmentUpgradeTestCase) ... ok
- test_creating_new_product_calls_environment_created (tests.upgrade.EnvironmentUpgradeTestCase) ... ok
- test_migrating_to_multiproduct_with_custom_default_prefix (tests.upgrade.EnvironmentUpgradeTestCase) ... ok
- test_migration_to_multiproduct_preserves_ticket_ids (tests.upgrade.EnvironmentUpgradeTestCase) ... ok
- test_upgrade_copies_content_of_system_tables_to_all_products (tests.upgrade.EnvironmentUpgradeTestCase) ... ok
- test_upgrade_creates_default_product (tests.upgrade.EnvironmentUpgradeTestCase) ... ok
- test_upgrade_creates_multi_product_tables_and_adds_product_column (tests.upgrade.EnvironmentUpgradeTestCase) ... ok
- test_upgrade_existing_plugin_to_multiproduct (tests.upgrade.EnvironmentUpgradeTestCase) ... ok
- test_upgrade_moves_custom_wikis_to_default_product (tests.upgrade.EnvironmentUpgradeTestCase) ... ok
- test_upgrade_moves_system_wikis_to_products (tests.upgrade.EnvironmentUpgradeTestCase) ... ok
- test_upgrade_moves_tickets_and_related_objects_to_default_prod (tests.upgrade.EnvironmentUpgradeTestCase) ... ok
- test_upgrade_plugin (tests.upgrade.EnvironmentUpgradeTestCase) ... ok
- test_upgrade_plugin_to_multiproduct (tests.upgrade.EnvironmentUpgradeTestCase) ... ok
- test_upgrading_database_moves_attachment_to_correct_product (tests.upgrade.EnvironmentUpgradeTestCase) ... ok
- test_upgrading_existing_plugin_leaves_data_in_global_env (tests.upgrade.EnvironmentUpgradeTestCase) ... ok
- test_batch_ticket_insert_after_upgrade (tests.upgrade_postgres.PostgresEnvironmentUpgradeTestCase) ... /usr/lib/pymodules/python2.6/unittest2/case.py:326: DeprecationWarning: Use of a TestResult without an addSkip method is deprecated
- self._addSkip(result, skip_why)
- ok
- test_can_insert_tickets_after_upgrade (tests.upgrade_postgres.PostgresEnvironmentUpgradeTestCase) ... ok
- test_can_insert_tickets_with_same_id_to_different_products (tests.upgrade_postgres.PostgresEnvironmentUpgradeTestCase) ... ok
- test_can_upgrade_database_with_orphaned_attachments (tests.upgrade_postgres.PostgresEnvironmentUpgradeTestCase) ... ok
- test_can_upgrade_database_with_ticket_attachment_with_text_ids (tests.upgrade_postgres.PostgresEnvironmentUpgradeTestCase) ... ok
- test_can_upgrade_environment_with_multi_product_disabled (tests.upgrade_postgres.PostgresEnvironmentUpgradeTestCase) ... ok
- test_can_upgrade_multi_product_from_v1 (tests.upgrade_postgres.PostgresEnvironmentUpgradeTestCase) ... ok
- test_can_upgrade_multi_product_from_v2 (tests.upgrade_postgres.PostgresEnvironmentUpgradeTestCase) ... ok
- test_creating_new_product_calls_environment_created (tests.upgrade_postgres.PostgresEnvironmentUpgradeTestCase) ... ok
- test_migrating_to_multiproduct_with_custom_default_prefix (tests.upgrade_postgres.PostgresEnvironmentUpgradeTestCase) ... ok
- test_migration_to_multiproduct_preserves_ticket_ids (tests.upgrade_postgres.PostgresEnvironmentUpgradeTestCase) ... ok
- test_upgrade_copies_content_of_system_tables_to_all_products (tests.upgrade_postgres.PostgresEnvironmentUpgradeTestCase) ... ok
- test_upgrade_creates_default_product (tests.upgrade_postgres.PostgresEnvironmentUpgradeTestCase) ... ok
- test_upgrade_creates_multi_product_tables_and_adds_product_column (tests.upgrade_postgres.PostgresEnvironmentUpgradeTestCase) ... ok
- test_upgrade_existing_plugin_to_multiproduct (tests.upgrade_postgres.PostgresEnvironmentUpgradeTestCase) ... ok
- test_upgrade_moves_custom_wikis_to_default_product (tests.upgrade_postgres.PostgresEnvironmentUpgradeTestCase) ... ok
- test_upgrade_moves_system_wikis_to_products (tests.upgrade_postgres.PostgresEnvironmentUpgradeTestCase) ... ok
- test_upgrade_moves_tickets_and_related_objects_to_default_prod (tests.upgrade_postgres.PostgresEnvironmentUpgradeTestCase) ... ok
- test_upgrade_plugin (tests.upgrade_postgres.PostgresEnvironmentUpgradeTestCase) ... ok
- test_upgrade_plugin_to_multiproduct (tests.upgrade_postgres.PostgresEnvironmentUpgradeTestCase) ... ok
- test_upgrading_database_moves_attachment_to_correct_product (tests.upgrade_postgres.PostgresEnvironmentUpgradeTestCase) ... ok
- test_upgrading_existing_plugin_leaves_data_in_global_env (tests.upgrade_postgres.PostgresEnvironmentUpgradeTestCase) ... ok
- test_custom_alter_table (tests.db.cursor.DbCursorTestCase) ... ok
- test_custom_create_table (tests.db.cursor.DbCursorTestCase) ... ok
- test_custom_insert (tests.db.cursor.DbCursorTestCase) ... ok
- test_custom_select (tests.db.cursor.DbCursorTestCase) ... ok
- test_custom_update (tests.db.cursor.DbCursorTestCase) ... ok
- test_insert_with_product (tests.db.cursor.DbCursorTestCase) ... ok
- test_lowercase_tokens (tests.db.cursor.DbCursorTestCase) ... ok
- test_system_insert_nontranslated (tests.db.cursor.DbCursorTestCase) ... ok
- test_system_insert_translated (tests.db.cursor.DbCursorTestCase) ... ok
- test_system_select_nontranslated (tests.db.cursor.DbCursorTestCase) ... ok
- test_system_select_translated (tests.db.cursor.DbCursorTestCase) ... FAIL
- test_system_update_nontranslated (tests.db.cursor.DbCursorTestCase) ... ok
- test_system_update_translated (tests.db.cursor.DbCursorTestCase) ... ok
- ======================================================================
- ERROR: test_batch_ticket_insert_after_upgrade (tests.upgrade.EnvironmentUpgradeTestCase)
- ----------------------------------------------------------------------
- Traceback (most recent call last):
- File "/path/to/bloodhound/bloodhound_multiproduct/tests/upgrade.py", line 406, in test_batch_ticket_insert_after_upgrade
- db("""INSERT INTO ticket (summary) SELECT summary FROM tmp""")
- File "/path/to/bloodhound/bloodhound_multiproduct/multiproduct/dbcursor.py", line 120, in execute
- return self.connection.execute(query, params=params)
- File "/path/to/bloodhound/trac/trac/db/util.py", line 121, in execute
- cursor.execute(query, params)
- File "/path/to/bloodhound/bloodhound_multiproduct/multiproduct/dbcursor.py", line 85, in execute
- return super(BloodhoundIterableCursor, self).execute(translate_sql(self.env, sql), args=args)
- File "/path/to/bloodhound/trac/trac/db/util.py", line 66, in execute
- return self.cursor.execute(sql)
- File "/path/to/bloodhound/trac/trac/db/sqlite_backend.py", line 78, in execute
- result = PyFormatCursor.execute(self, *args)
- File "/path/to/bloodhound/trac/trac/db/sqlite_backend.py", line 56, in execute
- args or [])
- File "/path/to/bloodhound/trac/trac/db/sqlite_backend.py", line 48, in _rollback_on_error
- return function(self, *args, **kwargs)
- OperationalError: 2 values for 3 columns
- ======================================================================
- FAIL: test_system_select_translated (tests.db.cursor.DbCursorTestCase)
- ----------------------------------------------------------------------
- Traceback (most recent call last):
- File "/path/to/bloodhound/bloodhound_multiproduct/tests/db/cursor.py", line 1023, in test_system_select_translated
- self._run_test('system_select_translated')
- File "/path/to/bloodhound/bloodhound_multiproduct/tests/db/cursor.py", line 1017, in _run_test
- self.assertEquals(stripped_sql_check, stripped_translated_sql)
- AssertionError: 'INSERT INTO ticket(id, type, time, changetime, component, severity, priority,\nowner, reporter, cc, version, milestone, status, resolution,\nsummary, description, keywords, product)\nSELECT id, \'defect\', time, changetime, component, severity, priority, owner,\nreporter, cc, version, milestone, status, resolution, summary,\ndescription, keywords, \'PRODUCT\' FROM (SELECT * FROM "PRODUCT_ticket_old") AS ticket_old\nWHERE COALESCE(severity,\'\') <> \'enhancement\'' != u'INSERT INTO ticket(id, type, time, changetime, component, severity, priority,\nowner, reporter, cc, version, milestone, status, resolution,\nsummary, description, keywords, product, id)\nSELECT id, \'defect\', time, changetime, component, severity, priority, owner,\nreporter, cc, version, milestone, status, resolution, summary,\ndescription, keywords, \'PRODUCT\' FROM (SELECT * FROM "PRODUCT_ticket_old") AS ticket_old\nWHERE COALESCE(severity,\'\') <> \'enhancement\''
- ----------------------------------------------------------------------
- Ran 80 tests in 244.405s
- FAILED (failures=1, errors=1)
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement