Commit c0582cc4 by Will Daly

Fix broken profile API test

parent 8761eaf3
...@@ -73,7 +73,7 @@ def profile_info(username): ...@@ -73,7 +73,7 @@ def profile_info(username):
"year_of_birth": profile.year_of_birth, "year_of_birth": profile.year_of_birth,
"goals": profile.goals, "goals": profile.goals,
"city": profile.city, "city": profile.city,
"country": profile.country, "country": unicode(profile.country),
} }
return profile_dict return profile_dict
......
...@@ -28,6 +28,12 @@ class ProfileApiTest(TestCase): ...@@ -28,6 +28,12 @@ class ProfileApiTest(TestCase):
'username': self.USERNAME, 'username': self.USERNAME,
'email': self.EMAIL, 'email': self.EMAIL,
'full_name': u'', 'full_name': u'',
'goals': None,
'level_of_education': None,
'mailing_address': None,
'year_of_birth': None,
'country': '',
'city': None,
}) })
def test_update_full_name(self): def test_update_full_name(self):
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment