-
Notifications
You must be signed in to change notification settings - Fork 128
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
enable verbose output #55
Conversation
modified: southwest/southwest.py
modified: southwest/southwest.py
@@ -46,8 +46,8 @@ def schedule_checkin(flight_time, reservation): | |||
print("{} got {}{}!".format(doc['name'], doc['boardingGroup'], doc['boardingPosition'])) | |||
|
|||
|
|||
def auto_checkin(reservation_number, first_name, last_name, notify=[]): | |||
r = Reservation(reservation_number, first_name, last_name, notify) | |||
def auto_checkin(reservation_number, first_name, last_name, notify=[], verbose=False): |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Function auto_checkin
has 5 arguments (exceeds 4 allowed). Consider refactoring.
@@ -10,11 +11,12 @@ | |||
|
|||
class Reservation(): | |||
|
|||
def __init__(self, number, first, last, notifications=[]): | |||
def __init__(self, number, first, last, notifications=[], verbose=False): |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Function __init__
has 5 arguments (exceeds 4 allowed). Consider refactoring.
codeclimate flag will be fixed with new .codeclimate.yml in this PR |
Code Climate has analyzed commit c6eecd5 and detected 2 issues on this pull request. Here's the issue category breakdown:
The test coverage on the diff in this pull request is 40.0% (50% is the threshold). This pull request will bring the total coverage in the repository to 86.1%. View more on Code Climate. |
--verbose switch already existed, but did nothing.
This change causes checkin to print out the raw JSON it receives from southwest, if --verbose is selected.