-
Notifications
You must be signed in to change notification settings - Fork 9
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Create an appointment when someone requests a booking. Delete it when…
… denied (#329) * Create an appointment when someone requests a booking. Delete it when denied. * Remove deprecated tests, mark some more things as deprecated, fix up tests to include appointment check. * 🌐 complete German translation * 💚 reduce row height in list view --------- Co-authored-by: Andreas Müller <[email protected]>
- Loading branch information
1 parent
49e0b41
commit bd1a3ea
Showing
16 changed files
with
167 additions
and
151 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -5,3 +5,6 @@ | |
|
||
# list of redis keys | ||
REDIS_REMOTE_EVENTS_KEY = 'rmt_events' | ||
|
||
APP_ENV_DEV = 'dev' | ||
APP_ENV_TEST = 'test' |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -306,25 +306,6 @@ def test_read_public_missing_appointment(self, with_client, make_appointment): | |
response = with_client.get(f"/apmt/public/{generated_appointment.slug}-that-isnt-real") | ||
assert response.status_code == 404, response.text | ||
|
||
def test_attendee_selects_appointment_slot(self, with_client, make_appointment): | ||
generated_appointment = make_appointment() | ||
|
||
response = with_client.put( | ||
f"/apmt/public/{generated_appointment.slug}", | ||
json={ | ||
"slot_id": generated_appointment.slots[0].id, | ||
"attendee": { | ||
"email": "[email protected]", | ||
"name": "John Doe", | ||
}, | ||
}, | ||
) | ||
assert response.status_code == 200, response.text | ||
data = response.json() | ||
assert data["slot_id"] == generated_appointment.slots[0].id | ||
assert data["attendee"]["email"] == "[email protected]" | ||
assert data["attendee"]["name"] == "John Doe" | ||
|
||
def test_read_public_appointment_after_attendee_selection(self, with_db, with_client, make_appointment, make_attendee, make_appointment_slot): | ||
generated_appointment = make_appointment() | ||
generated_attendee = make_attendee() | ||
|
@@ -379,15 +360,6 @@ def test_attendee_selects_missing_slot_of_existing_appointment(self, with_client | |
) | ||
assert response.status_code == 404, response.text | ||
|
||
def test_attendee_provides_invalid_email_address(self, with_client, make_appointment): | ||
generated_appointment = make_appointment() | ||
|
||
response = with_client.put( | ||
f"/apmt/public/{generated_appointment.slug}", | ||
json={"slot_id": generated_appointment.slots[0].id, "attendee": {"email": "a", "name": "b"}}, | ||
) | ||
assert response.status_code == 400, response.text | ||
|
||
def test_get_remote_caldav_events(self, with_client, make_appointment, monkeypatch): | ||
"""Test against a fake remote caldav, we're testing the route controller, not the actual caldav connector here!""" | ||
from appointment.controller.calendar import CalDavConnector | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.