[Zope-PAS] Unit test errors.

Zachery Bir zbir at urbanape.com
Mon Sep 13 11:20:57 EDT 2004


On Sep 13, 2004, at 11:14 AM, Lennart Regebro wrote:

> Zachery Bir wrote:
>>   $ for test in `find opt/Products/PluggableAuthService -name 
>> test\*.py` do; bin/zopectl run $test; done
>
> Ah, I found it! Two modules, test_DyamicGroupsPlugin.py (yup, 
> missspelled) and test_HTTPBasicAuthHelper.py was missing the
>
> if __name__ == "__main__":
>     unittest.main()
>
> code, meaning, that when you just run them standalone nothing happens.

D'oh!

> I'll check in the updated tests, so that they work both via zopectl 
> run   [filename] and via test.py.

Thanks much,

Zac



More information about the Zope-PAS mailing list