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

Prompt the user to insert their U2F Device #44

Merged
merged 3 commits into from
Jan 18, 2018
Merged

Prompt the user to insert their U2F Device #44

merged 3 commits into from
Jan 18, 2018

Conversation

mide
Copy link
Contributor

@mide mide commented Jan 17, 2018

This replaces #36

@coveralls
Copy link

coveralls commented Jan 17, 2018

Coverage Status

Coverage decreased (-1.2%) to 39.602% when pulling 6019b51 on mide:prompt-u2f into 6f3357a on cevoaustralia:master.

@coveralls
Copy link

coveralls commented Jan 17, 2018

Coverage Status

Coverage decreased (-0.7%) to 40.044% when pulling 27ddce5 on mide:prompt-u2f into 6f3357a on cevoaustralia:master.

@mide
Copy link
Contributor Author

mide commented Jan 18, 2018

I know we've got a slight decrease in coverage, but can we consider merging this as-is?

@coveralls
Copy link

coveralls commented Jan 18, 2018

Coverage Status

Coverage decreased (-1.2%) to 40.044% when pulling 7746e00 on mide:prompt-u2f into 6f3357a on cevoaustralia:master.

2 similar comments
@coveralls
Copy link

Coverage Status

Coverage decreased (-1.2%) to 40.044% when pulling 7746e00 on mide:prompt-u2f into 6f3357a on cevoaustralia:master.

@coveralls
Copy link

Coverage Status

Coverage decreased (-1.2%) to 40.044% when pulling 7746e00 on mide:prompt-u2f into 6f3357a on cevoaustralia:master.

Copy link
Contributor

@stevemac007 stevemac007 left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Yeah, I'd like to get coverage up, but this looks valuable as it stands.

@nonspecialist
Copy link
Contributor

The message prompts the user to insert the U2F device and "press enter to try again" -- does the U2F library read the keypress? Because it isn't in the added code ...

@mide
Copy link
Contributor Author

mide commented Jan 18, 2018

@nonspecialist the input() line is what captures the input, but that's in the google.py. Do you think a better place for this logic to live is the u2f.py?

input("Insert your U2F device and press enter to try again...")

And @stevemac007 I agree 100% regarding the coverage. I'm finding a lot of this a bit tricky to write tests for (but I'm trying!)

@nonspecialist
Copy link
Contributor

@mide oh 🤦‍♂️ of course it is. I claim my one pre-coffee brain fart for today.

I agree accepting the loss of coverage for this is ok.

@nonspecialist nonspecialist self-requested a review January 18, 2018 20:58
Copy link
Contributor

@nonspecialist nonspecialist left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

yes, this is useful

@nonspecialist nonspecialist merged commit 8507268 into cevoaustralia:master Jan 18, 2018
@mide mide deleted the prompt-u2f branch January 18, 2018 21:00
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.

4 participants