add availability

This commit is contained in:
2021-07-05 20:16:50 +02:00
parent 61bf24eab2
commit a401c6d4a7
8 changed files with 12 additions and 15 deletions

View File

@ -33,6 +33,7 @@ class TestProfileEndpoint(ApiTest):
data = {
"pronouns": "Monsieur",
"volunteerwork": "ja",
"availability": "Nie",
"freetext": "Hallo",
"visible": True,
"address": {
@ -96,6 +97,7 @@ class TestProfileEndpoint(ApiTest):
profile = user.profile
self.assertEqual("Monsieur", profile.pronouns)
self.assertEqual("ja", profile.volunteerwork)
self.assertEqual("Nie", profile.availability)
self.assertEqual("Hallo", profile.freetext)
self.assertTrue(profile.visible)
@ -165,6 +167,7 @@ class TestProfileEndpoint(ApiTest):
"user_id": 1,
"nickname": "peternichtlustig",
"pronouns": "Herr Dr. Dr.",
"availability": "Immer",
"freetext": "Ich mag Kaffee",
"volunteerwork": "Gartenverein",
"visible": False,