mini_project_1.post_request module

Post a ride request

Post ride requests. The member should be able to post a ride request by providing a date, a pick up location code, a drop off location code, and the amount willing to pay per seat. The request rid is set by your system to a unique number and the email is set to the email address of the member.

mini_project_1.post_request.date(date_str)[source]

Argparser type validation function for validating a date for use in post_ride_request command

Return type:DateTime
mini_project_1.post_request.get_post_request_parser()[source]

Argparser for the shell.MiniProjectShell post_request command

Return type:ShellArgumentParser
mini_project_1.post_request.price(price_string)[source]

Argparser type validation function for validating a price for use in post_ride_request command

Return type:int
mini_project_1.post_request.valid_location_code(database, location_code_str)[source]

Validate that a location ode for use in post_ride_request command actually exists in locations

Return type:bool