-
Notifications
You must be signed in to change notification settings - Fork 5
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #109 from pennlabs/ss-reservations
Retrieve reservations and room info
- Loading branch information
Showing
6 changed files
with
79 additions
and
22 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,4 +1,4 @@ | ||
__version__ = '1.7.1' | ||
__version__ = '1.8' | ||
|
||
from .registrar import Registrar | ||
from .directory import Directory | ||
|
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 |
---|---|---|
|
@@ -29,19 +29,22 @@ def test_booking(self): | |
if item["availability"]: | ||
room = item | ||
break | ||
item = room["id"] | ||
result = self.studyspaces.book_room( | ||
item=item, | ||
start=room["availability"][0]["from"], | ||
end=room["availability"][0]["to"], | ||
fname="First Name", | ||
lname="Last Name", | ||
email="[email protected]", | ||
nickname="Test Booking", | ||
custom={ | ||
"q2533": "000-000-0000", | ||
"q2555": "2-3" | ||
}, | ||
test=True | ||
) | ||
ok_("success" in result) | ||
if room: | ||
item = room["id"] | ||
result = self.studyspaces.book_room( | ||
item=item, | ||
start=room["availability"][0]["from"], | ||
end=room["availability"][0]["to"], | ||
fname="First Name", | ||
lname="Last Name", | ||
email="[email protected]", | ||
nickname="Test Booking", | ||
custom={ | ||
"q2533": "000-000-0000", | ||
"q2555": "2-3" | ||
}, | ||
test=True | ||
) | ||
ok_("success" in result) | ||
else: | ||
ok_(True) |
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