diff --git a/ki/test/test_profile_endpoint.py b/ki/test/test_profile_endpoint.py index 5678a0f..6093dca 100644 --- a/ki/test/test_profile_endpoint.py +++ b/ki/test/test_profile_endpoint.py @@ -51,6 +51,12 @@ class TestProfileEndpoint(unittest.TestCase): }) self.assertEqual(response.status_code, 200) + with app.app_context(): + user = User.query.filter(User.id == 1).first() + profile = user.profile + self.assertEqual("Herr Dr. Dr.", profile.pronouns) + self.assertEqual("ja", profile.volunteerwork) + self.assertEqual("Hallo", profile.freetext) def test_get_profile(self): user = User(auth_id="peter")