Skip to content

Commit ce23c8c

Browse files
committed
:wq
1 parent d3c3397 commit ce23c8c

File tree

4 files changed

+8
-8
lines changed

4 files changed

+8
-8
lines changed

backend/tests/accounts/test_commands.py

+2-2
Original file line numberDiff line numberDiff line change
@@ -8,8 +8,8 @@
88
class UpdateMajorsTestCase(TestCase):
99
def test_update_academics(self):
1010
call_command("update_academics")
11-
self.assertNotEquals(0, Major.objects.all().count())
12-
self.assertNotEquals(0, School.objects.all().count())
11+
self.assertNotEqual(0, Major.objects.all().count())
12+
self.assertNotEqual(0, School.objects.all().count())
1313

1414

1515
class PopulateUsersTestCase(TestCase):

backend/tests/accounts/test_update_majors.py

+4-4
Original file line numberDiff line numberDiff line change
@@ -16,22 +16,22 @@ def testTotalMajorCount(self, mock_source_file):
1616
mock_source_file.return_value.text = self.html
1717
update_all_majors()
1818

19-
self.assertEquals(Major.objects.all().count(), 469)
19+
self.assertEqual(Major.objects.all().count(), 469)
2020

2121
def testBachelorMajorCount(self, mock_source_file):
2222
mock_source_file.return_value.text = self.html
2323
update_all_majors()
2424

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

2727
def testMasterCount(self, mock_source_file):
2828
mock_source_file.return_value.text = self.html
2929
update_all_majors()
3030

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

3333
def testProfessionalCount(self, mock_source_file):
3434
mock_source_file.return_value.text = self.html
3535
update_all_majors()
3636

37-
self.assertEquals(Major.objects.filter(degree_type="PROFESSIONAL").count(), 47)
37+
self.assertEqual(Major.objects.filter(degree_type="PROFESSIONAL").count(), 47)

backend/tests/accounts/test_update_schools.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -14,4 +14,4 @@ def testTotalSchoolCount(self, mock_source_file):
1414

1515
update_all_schools()
1616

17-
self.assertEquals(School.objects.all().count(), 12)
17+
self.assertEqual(School.objects.all().count(), 12)

backend/tests/accounts/test_views.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -731,7 +731,7 @@ def test_destroy_only_number(self):
731731
)
732732
self.assertEqual(json.loads(response.content), self.expected_response)
733733
self.assertEqual(response.status_code, 200)
734-
self.assertEquals(len(self.user2.phone_numbers.all()), 0)
734+
self.assertEqual(len(self.user2.phone_numbers.all()), 0)
735735

736736
def test_resend_verification_fail(self):
737737
self.client.force_authenticate(user=self.user)

0 commit comments

Comments
 (0)