Skip to content

Commit

Permalink
Replace assertNotEqualsby assertNotEqualfor Python 3.12 compatibi…
Browse files Browse the repository at this point in the history
…lity
  • Loading branch information
Badatos committed Dec 9, 2024
1 parent 7343fa0 commit 5115cb4
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions pod/recorder/tests/test_plugins.py
Original file line number Diff line number Diff line change
Expand Up @@ -132,7 +132,7 @@ def test_change_title(self) -> None:

recording = Recording.objects.get(id=1)
title = "A new title"
self.assertNotEquals(recording.title, title)
self.assertNotEqual(recording.title, title)

change_title(recording, title)
recording = Recording.objects.get(id=1)
Expand All @@ -145,11 +145,11 @@ def test_change_user(self) -> None:

recording = Recording.objects.get(id=1)
user2 = User.objects.create(username="another_user", is_staff=True)
self.assertNotEquals(recording.user, user2)
self.assertNotEqual(recording.user, user2)

change_user(recording, user2.username)
recording = Recording.objects.get(id=1)
self.assertEquals(recording.user, user2)
self.assertEqual(recording.user, user2)
print(" ---> test_change_user of PluginVideoTestCase: OK!")

def test_link_video_to_event(self) -> None:
Expand Down

0 comments on commit 5115cb4

Please sign in to comment.