RajatShukla / getpaid

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

Failure in test unknown vocabulary: 'getpaid.countries' #301

Open GoogleCodeExporter opened 9 years ago

GoogleCodeExporter commented 9 years ago
Products.PloneGetPaid 0.10.2dev  Plone 4.0b5

Failure in test 
/home/dan/Plones/405/zinstance/src/Products.PloneGetPaid/Products/PloneGetPaid/t
ests/test_functional_browser_cart.txt
Traceback (most recent call last):
  File "/home/dan/Plones/405/Python-2.6/lib/python2.6/unittest.py", line 279, in run
    testMethod()
  File "/home/dan/Plones/405/Python-2.6/lib/python2.6/doctest.py", line 2152, in runTest
    raise self.failureException(self.format_failure(new.getvalue()))
AssertionError: Failed doctest test for test_functional_browser_cart.txt
  File "/home/dan/Plones/405/zinstance/src/Products.PloneGetPaid/Products/PloneGetPaid/tests/test_functional_browser_cart.txt", line 0

----------------------------------------------------------------------
File 
"/home/dan/Plones/405/zinstance/src/Products.PloneGetPaid/Products/PloneGetPaid/
tests/test_functional_browser_cart.txt", line 31, in test_functional_br$
Failed example:
    browser.getLink('Site Profile').click()
Exception raised:
    Traceback (most recent call last):
      File "/home/dan/Plones/405/Python-2.6/lib/python2.6/doctest.py", line 1248, in __run
        compileflags, 1) in test.globs
      File "<doctest test_functional_browser_cart.txt[15]>", line 1, in <module>
        browser.getLink('Site Profile').click()
      File "/home/dan/Plones/405/zinstance/eggs/zope.testbrowser-3.6.0a2-py2.6.egg/zope/testbrowser/browser.py", line 435, in click
        self.browser.mech_browser.follow_link(self.mech_link)
      File "/home/dan/Plones/405/zinstance/eggs/mechanize-0.1.11-py2.6.egg/mechanize/_mechanize.py", line 575, in follow_link
        return self.open(self.click_link(link, **kwds))
      File "/home/dan/Plones/405/zinstance/eggs/mechanize-0.1.11-py2.6.egg/mechanize/_mechanize.py", line 209, in open
        return self._mech_open(url, data, timeout=timeout)
      File "/home/dan/Plones/405/zinstance/eggs/mechanize-0.1.11-py2.6.egg/mechanize/_mechanize.py", line 236, in _mech_open
        response = UserAgentBase.open(self, request, data)
      File "/home/dan/Plones/405/zinstance/eggs/mechanize-0.1.11-py2.6.egg/mechanize/_opener.py", line 191, in open
        response = urlopen(self, req, data)
      File "/home/dan/Plones/405/Python-2.6/lib/python2.6/urllib2.py", line 409, in _open
        '_open', req)
      File "/home/dan/Plones/405/Python-2.6/lib/python2.6/urllib2.py", line 369, in _call_chain
        result = func(*args)
      File "/home/dan/Plones/405/zinstance/eggs/Zope2-2.12.7-py2.6-linux-i686.egg/Products/Five/testbrowser.py", line 85, in http_open
        return self.do_open(PublisherConnection, req)
      File "/home/dan/Plones/405/Python-2.6/lib/python2.6/urllib2.py", line 1133, in do_open
        h.request(req.get_method(), req.get_selector(), req.data, headers)
      File "/home/dan/Plones/405/zinstance/eggs/zope.testbrowser-3.6.0a2-py2.6.egg/zope/testbrowser/testing.py", line 82, in request
        self.response = self.caller(request_string, handle_errors)
      File "/home/dan/Plones/405/zinstance/eggs/Zope2-2.12.7-py2.6-linux-i686.egg/Testing/ZopeTestCase/functional.py", line 40, in wrapped_func
        return func(*args, **kw)
      File "/home/dan/Plones/405/zinstance/eggs/Zope2-2.12.7-py2.6-linux-i686.egg/Testing/ZopeTestCase/zopedoctest/functional.py", line 188, in http
        debug=not handle_errors,
      File "/home/dan/Plones/405/zinstance/eggs/Zope2-2.12.7-py2.6-linux-i686.egg/ZPublisher/Test.py", line 204, in publish_module
        response = publish(request, module_name, after_list, debug=debug)
      File "/home/dan/Plones/405/zinstance/eggs/Zope2-2.12.7-py2.6-linux-i686.egg/ZPublisher/Publish.py", line 127, in publish
        request, bind=1)
      File "/home/dan/Plones/405/zinstance/eggs/Zope2-2.12.7-py2.6-linux-i686.egg/ZPublisher/mapply.py", line 77, in mapply
        if debug is not None: return debug(object,args,context)
      File "/home/dan/Plones/405/zinstance/eggs/Zope2-2.12.7-py2.6-linux-i686.egg/ZPublisher/Publish.py", line 47, in call_object
        result=apply(object,args) # Type s<cr> to step into published object.
      File "/home/dan/Plones/405/zinstance/eggs/zope.formlib-3.7.0-py2.6.egg/zope/formlib/form.py", line 782, in __call__
        self.update()
      File "/home/dan/Plones/405/zinstance/src/Products.PloneGetPaid/Products/PloneGetPaid/browser/admin.py", line 59, in update
        super( BaseSettingsForm, self).update()
      File "/home/dan/Plones/405/zinstance/eggs/five.formlib-1.0.3-py2.6.egg/five/formlib/formbase.py", line 50, in update
        super(FiveFormlibMixin, self).update()
      File "/home/dan/Plones/405/zinstance/eggs/zope.formlib-3.7.0-py2.6.egg/zope/formlib/form.py", line 745, in update
        self.setUpWidgets()
      File "/home/dan/Plones/405/zinstance/eggs/zope.formlib-3.7.0-py2.6.egg/zope/formlib/form.py", line 820, in setUpWidgets
        adapters=self.adapters, ignore_request=ignore_request
      File "/home/dan/Plones/405/zinstance/eggs/zope.formlib-3.7.0-py2.6.egg/zope/formlib/form.py", line 384, in setUpEditWidgets
        field = field.bind(adapter)
      File "/home/dan/Plones/405/zinstance/eggs/zope.schema-3.5.4-py2.6.egg/zope/schema/_field.py", line 283, in bind
        clone.vocabulary = vr.get(object, self.vocabularyName)
      File "/home/dan/Plones/405/zinstance/eggs/zope.schema-3.5.4-py2.6.egg/zope/schema/vocabulary.py", line 165, in get
        raise VocabularyRegistryError(name)
    VocabularyRegistryError: unknown vocabulary: 'getpaid.countries'

Original issue reported on code.google.com by danielle...@gmail.com on 18 Jul 2010 at 1:47

GoogleCodeExporter commented 9 years ago
Products.PloneTestCase to version 0.9.10 and all will be dandy again. 
as stated by Martijn Pieters
http://plone.293351.n2.nabble.com/replies-with-plone-app-discussion-breaks-editi
ng-in-Plone-4b5-td5309126.html

Original comment by danielle...@gmail.com on 28 Aug 2010 at 11:02