Skip to content
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

Merged
merged 4 commits into from
Oct 28, 2019
Merged

enable verbose output #55

merged 4 commits into from
Oct 28, 2019

Conversation

bllfr0g
Copy link
Collaborator

@bllfr0g bllfr0g commented Oct 21, 2019

--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.

bleh and others added 3 commits October 21, 2019 06:56
	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):
Copy link

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):
Copy link

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.

@bllfr0g
Copy link
Collaborator Author

bllfr0g commented Oct 21, 2019

codeclimate flag will be fixed with new .codeclimate.yml in this PR

@codeclimate
Copy link

codeclimate bot commented Oct 21, 2019

Code Climate has analyzed commit c6eecd5 and detected 2 issues on this pull request.

Here's the issue category breakdown:

Category Count
Complexity 2

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.

@pyro2927 pyro2927 merged commit f9572fa into pyro2927:master Oct 28, 2019
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants