Advertisement
olemis

Bloodhound multiproduct i18n : test report 2013-10-30

Oct 30th, 2013
210
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Bash 11.14 KB | None | 0 0
  1. $ hg qapplied
  2. t694/t694_r1534486_bloodhound_i18n.diff
  3.  
  4. $ python setup.py test -m tests
  5. running test
  6. running egg_info
  7. writing BloodhoundMultiProduct.egg-info/PKG-INFO
  8. writing top-level names to BloodhoundMultiProduct.egg-info/top_level.txt
  9. writing dependency_links to BloodhoundMultiProduct.egg-info/dependency_links.txt
  10. writing entry points to BloodhoundMultiProduct.egg-info/entry_points.txt
  11. writing BloodhoundMultiProduct.egg-info/PKG-INFO
  12. writing top-level names to BloodhoundMultiProduct.egg-info/top_level.txt
  13. writing dependency_links to BloodhoundMultiProduct.egg-info/dependency_links.txt
  14. writing entry points to BloodhoundMultiProduct.egg-info/entry_points.txt
  15. reading manifest file 'BloodhoundMultiProduct.egg-info/SOURCES.txt'
  16. writing manifest file 'BloodhoundMultiProduct.egg-info/SOURCES.txt'
  17. running build_ext
  18. fe_sendauth: no password supplied
  19.  
  20. test_with_global_product_component_manager (tests.core.MultiProductExtensionPointTestCase) ... ok
  21. test_with_product_component_manager (tests.core.MultiProductExtensionPointTestCase) ... ok
  22. No parent attribute, no _all_product_envs method ... ok
  23. test_params_as_args (tests.hooks.ProductizedHrefTestCase) ... ok
  24. test_params_as_dictionary (tests.hooks.ProductizedHrefTestCase) ... ok
  25. test_params_as_kwargs (tests.hooks.ProductizedHrefTestCase) ... ok
  26. test_paths_no_transform (tests.hooks.ProductizedHrefTestCase) ... ok
  27. test_static_path_no_transform (tests.hooks.ProductizedHrefTestCase) ... ok
  28. test_change_listener_changed (tests.model.ProductTestCase) ... ok
  29. test_change_listener_created (tests.model.ProductTestCase) ... ok
  30. test_change_listener_deleted (tests.model.ProductTestCase) ... ok
  31. test that we are able to delete Products ... ok
  32. test that we error when deleting twice on the same key ... ok
  33. tests that we can use table.field syntax to get to the field data ... ok
  34. tests that we can use table.field = something to set field data ... ok
  35. test_get_tickets (tests.model.ProductTestCase) ... ok
  36. test saving new Product ... ok
  37. test attempted saving of Product with existing key fails ... ok
  38. ensure that that insert method works when _meta does not specify ... ok
  39. tests that select can search Products by fields ... ok
  40. tests that table.field style update works ... ok
  41. tests that we can use update to push data to the database ... ok
  42. tests that we raise an error for attempting to update key fields ... ok
  43. test_batch_ticket_insert_after_upgrade (tests.upgrade.EnvironmentUpgradeTestCase) ... ERROR
  44. test_can_insert_tickets_after_upgrade (tests.upgrade.EnvironmentUpgradeTestCase) ... ok
  45. test_can_insert_tickets_with_same_id_to_different_products (tests.upgrade.EnvironmentUpgradeTestCase) ... ok
  46. test_can_upgrade_database_with_orphaned_attachments (tests.upgrade.EnvironmentUpgradeTestCase) ... ok
  47. test_can_upgrade_database_with_ticket_attachment_with_text_ids (tests.upgrade.EnvironmentUpgradeTestCase) ... ok
  48. test_can_upgrade_environment_with_multi_product_disabled (tests.upgrade.EnvironmentUpgradeTestCase) ... ok
  49. test_can_upgrade_multi_product_from_v1 (tests.upgrade.EnvironmentUpgradeTestCase) ... ok
  50. test_can_upgrade_multi_product_from_v2 (tests.upgrade.EnvironmentUpgradeTestCase) ... ok
  51. test_creating_new_product_calls_environment_created (tests.upgrade.EnvironmentUpgradeTestCase) ... ok
  52. test_migrating_to_multiproduct_with_custom_default_prefix (tests.upgrade.EnvironmentUpgradeTestCase) ... ok
  53. test_migration_to_multiproduct_preserves_ticket_ids (tests.upgrade.EnvironmentUpgradeTestCase) ... ok
  54. test_upgrade_copies_content_of_system_tables_to_all_products (tests.upgrade.EnvironmentUpgradeTestCase) ... ok
  55. test_upgrade_creates_default_product (tests.upgrade.EnvironmentUpgradeTestCase) ... ok
  56. test_upgrade_creates_multi_product_tables_and_adds_product_column (tests.upgrade.EnvironmentUpgradeTestCase) ... ok
  57. test_upgrade_existing_plugin_to_multiproduct (tests.upgrade.EnvironmentUpgradeTestCase) ... ok
  58. test_upgrade_moves_custom_wikis_to_default_product (tests.upgrade.EnvironmentUpgradeTestCase) ... ok
  59. test_upgrade_moves_system_wikis_to_products (tests.upgrade.EnvironmentUpgradeTestCase) ... ok
  60. test_upgrade_moves_tickets_and_related_objects_to_default_prod (tests.upgrade.EnvironmentUpgradeTestCase) ... ok
  61. test_upgrade_plugin (tests.upgrade.EnvironmentUpgradeTestCase) ... ok
  62. test_upgrade_plugin_to_multiproduct (tests.upgrade.EnvironmentUpgradeTestCase) ... ok
  63. test_upgrading_database_moves_attachment_to_correct_product (tests.upgrade.EnvironmentUpgradeTestCase) ... ok
  64. test_upgrading_existing_plugin_leaves_data_in_global_env (tests.upgrade.EnvironmentUpgradeTestCase) ... ok
  65. 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
  66.   self._addSkip(result, skip_why)
  67. ok
  68. test_can_insert_tickets_after_upgrade (tests.upgrade_postgres.PostgresEnvironmentUpgradeTestCase) ... ok
  69. test_can_insert_tickets_with_same_id_to_different_products (tests.upgrade_postgres.PostgresEnvironmentUpgradeTestCase) ... ok
  70. test_can_upgrade_database_with_orphaned_attachments (tests.upgrade_postgres.PostgresEnvironmentUpgradeTestCase) ... ok
  71. test_can_upgrade_database_with_ticket_attachment_with_text_ids (tests.upgrade_postgres.PostgresEnvironmentUpgradeTestCase) ... ok
  72. test_can_upgrade_environment_with_multi_product_disabled (tests.upgrade_postgres.PostgresEnvironmentUpgradeTestCase) ... ok
  73. test_can_upgrade_multi_product_from_v1 (tests.upgrade_postgres.PostgresEnvironmentUpgradeTestCase) ... ok
  74. test_can_upgrade_multi_product_from_v2 (tests.upgrade_postgres.PostgresEnvironmentUpgradeTestCase) ... ok
  75. test_creating_new_product_calls_environment_created (tests.upgrade_postgres.PostgresEnvironmentUpgradeTestCase) ... ok
  76. test_migrating_to_multiproduct_with_custom_default_prefix (tests.upgrade_postgres.PostgresEnvironmentUpgradeTestCase) ... ok
  77. test_migration_to_multiproduct_preserves_ticket_ids (tests.upgrade_postgres.PostgresEnvironmentUpgradeTestCase) ... ok
  78. test_upgrade_copies_content_of_system_tables_to_all_products (tests.upgrade_postgres.PostgresEnvironmentUpgradeTestCase) ... ok
  79. test_upgrade_creates_default_product (tests.upgrade_postgres.PostgresEnvironmentUpgradeTestCase) ... ok
  80. test_upgrade_creates_multi_product_tables_and_adds_product_column (tests.upgrade_postgres.PostgresEnvironmentUpgradeTestCase) ... ok
  81. test_upgrade_existing_plugin_to_multiproduct (tests.upgrade_postgres.PostgresEnvironmentUpgradeTestCase) ... ok
  82. test_upgrade_moves_custom_wikis_to_default_product (tests.upgrade_postgres.PostgresEnvironmentUpgradeTestCase) ... ok
  83. test_upgrade_moves_system_wikis_to_products (tests.upgrade_postgres.PostgresEnvironmentUpgradeTestCase) ... ok
  84. test_upgrade_moves_tickets_and_related_objects_to_default_prod (tests.upgrade_postgres.PostgresEnvironmentUpgradeTestCase) ... ok
  85. test_upgrade_plugin (tests.upgrade_postgres.PostgresEnvironmentUpgradeTestCase) ... ok
  86. test_upgrade_plugin_to_multiproduct (tests.upgrade_postgres.PostgresEnvironmentUpgradeTestCase) ... ok
  87. test_upgrading_database_moves_attachment_to_correct_product (tests.upgrade_postgres.PostgresEnvironmentUpgradeTestCase) ... ok
  88. test_upgrading_existing_plugin_leaves_data_in_global_env (tests.upgrade_postgres.PostgresEnvironmentUpgradeTestCase) ... ok
  89. test_custom_alter_table (tests.db.cursor.DbCursorTestCase) ... ok
  90. test_custom_create_table (tests.db.cursor.DbCursorTestCase) ... ok
  91. test_custom_insert (tests.db.cursor.DbCursorTestCase) ... ok
  92. test_custom_select (tests.db.cursor.DbCursorTestCase) ... ok
  93. test_custom_update (tests.db.cursor.DbCursorTestCase) ... ok
  94. test_insert_with_product (tests.db.cursor.DbCursorTestCase) ... ok
  95. test_lowercase_tokens (tests.db.cursor.DbCursorTestCase) ... ok
  96. test_system_insert_nontranslated (tests.db.cursor.DbCursorTestCase) ... ok
  97. test_system_insert_translated (tests.db.cursor.DbCursorTestCase) ... ok
  98. test_system_select_nontranslated (tests.db.cursor.DbCursorTestCase) ... ok
  99. test_system_select_translated (tests.db.cursor.DbCursorTestCase) ... FAIL
  100. test_system_update_nontranslated (tests.db.cursor.DbCursorTestCase) ... ok
  101. test_system_update_translated (tests.db.cursor.DbCursorTestCase) ... ok
  102.  
  103. ======================================================================
  104. ERROR: test_batch_ticket_insert_after_upgrade (tests.upgrade.EnvironmentUpgradeTestCase)
  105. ----------------------------------------------------------------------
  106. Traceback (most recent call last):
  107.   File "/path/to/bloodhound/bloodhound_multiproduct/tests/upgrade.py", line 406, in test_batch_ticket_insert_after_upgrade
  108.     db("""INSERT INTO ticket (summary) SELECT summary FROM tmp""")
  109.   File "/path/to/bloodhound/bloodhound_multiproduct/multiproduct/dbcursor.py", line 120, in execute
  110.     return self.connection.execute(query, params=params)
  111.   File "/path/to/bloodhound/trac/trac/db/util.py", line 121, in execute
  112.     cursor.execute(query, params)
  113.   File "/path/to/bloodhound/bloodhound_multiproduct/multiproduct/dbcursor.py", line 85, in execute
  114.     return super(BloodhoundIterableCursor, self).execute(translate_sql(self.env, sql), args=args)
  115.   File "/path/to/bloodhound/trac/trac/db/util.py", line 66, in execute
  116.     return self.cursor.execute(sql)
  117.   File "/path/to/bloodhound/trac/trac/db/sqlite_backend.py", line 78, in execute
  118.     result = PyFormatCursor.execute(self, *args)
  119.   File "/path/to/bloodhound/trac/trac/db/sqlite_backend.py", line 56, in execute
  120.     args or [])
  121.   File "/path/to/bloodhound/trac/trac/db/sqlite_backend.py", line 48, in _rollback_on_error
  122.     return function(self, *args, **kwargs)
  123. OperationalError: 2 values for 3 columns
  124.  
  125. ======================================================================
  126. FAIL: test_system_select_translated (tests.db.cursor.DbCursorTestCase)
  127. ----------------------------------------------------------------------
  128. Traceback (most recent call last):
  129.   File "/path/to/bloodhound/bloodhound_multiproduct/tests/db/cursor.py", line 1023, in test_system_select_translated
  130.     self._run_test('system_select_translated')
  131.   File "/path/to/bloodhound/bloodhound_multiproduct/tests/db/cursor.py", line 1017, in _run_test
  132.     self.assertEquals(stripped_sql_check, stripped_translated_sql)
  133. 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\''
  134.  
  135. ----------------------------------------------------------------------
  136. Ran 80 tests in 244.405s
  137.  
  138. FAILED (failures=1, errors=1)
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement