RajatShukla / getpaid

Automatically exported from code.google.com/p/getpaid
0 stars 0 forks source link

New 0.6 recipe with latest getpaid.buildout from trunk (rev 2082) with Plone 2.5 has 7 failures on unit tests #225

Open GoogleCodeExporter opened 9 years ago

GoogleCodeExporter commented 9 years ago
What steps will reproduce the problem?
1. Create a fresh buildout directory for getpaid 
2. bootstrap it
3. bin/buildout -v  (use the buildout.cfg that defaults to using Plone 2.5
recipe)
4. bin/instance test -s Products.PloneGetPaid
5. See results stating 7 failures

I would expect the same results as when I run the tests on a buildout that
used the 316.cfg (Plone 3.1.6 recipe), which has 0 failures.

The results of the tests are below:

.Installing Five ... done (0.026s)
..............................................

Failure in test
/Users/developer/buildouts/getpaid.buildout25/src/Products.PloneGetPaid/Products
/PloneGetPaid/tests/test_functional_addressbook_save.txt
Failed doctest test for test_functional_addressbook_save.txt
  File
"/Users/developer/buildouts/getpaid.buildout25/src/Products.PloneGetPaid/Product
s/PloneGetPaid/tests/test_functional_addressbook_save.txt",
line 0

----------------------------------------------------------------------
File
"/Users/developer/buildouts/getpaid.buildout25/src/Products.PloneGetPaid/Product
s/PloneGetPaid/tests/test_functional_addressbook_save.txt",
line 85, in test_functional_addressbook_save.txt
Failed example:
    browser.getLink('Make Buyable').click()
Exception raised:
    Traceback (most recent call last):
      File
"/Users/developer/buildouts/getpaid.buildout25/parts/zope2/lib/python/zope/testi
ng/doctest.py",
line 1348, in __run
        compileflags, 1) in test.globs
      File "<doctest test_functional_addressbook_save.txt[55]>", line 1, in ?
        browser.getLink('Make Buyable').click()
      File
"/Users/developer/buildouts/getpaid.buildout25/parts/zope2/lib/python/zope/testb
rowser/browser.py",
line 286, in getLink
        return Link(self.mech_browser.find_link(**args), self)
      File
"/Users/developer/buildouts/getpaid.buildout25/parts/zope2/lib/python/mechanize/
_mechanize.py",
line 557, in find_link
        return self._find_links(True, **kwds)
      File
"/Users/developer/buildouts/getpaid.buildout25/parts/zope2/lib/python/mechanize/
_mechanize.py",
line 627, in _find_links
        raise LinkNotFoundError()
    LinkNotFoundError

................

Failure in test
/Users/developer/buildouts/getpaid.buildout25/src/Products.PloneGetPaid/Products
/PloneGetPaid/tests/test_functional_anon_checkout.txt
Failed doctest test for test_functional_anon_checkout.txt
  File
"/Users/developer/buildouts/getpaid.buildout25/src/Products.PloneGetPaid/Product
s/PloneGetPaid/tests/test_functional_anon_checkout.txt",
line 0

----------------------------------------------------------------------
File
"/Users/developer/buildouts/getpaid.buildout25/src/Products.PloneGetPaid/Product
s/PloneGetPaid/tests/test_functional_anon_checkout.txt",
line 85, in test_functional_anon_checkout.txt
Failed example:
    browser.getLink('Make Buyable').click()
Exception raised:
    Traceback (most recent call last):
      File
"/Users/developer/buildouts/getpaid.buildout25/parts/zope2/lib/python/zope/testi
ng/doctest.py",
line 1348, in __run
        compileflags, 1) in test.globs
      File "<doctest test_functional_anon_checkout.txt[55]>", line 1, in ?
        browser.getLink('Make Buyable').click()
      File
"/Users/developer/buildouts/getpaid.buildout25/parts/zope2/lib/python/zope/testb
rowser/browser.py",
line 286, in getLink
        return Link(self.mech_browser.find_link(**args), self)
      File
"/Users/developer/buildouts/getpaid.buildout25/parts/zope2/lib/python/mechanize/
_mechanize.py",
line 557, in find_link
        return self._find_links(True, **kwds)
      File
"/Users/developer/buildouts/getpaid.buildout25/parts/zope2/lib/python/mechanize/
_mechanize.py",
line 627, in _find_links
        raise LinkNotFoundError()
    LinkNotFoundError

..............

Failure in test
/Users/developer/buildouts/getpaid.buildout25/src/Products.PloneGetPaid/Products
/PloneGetPaid/tests/test_functional_browser.txt
Failed doctest test for test_functional_browser.txt
  File
"/Users/developer/buildouts/getpaid.buildout25/src/Products.PloneGetPaid/Product
s/PloneGetPaid/tests/test_functional_browser.txt",
line 0

----------------------------------------------------------------------
File
"/Users/developer/buildouts/getpaid.buildout25/src/Products.PloneGetPaid/Product
s/PloneGetPaid/tests/test_functional_browser.txt",
line 88, in test_functional_browser.txt
Failed example:
    browser.getLink('Make Buyable').click()
Exception raised:
    Traceback (most recent call last):
      File
"/Users/developer/buildouts/getpaid.buildout25/parts/zope2/lib/python/zope/testi
ng/doctest.py",
line 1348, in __run
        compileflags, 1) in test.globs
      File "<doctest test_functional_browser.txt[51]>", line 1, in ?
        browser.getLink('Make Buyable').click()
      File
"/Users/developer/buildouts/getpaid.buildout25/parts/zope2/lib/python/zope/testb
rowser/browser.py",
line 286, in getLink
        return Link(self.mech_browser.find_link(**args), self)
      File
"/Users/developer/buildouts/getpaid.buildout25/parts/zope2/lib/python/mechanize/
_mechanize.py",
line 557, in find_link
        return self._find_links(True, **kwds)
      File
"/Users/developer/buildouts/getpaid.buildout25/parts/zope2/lib/python/mechanize/
_mechanize.py",
line 627, in _find_links
        raise LinkNotFoundError()
    LinkNotFoundError

.......

Failure in test
/Users/developer/buildouts/getpaid.buildout25/src/Products.PloneGetPaid/Products
/PloneGetPaid/tests/test_functional_browser_cart.txt
Failed doctest test for test_functional_browser_cart.txt
  File
"/Users/developer/buildouts/getpaid.buildout25/src/Products.PloneGetPaid/Product
s/PloneGetPaid/tests/test_functional_browser_cart.txt",
line 0

----------------------------------------------------------------------
File
"/Users/developer/buildouts/getpaid.buildout25/src/Products.PloneGetPaid/Product
s/PloneGetPaid/tests/test_functional_browser_cart.txt",
line 81, in test_functional_browser_cart.txt
Failed example:
    browser.getLink('Make Buyable').click()
Exception raised:
    Traceback (most recent call last):
      File
"/Users/developer/buildouts/getpaid.buildout25/parts/zope2/lib/python/zope/testi
ng/doctest.py",
line 1348, in __run
        compileflags, 1) in test.globs
      File "<doctest test_functional_browser_cart.txt[51]>", line 1, in ?
        browser.getLink('Make Buyable').click()
      File
"/Users/developer/buildouts/getpaid.buildout25/parts/zope2/lib/python/zope/testb
rowser/browser.py",
line 286, in getLink
        return Link(self.mech_browser.find_link(**args), self)
      File
"/Users/developer/buildouts/getpaid.buildout25/parts/zope2/lib/python/mechanize/
_mechanize.py",
line 557, in find_link
        return self._find_links(True, **kwds)
      File
"/Users/developer/buildouts/getpaid.buildout25/parts/zope2/lib/python/mechanize/
_mechanize.py",
line 627, in _find_links
        raise LinkNotFoundError()
    LinkNotFoundError

............................/Users/developer/buildouts/getpaid.buildout25/parts/
plone/CMFCore/TypesTool.py:278:
DeprecationWarning: getActionById() is deprecated and will be removed in
CMF 2.0. Please use getActionInfo()['url'] if you need an URL or
queryMethodID() if you need a method ID.
  DeprecationWarning)

Failure in test
/Users/developer/buildouts/getpaid.buildout25/src/Products.PloneGetPaid/Products
/PloneGetPaid/tests/test_functional_browser_checkout.txt
Failed doctest test for test_functional_browser_checkout.txt
  File
"/Users/developer/buildouts/getpaid.buildout25/src/Products.PloneGetPaid/Product
s/PloneGetPaid/tests/test_functional_browser_checkout.txt",
line 0

----------------------------------------------------------------------
File
"/Users/developer/buildouts/getpaid.buildout25/src/Products.PloneGetPaid/Product
s/PloneGetPaid/tests/test_functional_browser_checkout.txt",
line 85, in test_functional_browser_checkout.txt
Failed example:
    browser.getLink('Make this a Donation').click()
Exception raised:
    Traceback (most recent call last):
      File
"/Users/developer/buildouts/getpaid.buildout25/parts/zope2/lib/python/zope/testi
ng/doctest.py",
line 1348, in __run
        compileflags, 1) in test.globs
      File "<doctest test_functional_browser_checkout.txt[53]>", line 1, in ?
        browser.getLink('Make this a Donation').click()
      File
"/Users/developer/buildouts/getpaid.buildout25/parts/zope2/lib/python/zope/testb
rowser/browser.py",
line 286, in getLink
        return Link(self.mech_browser.find_link(**args), self)
      File
"/Users/developer/buildouts/getpaid.buildout25/parts/zope2/lib/python/mechanize/
_mechanize.py",
line 557, in find_link
        return self._find_links(True, **kwds)
      File
"/Users/developer/buildouts/getpaid.buildout25/parts/zope2/lib/python/mechanize/
_mechanize.py",
line 627, in _find_links
        raise LinkNotFoundError()
    LinkNotFoundError

.......

Failure in test
/Users/developer/buildouts/getpaid.buildout25/src/Products.PloneGetPaid/Products
/PloneGetPaid/tests/test_functional_order_filtering_paging.txt
Failed doctest test for test_functional_order_filtering_paging.txt
  File
"/Users/developer/buildouts/getpaid.buildout25/src/Products.PloneGetPaid/Product
s/PloneGetPaid/tests/test_functional_order_filtering_paging.txt",
line 0

----------------------------------------------------------------------
File
"/Users/developer/buildouts/getpaid.buildout25/src/Products.PloneGetPaid/Product
s/PloneGetPaid/tests/test_functional_order_filtering_paging.txt",
line 84, in test_functional_order_filtering_paging.txt
Failed example:
    browser.getLink('Make Buyable').click()
Exception raised:
    Traceback (most recent call last):
      File
"/Users/developer/buildouts/getpaid.buildout25/parts/zope2/lib/python/zope/testi
ng/doctest.py",
line 1348, in __run
        compileflags, 1) in test.globs
      File "<doctest test_functional_order_filtering_paging.txt[55]>", line
1, in ?
        browser.getLink('Make Buyable').click()
      File
"/Users/developer/buildouts/getpaid.buildout25/parts/zope2/lib/python/zope/testb
rowser/browser.py",
line 286, in getLink
        return Link(self.mech_browser.find_link(**args), self)
      File
"/Users/developer/buildouts/getpaid.buildout25/parts/zope2/lib/python/mechanize/
_mechanize.py",
line 557, in find_link
        return self._find_links(True, **kwds)
      File
"/Users/developer/buildouts/getpaid.buildout25/parts/zope2/lib/python/mechanize/
_mechanize.py",
line 627, in _find_links
        raise LinkNotFoundError()
    LinkNotFoundError

.............................

Failure in test test_special_values
(Products.PloneGetPaid.tests.test_statesvocabulary.TestStatesVocabulary)
Failed doctest test for
Products.PloneGetPaid.tests.test_statesvocabulary.TestStatesVocabulary.test_spec
ial_values
  File
"/Users/developer/buildouts/getpaid.buildout25/src/Products.PloneGetPaid/Product
s/PloneGetPaid/tests/test_statesvocabulary.py",
line 33, in test_special_values

----------------------------------------------------------------------
File
"/Users/developer/buildouts/getpaid.buildout25/src/Products.PloneGetPaid/Product
s/PloneGetPaid/tests/test_statesvocabulary.py",
line 43, in
Products.PloneGetPaid.tests.test_statesvocabulary.TestStatesVocabulary.test_spec
ial_values
Failed example:
    from zope.schema.interfaces import IVocabularyFactory
Exception raised:
    Traceback (most recent call last):
      File
"/Users/developer/buildouts/getpaid.buildout25/parts/zope2/lib/python/zope/testi
ng/doctest.py",
line 1348, in __run
        compileflags, 1) in test.globs
      File "<doctest
Products.PloneGetPaid.tests.test_statesvocabulary.TestStatesVocabulary.test_spec
ial_values[4]>",
line 1, in ?
        from zope.schema.interfaces import IVocabularyFactory
    ImportError: cannot import name IVocabularyFactory

  Ran 148 tests with 7 failures and 0 errors in 61.027 seconds.
Tearing down left over layers:
/Users/developer/buildouts/getpaid.buildout25/parts/zope2/lib/python/OFS/subscri
bers.py:74:
DeprecationWarning:
Products.PluggableAuthService.PluggableAuthService.PluggableAuthService.manage_b
eforeDelete
is deprecated and will be removed in Zope 2.11, you should use event
subscribers instead, and meanwhile mark the class with
<five:deprecatedManageAddDelete/>
  DeprecationWarning)
  Tear down Products.PloneTestCase.layer.PloneSite in 0.861 seconds.
  Tear down Products.PloneTestCase.layer.ZCML in 0.004 seconds.

Original issue reported on code.google.com by ctxl...@gmail.com on 13 Oct 2008 at 9:57

GoogleCodeExporter commented 9 years ago
Here is some feedback about that:

 * from AdamAtNCPC: at the sprint, ctxlken and I fixed a functional test where the
problem was the browser was failing to logout. I think we started a new browser.
Fixing this issue *might* require a similar workaround: start a new browser or
restart the site navigation from the portal home?
 * from an email written by Ricardo Alves about a similar issue: The problem with
plone2.5 tests was a component lookup failure in
Products.PloneGetPaid.preferences. I added a context (site) as a
parameter to queryUtility, because AFAIK utilities require a context for
lookup in zope2.9

Original comment by lucielej...@gmail.com on 16 Oct 2008 at 2:22