Advertisement
olemis

Bloodhound multiproduct [1572392] : Test modules one-by-one

Mar 1st, 2014
206
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Bash 16.91 KB | None | 0 0
  1.  
  2.  
  3. $ ls tests/*.py
  4. tests/attachment.py  tests/core.py  tests/hooks.py     tests/model.py  tests/resource.py          tests/upgrade.py  tests/wikisyntax.py
  5. tests/config.py      tests/env.py   tests/__init__.py  tests/perm.py   tests/upgrade_postgres.py  tests/web_ui.py
  6.  
  7. $ python -V
  8. Python 2.7.4
  9.  
  10. $ PYTHONPATH=. python -m tests.attachment
  11. tests/__init__.py:29: UserWarning: Module tests was already imported from tests/__init__.pyc, but /usr/lib/python2.7/dist-packages is being added to sys.path
  12.   from pkg_resources import resource_exists, resource_filename, \
  13. ..............
  14. ----------------------------------------------------------------------
  15. Ran 14 tests in 0.527s
  16.  
  17. OK
  18.  
  19. $ PYTHONPATH=. python -m tests.config
  20. tests/__init__.py:29: UserWarning: Module tests was already imported from tests/__init__.pyc, but /usr/lib/python2.7/dist-packages is being added to sys.path
  21.   from pkg_resources import resource_exists, resource_filename, \
  22. ..............................
  23. ----------------------------------------------------------------------
  24. Ran 30 tests in 4.057s
  25.  
  26. OK
  27.  
  28. $ PYTHONPATH=. python -m tests.core
  29. tests/__init__.py:29: UserWarning: Module tests was already imported from tests/__init__.pyc, but /usr/lib/python2.7/dist-packages is being added to sys.path
  30.   from pkg_resources import resource_exists, resource_filename, \
  31. ...
  32. ----------------------------------------------------------------------
  33. Ran 3 tests in 0.000s
  34.  
  35. OK
  36.  
  37. $ PYTHONPATH=. python -m tests.env
  38. tests/__init__.py:29: UserWarning: Module tests was already imported from tests/__init__.pyc, but /usr/lib/python2.7/dist-packages is being added to sys.path
  39.   from pkg_resources import resource_exists, resource_filename, \
  40. ......................
  41. ----------------------------------------------------------------------
  42. Ran 22 tests in 30.939s
  43.  
  44. OK
  45.  
  46. $ PYTHONPATH=. python -m tests.hooks
  47. tests/__init__.py:29: UserWarning: Module tests was already imported from tests/__init__.pyc, but /usr/lib/python2.7/dist-packages is being added to sys.path
  48.   from pkg_resources import resource_exists, resource_filename, \
  49. .....
  50. ----------------------------------------------------------------------
  51. Ran 5 tests in 0.001s
  52.  
  53. OK
  54.  
  55. $ PYTHONPATH=. python -m tests.model
  56. tests/__init__.py:29: UserWarning: Module tests was already imported from tests/__init__.pyc, but /usr/lib/python2.7/dist-packages is being added to sys.path
  57.   from pkg_resources import resource_exists, resource_filename, \
  58. ...............
  59. ----------------------------------------------------------------------
  60. Ran 15 tests in 0.352s
  61.  
  62. OK
  63.  
  64. $ PYTHONPATH=. python -m tests.perm
  65. tests/__init__.py:29: UserWarning: Module tests was already imported from tests/__init__.pyc, but /usr/lib/python2.7/dist-packages is being added to sys.path
  66.   from pkg_resources import resource_exists, resource_filename, \
  67. .......................................................
  68. ----------------------------------------------------------------------
  69. Ran 55 tests in 3.627s
  70.  
  71. OK
  72.  
  73. $ PYTHONPATH=. python -m tests.resource
  74. tests/__init__.py:29: UserWarning: Module tests was already imported from tests/__init__.pyc, but /usr/lib/python2.7/dist-packages is being added to sys.path
  75.   from pkg_resources import resource_exists, resource_filename, \
  76. ...........
  77.  
  78. ----------------------------------------------------------------------
  79. Ran 11 tests in 0.779s
  80.  
  81. OK
  82.  
  83. $ PYTHONPATH=. python -m tests.upgrade &> /tmp/trac-tests.txt
  84. tests/__init__.py:29: UserWarning: Module tests was already imported from tests/__init__.pyc, but /usr/lib/python2.7/dist-packages is being added to sys.path
  85.   from pkg_resources import resource_exists, resource_filename, \
  86. EEE...EE..E......E....
  87. ======================================================================
  88. ERROR: test_batch_ticket_insert_after_upgrade (__main__.EnvironmentUpgradeTestCase)
  89. ----------------------------------------------------------------------
  90. Traceback (most recent call last):
  91.   File "/path/to/bh/bloodhound_multiproduct/tests/upgrade.py", line 405, in test_batch_ticket_insert_after_upgrade
  92.     db("""INSERT INTO ticket (summary) SELECT summary FROM tmp""")
  93.   File "multiproduct/dbcursor.py", line 122, in execute
  94.     return self.connection.execute(query, params=params)
  95.   File "/path/to/bh/trac/trac/db/util.py", line 121, in execute
  96.     cursor.execute(query, params)
  97.   File "multiproduct/dbcursor.py", line 87, in execute
  98.     return super(BloodhoundIterableCursor, self).execute(translate_sql(self.env, sql), args=args)
  99.   File "/path/to/bh/trac/trac/db/util.py", line 66, in execute
  100.     return self.cursor.execute(sql)
  101.   File "/path/to/bh/trac/trac/db/sqlite_backend.py", line 78, in execute
  102.     result = PyFormatCursor.execute(self, *args)
  103.   File "/path/to/bh/trac/trac/db/sqlite_backend.py", line 56, in execute
  104.     args or [])
  105.   File "/path/to/bh/trac/trac/db/sqlite_backend.py", line 48, in _rollback_on_error
  106.     return function(self, *args, **kwargs)
  107. OperationalError: 2 values for 3 columns
  108.  
  109. ======================================================================
  110. ERROR: test_can_insert_tickets_after_upgrade (__main__.EnvironmentUpgradeTestCase)
  111. ----------------------------------------------------------------------
  112. Traceback (most recent call last):
  113.   File "/path/to/bh/bloodhound_multiproduct/tests/upgrade.py", line 374, in test_can_insert_tickets_after_upgrade
  114.     ticket = Ticket(self.env)
  115.   File "/path/to/bh/trac/trac/ticket/model.py", line 71, in __init__
  116.     self.fields = TicketSystem(self.env).get_ticket_fields()
  117.   File "/path/to/bh/trac/trac/ticket/api.py", line 310, in get_ticket_fields
  118.     fields = copy.deepcopy(self.fields)
  119.   File "/usr/lib/python2.7/copy.py", line 163, in deepcopy
  120.     y = copier(x, memo)
  121.   File "/usr/lib/python2.7/copy.py", line 230, in _deepcopy_list
  122.     y.append(deepcopy(a, memo))
  123.   File "/usr/lib/python2.7/copy.py", line 163, in deepcopy
  124.     y = copier(x, memo)
  125.   File "/usr/lib/python2.7/copy.py", line 257, in _deepcopy_dict
  126.     y[deepcopy(key, memo)] = deepcopy(value, memo)
  127.   File "/usr/lib/python2.7/copy.py", line 190, in deepcopy
  128.     y = _reconstruct(x, rv, 1, memo)
  129.   File "/usr/lib/python2.7/copy.py", line 346, in _reconstruct
  130.     setattr(y, key, value)
  131.   File "/path/to/venv/local/lib/python2.7/site-packages/babel/support.py", line 255, in __setattr__
  132.     setattr(self.value, name, value)
  133.   File "/path/to/venv/local/lib/python2.7/site-packages/babel/support.py", line 182, in value
  134.     if self._value is None:
  135.   File "/path/to/venv/local/lib/python2.7/site-packages/babel/support.py", line 252, in __getattr__
  136.     return getattr(self.value, name)
  137.   File "/path/to/venv/local/lib/python2.7/site-packages/babel/support.py", line 182, in value
  138.     if self._value is None:
  139. [...]
  140.  File "/path/to/venv/local/lib/python2.7/site-packages/babel/support.py", line 252, in __getattr__
  141.     return getattr(self.value, name)
  142.   File "/path/to/venv/local/lib/python2.7/site-packages/babel/support.py", line 182, in value
  143.     if self._value is None:
  144.   File "/path/to/venv/local/lib/python2.7/site-packages/babel/support.py", line 252, in __getattr__
  145.     return getattr(self.value, name)
  146. RuntimeError: maximum recursion depth exceeded
  147.  
  148. ======================================================================
  149. ERROR: test_can_insert_tickets_with_same_id_to_different_products (__main__.EnvironmentUpgradeTestCase)
  150. ----------------------------------------------------------------------
  151. Traceback (most recent call last):
  152.   File "/path/to/bh/bloodhound_multiproduct/tests/upgrade.py", line 385, in test_can_insert_tickets_with_same_id_to_different_products
  153.     t1 = Ticket(self.env, 1)
  154.   File "/path/to/bh/trac/trac/ticket/model.py", line 71, in __init__
  155.     self.fields = TicketSystem(self.env).get_ticket_fields()
  156.   File "/path/to/bh/trac/trac/ticket/api.py", line 310, in get_ticket_fields
  157.     fields = copy.deepcopy(self.fields)
  158.   File "/usr/lib/python2.7/copy.py", line 163, in deepcopy
  159.     y = copier(x, memo)
  160.   File "/usr/lib/python2.7/copy.py", line 230, in _deepcopy_list
  161.     y.append(deepcopy(a, memo))
  162.   File "/usr/lib/python2.7/copy.py", line 163, in deepcopy
  163.     y = copier(x, memo)
  164.   File "/usr/lib/python2.7/copy.py", line 257, in _deepcopy_dict
  165.     y[deepcopy(key, memo)] = deepcopy(value, memo)
  166.   File "/usr/lib/python2.7/copy.py", line 190, in deepcopy
  167.     y = _reconstruct(x, rv, 1, memo)
  168.   File "/usr/lib/python2.7/copy.py", line 346, in _reconstruct
  169.     setattr(y, key, value)
  170.   File "/path/to/venv/local/lib/python2.7/site-packages/babel/support.py", line 255, in __setattr__
  171.     setattr(self.value, name, value)
  172.   File "/path/to/venv/local/lib/python2.7/site-packages/babel/support.py", line 182, in value
  173.     if self._value is None:
  174.   File "/path/to/venv/local/lib/python2.7/site-packages/babel/support.py", line 252, in __getattr__
  175.     return getattr(self.value, name)
  176.   File "/path/to/venv/local/lib/python2.7/site-packages/babel/support.py", line 182, in value
  177.     if self._value is None:
  178. [...]
  179.   File "/path/to/venv/local/lib/python2.7/site-packages/babel/support.py", line 252, in __getattr__
  180.     return getattr(self.value, name)
  181. RuntimeError: maximum recursion depth exceeded
  182.  
  183. ======================================================================
  184. ERROR: test_can_upgrade_multi_product_from_v1 (__main__.EnvironmentUpgradeTestCase)
  185. ----------------------------------------------------------------------
  186. Traceback (most recent call last):
  187.   File "/path/to/bh/bloodhound_multiproduct/tests/upgrade.py", line 247, in test_can_upgrade_multi_product_from_v1
  188.     Ticket(self.env, 1)
  189.   File "/path/to/bh/trac/trac/ticket/model.py", line 71, in __init__
  190.     self.fields = TicketSystem(self.env).get_ticket_fields()
  191.   File "/path/to/bh/trac/trac/ticket/api.py", line 310, in get_ticket_fields
  192.     fields = copy.deepcopy(self.fields)
  193.   File "/usr/lib/python2.7/copy.py", line 163, in deepcopy
  194.     y = copier(x, memo)
  195.   File "/usr/lib/python2.7/copy.py", line 230, in _deepcopy_list
  196.     y.append(deepcopy(a, memo))
  197.   File "/usr/lib/python2.7/copy.py", line 163, in deepcopy
  198.     y = copier(x, memo)
  199.   File "/usr/lib/python2.7/copy.py", line 257, in _deepcopy_dict
  200.     y[deepcopy(key, memo)] = deepcopy(value, memo)
  201.   File "/usr/lib/python2.7/copy.py", line 190, in deepcopy
  202.     y = _reconstruct(x, rv, 1, memo)
  203.   File "/usr/lib/python2.7/copy.py", line 346, in _reconstruct
  204.     setattr(y, key, value)
  205.   File "/path/to/venv/local/lib/python2.7/site-packages/babel/support.py", line 255, in __setattr__
  206.     setattr(self.value, name, value)
  207.   File "/path/to/venv/local/lib/python2.7/site-packages/babel/support.py", line 182, in value
  208.     if self._value is None:
  209.   File "/path/to/venv/local/lib/python2.7/site-packages/babel/support.py", line 252, in __getattr__
  210.     return getattr(self.value, name)
  211.   File "/path/to/venv/local/lib/python2.7/site-packages/babel/support.py", line 182, in value
  212.     if self._value is None:
  213. [...]
  214.   File "/path/to/venv/local/lib/python2.7/site-packages/babel/support.py", line 252, in __getattr__
  215.     return getattr(self.value, name)
  216. RuntimeError: maximum recursion depth exceeded
  217.  
  218. ======================================================================
  219. ERROR: test_can_upgrade_multi_product_from_v2 (__main__.EnvironmentUpgradeTestCase)
  220. ----------------------------------------------------------------------
  221. Traceback (most recent call last):
  222.   File "/path/to/bh/bloodhound_multiproduct/tests/upgrade.py", line 268, in test_can_upgrade_multi_product_from_v2
  223.     Ticket(self.env, 1)
  224.   File "/path/to/bh/trac/trac/ticket/model.py", line 71, in __init__
  225.     self.fields = TicketSystem(self.env).get_ticket_fields()
  226.   File "/path/to/bh/trac/trac/ticket/api.py", line 310, in get_ticket_fields
  227.     fields = copy.deepcopy(self.fields)
  228.   File "/usr/lib/python2.7/copy.py", line 163, in deepcopy
  229.     y = copier(x, memo)
  230.   File "/usr/lib/python2.7/copy.py", line 230, in _deepcopy_list
  231.     y.append(deepcopy(a, memo))
  232.   File "/usr/lib/python2.7/copy.py", line 163, in deepcopy
  233.     y = copier(x, memo)
  234.   File "/usr/lib/python2.7/copy.py", line 257, in _deepcopy_dict
  235.     y[deepcopy(key, memo)] = deepcopy(value, memo)
  236.   File "/usr/lib/python2.7/copy.py", line 190, in deepcopy
  237.     y = _reconstruct(x, rv, 1, memo)
  238.   File "/usr/lib/python2.7/copy.py", line 346, in _reconstruct
  239.     setattr(y, key, value)
  240.   File "/path/to/venv/local/lib/python2.7/site-packages/babel/support.py", line 255, in __setattr__
  241.     setattr(self.value, name, value)
  242.   File "/path/to/venv/local/lib/python2.7/site-packages/babel/support.py", line 182, in value
  243.     if self._value is None:
  244.   File "/path/to/venv/local/lib/python2.7/site-packages/babel/support.py", line 252, in __getattr__
  245.     return getattr(self.value, name)
  246.   File "/path/to/venv/local/lib/python2.7/site-packages/babel/support.py", line 182, in value
  247.     if self._value is None:
  248. [...]
  249.   File "/path/to/venv/local/lib/python2.7/site-packages/babel/support.py", line 252, in __getattr__
  250.     return getattr(self.value, name)
  251. RuntimeError: maximum recursion depth exceeded
  252.  
  253. ======================================================================
  254. ERROR: test_migration_to_multiproduct_preserves_ticket_ids (__main__.EnvironmentUpgradeTestCase)
  255. ----------------------------------------------------------------------
  256. Traceback (most recent call last):
  257.   File "/path/to/bh/bloodhound_multiproduct/tests/upgrade.py", line 361, in test_migration_to_multiproduct_preserves_ticket_ids
  258.     ticket = Ticket(self.env, ticket_id)
  259.   File "/path/to/bh/trac/trac/ticket/model.py", line 71, in __init__
  260.     self.fields = TicketSystem(self.env).get_ticket_fields()
  261.   File "/path/to/bh/trac/trac/ticket/api.py", line 310, in get_ticket_fields
  262.     fields = copy.deepcopy(self.fields)
  263.   File "/usr/lib/python2.7/copy.py", line 163, in deepcopy
  264.     y = copier(x, memo)
  265.   File "/usr/lib/python2.7/copy.py", line 230, in _deepcopy_list
  266.     y.append(deepcopy(a, memo))
  267.   File "/usr/lib/python2.7/copy.py", line 163, in deepcopy
  268.     y = copier(x, memo)
  269.   File "/usr/lib/python2.7/copy.py", line 257, in _deepcopy_dict
  270.     y[deepcopy(key, memo)] = deepcopy(value, memo)
  271.   File "/usr/lib/python2.7/copy.py", line 190, in deepcopy
  272.     y = _reconstruct(x, rv, 1, memo)
  273.   File "/usr/lib/python2.7/copy.py", line 346, in _reconstruct
  274.     setattr(y, key, value)
  275.   File "/path/to/venv/local/lib/python2.7/site-packages/babel/support.py", line 255, in __setattr__
  276.     setattr(self.value, name, value)
  277.   File "/path/to/venv/local/lib/python2.7/site-packages/babel/support.py", line 182, in value
  278.     if self._value is None:
  279.   File "/path/to/venv/local/lib/python2.7/site-packages/babel/support.py", line 252, in __getattr__
  280.     return getattr(self.value, name)
  281.   File "/path/to/venv/local/lib/python2.7/site-packages/babel/support.py", line 182, in value
  282.     if self._value is None:
  283. [...]
  284.   File "/path/to/venv/local/lib/python2.7/site-packages/babel/support.py", line 252, in __getattr__
  285.     return getattr(self.value, name)
  286. RuntimeError: maximum recursion depth exceeded
  287.  
  288. ======================================================================
  289. ERROR: test_upgrade_moves_tickets_and_related_objects_to_default_prod (__main__.EnvironmentUpgradeTestCase)
  290. ----------------------------------------------------------------------
  291. Traceback (most recent call last):
  292.   File "/path/to/bh/bloodhound_multiproduct/tests/upgrade.py", line 107, in test_upgrade_moves_tickets_and_related_objects_to_default_prod
  293.     ticket = Ticket(self.env, 1)
  294.   File "/path/to/bh/trac/trac/ticket/model.py", line 71, in __init__
  295.     self.fields = TicketSystem(self.env).get_ticket_fields()
  296.   File "/path/to/bh/trac/trac/ticket/api.py", line 310, in get_ticket_fields
  297.     fields = copy.deepcopy(self.fields)
  298.   File "/usr/lib/python2.7/copy.py", line 163, in deepcopy
  299.     y = copier(x, memo)
  300.   File "/usr/lib/python2.7/copy.py", line 230, in _deepcopy_list
  301.     y.append(deepcopy(a, memo))
  302.   File "/usr/lib/python2.7/copy.py", line 163, in deepcopy
  303.     y = copier(x, memo)
  304.   File "/usr/lib/python2.7/copy.py", line 257, in _deepcopy_dict
  305.     y[deepcopy(key, memo)] = deepcopy(value, memo)
  306.   File "/usr/lib/python2.7/copy.py", line 190, in deepcopy
  307.     y = _reconstruct(x, rv, 1, memo)
  308.   File "/usr/lib/python2.7/copy.py", line 346, in _reconstruct
  309.     setattr(y, key, value)
  310.   File "/path/to/venv/local/lib/python2.7/site-packages/babel/support.py", line 255, in __setattr__
  311.     setattr(self.value, name, value)
  312.   File "/path/to/venv/local/lib/python2.7/site-packages/babel/support.py", line 182, in value
  313.     if self._value is None:
  314.   File "/path/to/venv/local/lib/python2.7/site-packages/babel/support.py", line 252, in __getattr__
  315.     return getattr(self.value, name)
  316.   File "/path/to/venv/local/lib/python2.7/site-packages/babel/support.py", line 182, in value
  317.     if self._value is None:
  318. [...]
  319.   File "/path/to/venv/local/lib/python2.7/site-packages/babel/support.py", line 252, in __getattr__
  320.     return getattr(self.value, name)
  321. RuntimeError: maximum recursion depth exceeded
  322.  
  323. ----------------------------------------------------------------------
  324. Ran 22 tests in 484.414s
  325.  
  326. FAILED (errors=7)
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement