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:
parent
28ff099df9
commit
4e54b6fcc5
2 changed files with 405 additions and 2 deletions
|
@ -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
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue