mirror of
https://github.com/etnguyen03/tjdests.git
synced 2025-04-20 17:50:16 -04:00
fix: appease testing suite
This commit is contained in:
parent
46120a18f3
commit
5551d2e11c
|
@ -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)
|
||||
|
|
|
@ -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:
|
||||
|
|
|
@ -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,
|
||||
|
|
|
@ -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,
|
||||
|
|
Loading…
Reference in New Issue
Block a user