Mise à jour terminée. Pour connaître les apports de la version 13.8.4 par rapport à notre ancienne version vous pouvez lire les "Release Notes" suivantes :
https://about.gitlab.com/releases/2021/02/11/security-release-gitlab-13-8-4-released/
https://about.gitlab.com/releases/2021/02/05/gitlab-13-8-3-released/

Commit 9378703c authored by HERBERT Ryan's avatar HERBERT Ryan

tests/controllers/notification.py testRunner.py updated notification tests to...

tests/controllers/notification.py testRunner.py updated notification tests to include management of user_preferences
parent ee05cfa2
......@@ -76,9 +76,12 @@ class NotificationController(unittest.TestCase):
request.vars['expiration'] = str(curdate)
res = edit_form()
note = db.notification[fake_notification_id]
preferences = db((db.user_preference.preference=='mail')
&(db.user_preference.val==fake_notification_id)).select()
self.assertNotEquals(res.find('notification updated'), -1, "edit_form returned an incomplete response")
self.assertTrue(note.title == "test title", "edit_form was unable to update the title")
self.assertTrue(note.message_content == "test content", "edit_form was unable to update the message content")
self.assertEqual(len(preferences), 0, "edit_form was unable to clear the associated preferences")
def test4Delete(self):
notification_id = db(db.notification.title=="test title").select()[0].id
......
......@@ -145,6 +145,16 @@ fake_notification_id = db.notification.insert(title='test',
expiration='1990-01-01',
creator=user_id
)
fake_mail_preference_id = db.user_preference.insert(user_id =user_id,
preference='mail',
val=fake_notification_id
)
fake_mail_preference_id2 = db.user_preference.insert(user_id =18,
preference='mail',
val=fake_notification_id
)
db.commit()
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment