Skip to content

Commit

Permalink
:wq
Browse files Browse the repository at this point in the history
  • Loading branch information
clay53 committed Feb 15, 2025
1 parent d3c3397 commit ce23c8c
Show file tree
Hide file tree
Showing 4 changed files with 8 additions and 8 deletions.
4 changes: 2 additions & 2 deletions backend/tests/accounts/test_commands.py
Original file line number Diff line number Diff line change
Expand Up @@ -8,8 +8,8 @@
class UpdateMajorsTestCase(TestCase):
def test_update_academics(self):
call_command("update_academics")
self.assertNotEquals(0, Major.objects.all().count())
self.assertNotEquals(0, School.objects.all().count())
self.assertNotEqual(0, Major.objects.all().count())
self.assertNotEqual(0, School.objects.all().count())


class PopulateUsersTestCase(TestCase):
Expand Down
8 changes: 4 additions & 4 deletions backend/tests/accounts/test_update_majors.py
Original file line number Diff line number Diff line change
Expand Up @@ -16,22 +16,22 @@ def testTotalMajorCount(self, mock_source_file):
mock_source_file.return_value.text = self.html
update_all_majors()

self.assertEquals(Major.objects.all().count(), 469)
self.assertEqual(Major.objects.all().count(), 469)

def testBachelorMajorCount(self, mock_source_file):
mock_source_file.return_value.text = self.html
update_all_majors()

self.assertEquals(Major.objects.filter(degree_type="BACHELORS").count(), 215)
self.assertEqual(Major.objects.filter(degree_type="BACHELORS").count(), 215)

def testMasterCount(self, mock_source_file):
mock_source_file.return_value.text = self.html
update_all_majors()

self.assertEquals(Major.objects.filter(degree_type="MASTERS").count(), 123)
self.assertEqual(Major.objects.filter(degree_type="MASTERS").count(), 123)

def testProfessionalCount(self, mock_source_file):
mock_source_file.return_value.text = self.html
update_all_majors()

self.assertEquals(Major.objects.filter(degree_type="PROFESSIONAL").count(), 47)
self.assertEqual(Major.objects.filter(degree_type="PROFESSIONAL").count(), 47)
2 changes: 1 addition & 1 deletion backend/tests/accounts/test_update_schools.py
Original file line number Diff line number Diff line change
Expand Up @@ -14,4 +14,4 @@ def testTotalSchoolCount(self, mock_source_file):

update_all_schools()

self.assertEquals(School.objects.all().count(), 12)
self.assertEqual(School.objects.all().count(), 12)
2 changes: 1 addition & 1 deletion backend/tests/accounts/test_views.py
Original file line number Diff line number Diff line change
Expand Up @@ -731,7 +731,7 @@ def test_destroy_only_number(self):
)
self.assertEqual(json.loads(response.content), self.expected_response)
self.assertEqual(response.status_code, 200)
self.assertEquals(len(self.user2.phone_numbers.all()), 0)
self.assertEqual(len(self.user2.phone_numbers.all()), 0)

def test_resend_verification_fail(self):
self.client.force_authenticate(user=self.user)
Expand Down

0 comments on commit ce23c8c

Please sign in to comment.