[kforge-dev] Re: failing tests

Rufus Pollock rufus.pollock at okfn.org
Wed Dec 7 08:44:00 UTC 2005


Sorry, 'schoolboy' error due to rush to finish last night (created a 
command but then failed to do cmd.execute()!).

This is now fixed and all tests are passing on my machine.

Regards,

Rufus

John Bywater wrote:
> The tests are now always failing. Are you also getting failures for 
> these tests?
> 
> Is there really a missing permission?
> 
> J.
> 
> 
> John Bywater wrote:
> 
>> Hey Rufus,
>>
>> Just to say that I'm getting this error and fail when I run the 
>> kforge-autotest scripts, but not for the kforge-test script.
>>
>> The reported problem seems to be a missing permission. Any ideas?
>>
>> Best wishes,
>> John.
>>
>>
>>
>> ======================================================================
>> ERROR: testHasAccess 
>> (kforge.command.permissiontest.HasAccessToServiceTest)
>> ----------------------------------------------------------------------
>> Traceback (most recent call last):
>>  File 
>> "/tmp/kforge-install-test-56d9yQ/kforge-deployment/lib/python/kforge/command/permissiontest.py", 
>> line 55, in testHasAccess
>>    c.execute()
>>  File 
>> "/tmp/kforge-install-test-56d9yQ/kforge-deployment/lib/python/kforge/command/permission.py", 
>> line 90, in execute
>>    self.raiseError(message)
>>  File 
>> "/tmp/kforge-install-test-56d9yQ/kforge-deployment/lib/python/kforge/core/command/__init__.py", 
>> line 39, in raiseError
>>    raise KforgeCommandError(message)
>> KforgeCommandError: Person does not have permission on project.
>>
>> ======================================================================
>> FAIL: testHasPermission (kforge.dom.test.TestPerson2)
>> ----------------------------------------------------------------------
>> Traceback (most recent call last):
>>  File 
>> "/tmp/kforge-install-test-56d9yQ/kforge-deployment/lib/python/kforge/dom/test.py", 
>> line 303, in testHasPermission
>>    self.failUnless(self.person.hasPermission(perm, self.testProject1))
>>  File "/usr/lib/python2.3/unittest.py", line 278, in failUnless
>>    if not expr: raise self.failureException, msg
>> AssertionError
>>
>>
> 




More information about the kforge-dev mailing list