Add osusers.views tests

This commit adds tests for the osusers.views module. An incompatibility
with Django 1.8 in EditSshPublicKeyComment has been fixed.
This commit is contained in:
Jan Dittberner 2015-12-06 17:49:10 +01:00
parent 28ff099df9
commit 4e54b6fcc5
2 changed files with 405 additions and 2 deletions

View file

@ -89,7 +89,7 @@ class AddSshPublicKey(
key = form.save()
messages.success(
self.request,
_('Successfully added new {algorithm} SSH public key').format(
_('Successfully added new {algorithm} SSH public key.').format(
algorithm=key.algorithm)
)
return redirect(self.get_hosting_package())
@ -162,7 +162,6 @@ class EditSshPublicKeyComment(
"""
model = SshPublicKey
context_object_name = 'key'
fields = ['comment']
template_name_suffix = '_edit_comment'
form_class = EditSshPublicKeyCommentForm