fix: appease testing suite

This commit is contained in:
Shreyas Mayya 2021-11-02 10:28:40 -04:00 committed by Ethan Nguyen
parent 46120a18f3
commit 5551d2e11c
4 changed files with 5 additions and 5 deletions

View File

@ -8,7 +8,7 @@ class User(AbstractUser):
accepted_terms = models.BooleanField(default=False) accepted_terms = models.BooleanField(default=False)
graduation_year = models.PositiveSmallIntegerField(null=True) graduation_year = models.PositiveSmallIntegerField(null=True)
gpa = models.FloatField(null=True, blank=True, name="GPA", help_text="Weighted GPA") GPA = models.FloatField(null=True, blank=True, name="GPA", help_text="Weighted GPA")
is_senior = models.BooleanField(default=False) is_senior = models.BooleanField(default=False)
is_student = models.BooleanField(default=False) is_student = models.BooleanField(default=False)

View File

@ -17,7 +17,7 @@ class Command(BaseCommand):
CEEB, College Name, City, State CEEB, College Name, City, State
""" """
with open(options["file_name"], "r") as file: with open(options["file_name"], "r", encoding="utf-8") as file:
reader = csv.DictReader(file) reader = csv.DictReader(file)
for line in reader: for line in reader:

View File

@ -341,7 +341,7 @@ class DestinationsTest(TJDestsTestCase):
) as mock_obj: ) as mock_obj:
call_command("import_ceeb", "foo.csv") call_command("import_ceeb", "foo.csv")
mock_obj.assert_called_with("foo.csv", "r") mock_obj.assert_called_with("foo.csv", "r", encoding="utf-8")
self.assertEqual( self.assertEqual(
1, 1,
@ -381,7 +381,7 @@ class DestinationsTest(TJDestsTestCase):
) as mock_obj: ) as mock_obj:
call_command("import_ceeb", "foo.csv") call_command("import_ceeb", "foo.csv")
mock_obj.assert_called_with("foo.csv", "r") mock_obj.assert_called_with("foo.csv", "r", encoding="utf-8")
self.assertEqual( self.assertEqual(
1, 1,

View File

@ -103,7 +103,7 @@ class ProfileTest(TJDestsTestCase):
1, 1,
User.objects.filter( User.objects.filter(
id=user.id, id=user.id,
GPA=1.234, GPA=3.141,
biography="hello2", biography="hello2",
attending_decision=decision, attending_decision=decision,
publish_data=True, publish_data=True,