Skip to content
GitLab
Menu
Projects
Groups
Snippets
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
itminedu
synnefo
Commits
26f5383d
Commit
26f5383d
authored
Apr 02, 2013
by
Kostas Papadimitriou
Browse files
Update astakos tests
handle new email recipients
parent
7c3e721f
Changes
1
Hide whitespace changes
Inline
Side-by-side
snf-astakos-app/astakos/im/tests.py
View file @
26f5383d
...
...
@@ -530,7 +530,9 @@ class TestLocal(TestCase):
form
=
forms
.
LocalUserCreationForm
(
data
)
self
.
assertFalse
(
form
.
is_valid
())
@
with_settings
(
settings
,
HELPDESK
=
((
'support'
,
'support@synnefo.org'
),))
def
test_local_provider
(
self
):
self
.
helpdesk_email
=
astakos_settings
.
HELPDESK
[
0
][
1
]
# enable moderation
astakos_settings
.
MODERATION_ENABLED
=
True
...
...
@@ -553,7 +555,8 @@ class TestLocal(TestCase):
self
.
assertFalse
(
user
.
activation_sent
)
# activation automatically sent
# admin gets notified and activates the user from the command line
self
.
assertEqual
(
len
(
get_mailbox
(
'support@cloud.grnet.gr'
)),
1
)
self
.
assertEqual
(
len
(
get_mailbox
(
self
.
helpdesk_email
)),
1
)
r
=
self
.
client
.
post
(
'/im/local'
,
{
'username'
:
'kpap@grnet.gr'
,
'password'
:
'password'
})
self
.
assertContains
(
r
,
messages
.
NOTIFICATION_SENT
)
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment