[PKG-Openstack-devel] Bug#755646: The patch doesn't seem to be enough

Thomas Goirand zigo at debian.org
Wed Aug 13 15:07:14 UTC 2014


Hi,

It doesn't look like just calling django.setup() is enough to fix the
unit tests. There's lots of other errors appearing like this one:

ERROR: test_login (openstack_auth.tests.tests.OpenStackAuthTestsV2)
[...]
  File
"/home/zigo/sources/openstack/icehouse/python-django-openstack-auth/build-area/python-django-openstack-auth-1.1.5/openstack_auth/forms.py",
line 103, in clean
    self.check_for_test_cookie()
AttributeError: 'Login' object has no attribute 'check_for_test_cookie'

Plus a lot of these:

ERROR: test_switch_with_next
(openstack_auth.tests.tests.OpenStackAuthTestsV3WithPublicURL)
----------------------------------------------------------------------
Traceback (most recent call last):
  File
"/home/zigo/sources/openstack/icehouse/python-django-openstack-auth/build-area/python-django-openstack-auth-1.1.5/openstack_auth/tests/tests.py",
line 479, in new_func
    ret = copy.deepcopy(func(*args, **kwargs))
  File
"/home/zigo/sources/openstack/icehouse/python-django-openstack-auth/build-area/python-django-openstack-auth-1.1.5/openstack_auth/tests/tests.py",
line 532, in tearDown
    self.mox.VerifyAll()
  File "/usr/lib/python2.7/dist-packages/mox.py", line 284, in VerifyAll
    mock_obj._Verify()
  File "/usr/lib/python2.7/dist-packages/mox.py", line 506, in _Verify
    raise ExpectedMethodCallsError(self._expected_calls_queue)
ExpectedMethodCallsError: Verify: Expected methods never called:
  0.  Stub for <class
'keystoneclient.v3.client.Client'>.__call__(auth_url='http://public.localhost:5000/v3',
cacert=None [......]

Any idea how to fix?

Thomas Goirand (zigo)



More information about the Openstack-devel mailing list