From f20db25f745b19c30e1a491a08b7b04ba56d9db6 Mon Sep 17 00:00:00 2001 From: Michael Weimann Date: Sun, 20 Jun 2021 20:21:49 +0200 Subject: [PATCH] extend profile update test --- ki/test/test_profile_endpoint.py | 6 ++++++ 1 file changed, 6 insertions(+) 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")