[Cosmo-dev] New functional tests and test cleanup
Vinubalaji Gopal
vinu at osafoundation.org
Thu Jan 25 17:10:50 PST 2007
On Thu, 2007-01-25 at 10:33 -0800, Mikeal Rogers wrote:
>Those declarations aren't for an existing user, they are for the name
>and options of the user that will be created at the beginning of the
Yeah I know. My concern was to reduce the number of lines required to
write a new test case.
So instead of defining this in every test case:
TEST_USER = 'test_user_report%s' % str(random.random()).replace('.',
'')
TEST_PASS = 'test_pass'
TEST_FIRST_NAME = 'Test'
TEST_LAST_NAME = 'User'
TEST_EMAIL = TEST_USER+'@osafoundation.org'
it would be nice to have a single declaration like
TEST_USER = 'test_user_acl%s' % str(random.random()).replace('.','') or
not even have that declaration since you use random numbers.
I am not sure on how this is handled but the following declaration in
test_mkcalendar.py confuses me.
TEST_USER = 'test_user_report%s' % str(random.random()).replace('.', '')
TEST_PASS = 'test_pass'
TEST_FIRST_NAME = 'Test'
TEST_LAST_NAME = 'User'
TEST_EMAIL = TEST_USER+'@osafoundation.org'
CALENDAR = 'calendar'
FILES_DIR =
os.path.dirname(os.path.abspath(sys.modules[__name__].__file__))+'/files/'
I see that TEST_PASS is never used anywhere in test_mkcalendar.py -
unless it is used some other way (global variable, etc).
More information about the cosmo-dev
mailing list