Skip to content

Commit

Permalink
tests: Fix test to match changed display behavior
Browse files Browse the repository at this point in the history
  • Loading branch information
nijel committed Sep 22, 2021
1 parent d51a692 commit afe11a2
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion weblate/trans/tests/test_component.py
Original file line number Diff line number Diff line change
Expand Up @@ -628,7 +628,11 @@ def test_autolock(self):

change = component.change_set.get(action=Change.ACTION_LOCK)
self.assertEqual(change.details, {"auto": True})
self.assertEqual(change.get_action_display(), "Component automatically locked")
self.assertEqual(change.get_action_display(), "Component locked")
self.assertEqual(
change.get_details_display(),
"Component was automatically locked because of an alert.",
)

component.add_alert("UpdateFailure")
self.assertTrue(component.locked)
Expand Down

0 comments on commit afe11a2

Please sign in to comment.