extend profile update test
continuous-integration/drone/push Build is passing Details

This commit is contained in:
weeman 2021-06-20 20:21:49 +02:00
parent ace51851de
commit f20db25f74
Signed by: weeman
GPG Key ID: 34F0524D4DA694A1
1 changed files with 6 additions and 0 deletions

View File

@ -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")