-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
* adding list bookings module * adding `list_requests` parser * adding `show_inbox` parser * adding a `logout` parser * adding `prog` arg to parsers * improving test coverage * improving docstrings * making `help_<command>` methods `@staticmethod` * fixing potential arg errors * making help method static
- Loading branch information
Showing
14 changed files
with
242 additions
and
102 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
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 |
---|---|---|
@@ -0,0 +1,19 @@ | ||
#!/usr/bin/python | ||
# -*- coding: utf-8 -*- | ||
|
||
"""List bookings | ||
The member should be able to list all bookings on rides s/he offers. | ||
""" | ||
|
||
from mini_project_1.common import ShellArgumentParser | ||
|
||
|
||
def get_list_bookings_parser() -> ShellArgumentParser: | ||
parser = ShellArgumentParser( | ||
prog="list_bookings", | ||
add_help=False, | ||
description="List all the bookings that you offer") | ||
|
||
return parser | ||
|
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 |
---|---|---|
@@ -0,0 +1,19 @@ | ||
#!/usr/bin/python | ||
# -*- coding: utf-8 -*- | ||
|
||
"""List requests | ||
The member should be able to see all his/her ride requests. | ||
""" | ||
|
||
from mini_project_1.common import ShellArgumentParser | ||
|
||
|
||
def get_list_ride_requests_parser() -> ShellArgumentParser: | ||
parser = ShellArgumentParser( | ||
prog="list_requests", | ||
add_help=False, | ||
description="List all the ride requests that you offer") | ||
|
||
return parser | ||
|
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 |
---|---|---|
@@ -0,0 +1,15 @@ | ||
#!/usr/bin/python | ||
# -*- coding: utf-8 -*- | ||
|
||
"""Logout functionality""" | ||
|
||
from mini_project_1.common import ShellArgumentParser | ||
|
||
|
||
def get_logout_parser() -> ShellArgumentParser: | ||
parser = ShellArgumentParser( | ||
prog="logout", | ||
add_help=False, | ||
description="Logout to the mini-project-1 database") | ||
|
||
return parser |
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
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.