début de mise à jour des tests pour se rendre compte qu'il est actuellement

impossible de créer un compte.
This commit is contained in:
fpeters 2003-12-30 20:26:51 +00:00
parent ebc9db9d69
commit e9a4365fe6
4 changed files with 9 additions and 7 deletions

View File

@ -28,8 +28,9 @@ PREFIX=`pwd`/root-tests \
> root-tests/etc/apache/httpd.conf
SERVERS="Dispatcher ArticlesServer AtomsServer AuthenticationServer \
AuthenticationLoginPasswordServer CardsServer DataflowsServer \
GroupsServer PeopleServer VirtualHostsServer SessionsServer"
IdentitiesServer CardsServer DataflowsServer \
GroupsServer PeopleServer VirtualHostsServer SessionsServer \
PasswordAccountsServer"
echo "Starting Glasnost servers..."
for SERVER in $SERVERS
do

View File

@ -469,6 +469,7 @@ class IdentitiesWeb(objects.ObjectsWebMixin, proxyIdentities.IdentitiesProxy):
person = peopleWeb.newObject()
return self.newPersonObject(person)
newPerson.isPublicForWeb = 1
def newPersonObject(self, object):
context.push(_level = 'newPersonObject', layoutMode = 'edit')

View File

@ -604,7 +604,7 @@ def getTemplateVars():
loginButton = X.buttonStandalone('login', loginUrl).getAsXml()
# FIXME: should take the favourite identities method
newAccountUrl = X.roleUrl('identities', action = 'newAccount')
newAccountUrl = X.roleUrl('identities', action = 'newPerson')
newAccountButton = X.buttonStandalone(
'new-account', newAccountUrl).getAsXml()
newAccountUrl = newAccountUrl.getAsUrl()

View File

@ -328,7 +328,7 @@ class AccountManipulationTestCase(WebTestCase):
self.get('/')
self.get( self.getLinkByLabel('New Account') )
form = [x for x in self.forms if
x.actionUrl.endswith('/newAccountSubmit')][0]
x.actionUrl.endswith('/newPersonSubmit')][0]
self.post(form.actionUrl, form.getKeywords(buttonClicked = 'Create'))
self.failUnless(self.replyCode == 200)
self.failUnless(self.pageContent.find('Missing value!') > -1)
@ -338,7 +338,7 @@ class AccountManipulationTestCase(WebTestCase):
self.get('/')
self.get( self.getLinkByLabel('New Account') )
form = [x for x in self.forms if
x.actionUrl.endswith('/newAccountSubmit')][0]
x.actionUrl.endswith('/newPersonSubmit')][0]
form.set('userCard_firstName', 'Test')
form.set('userCard_lastName', 'User')
form.set('userCard_email', 'test@example.com')
@ -351,7 +351,7 @@ class AccountManipulationTestCase(WebTestCase):
self.get('/')
self.get( self.getLinkByLabel('New Account') )
form = [x for x in self.forms if
x.actionUrl.endswith('/newAccountSubmit')][0]
x.actionUrl.endswith('/newPersonSubmit')][0]
form.set('login', 'test')
self.post(form.actionUrl, form.getKeywords(buttonClicked = 'Create'))
self.failUnless(self.replyCode == 200)
@ -361,7 +361,7 @@ class AccountManipulationTestCase(WebTestCase):
self.get('/')
self.get( self.getLinkByLabel('New Account') )
form = [x for x in self.forms if
x.actionUrl.endswith('/newAccountSubmit')][0]
x.actionUrl.endswith('/newPersonSubmit')][0]
form.set('userCard_firstName', 'Test')
form.set('userCard_lastName', 'User')
form.set('userCard_email', 'test@example.com')