extend profile update test
All checks were successful
continuous-integration/drone/push Build is passing
All checks were successful
continuous-integration/drone/push Build is passing
This commit is contained in:
parent
ace51851de
commit
f20db25f74
@ -51,6 +51,12 @@ class TestProfileEndpoint(unittest.TestCase):
|
|||||||
})
|
})
|
||||||
|
|
||||||
self.assertEqual(response.status_code, 200)
|
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):
|
def test_get_profile(self):
|
||||||
user = User(auth_id="peter")
|
user = User(auth_id="peter")
|
||||||
|
Loading…
Reference in New Issue
Block a user