fix: appease testing suite

This commit is contained in:
Shreyas Mayya 2021-11-02 10:28:40 -04:00
parent c6d5f7ecf1
commit d20ff70eaf
No known key found for this signature in database
GPG Key ID: 42522E3641BA2E31
4 changed files with 5 additions and 5 deletions

View File

@ -8,7 +8,7 @@ class User(AbstractUser):
accepted_terms = models.BooleanField(default=False)
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_student = models.BooleanField(default=False)

View File

@ -17,7 +17,7 @@ class Command(BaseCommand):
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)
for line in reader:

View File

@ -341,7 +341,7 @@ class DestinationsTest(TJDestsTestCase):
) as mock_obj:
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(
1,
@ -381,7 +381,7 @@ class DestinationsTest(TJDestsTestCase):
) as mock_obj:
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(
1,

View File

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