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

added option to display resolution in ls command #86

Merged
merged 7 commits into from
Jun 23, 2020
Merged

added option to display resolution in ls command #86

merged 7 commits into from
Jun 23, 2020

Conversation

bschick
Copy link
Contributor

@bschick bschick commented Jun 21, 2020

Sorry, didn't add a new test case but existing cli tests pass.

Copy link
Owner

@timofurrer timofurrer left a comment

Choose a reason for hiding this comment

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

Thanks for the PR 🎉

About the "not failing tests": most of the tests for the ls command just check if a specific strings exists in the output, but not the exact output itself - thus, they pass.

It would still be great if you could add test cases for this new feature :)

Also, can you add a new changelog entry? You can use 86.feature as a filename.

Thanks :)

@@ -59,27 +59,49 @@ def cli():
@click.option(
"-j", "--json", "as_json", flag_value=True, help="Output result in JSON format"
)
def ls(types, as_json): # pylint: disable=invalid-name
@click.option(
"-p",
Copy link
Owner

Choose a reason for hiding this comment

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

Why is it -p ?

Copy link
Contributor Author

Choose a reason for hiding this comment

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

just copied what was used for the 'all' command

Copy link
Contributor Author

Choose a reason for hiding this comment

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

let me know if you want me to remove it

Copy link
Owner

Choose a reason for hiding this comment

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

I see, my mistake - this was probably introduced when I renamed precision to resolution.
I'll change that in master :)

@timofurrer
Copy link
Owner

Please also rebase to the current master - I've added a fix to trigger Ci on Pull Requests :)

@codecov-commenter
Copy link

codecov-commenter commented Jun 23, 2020

Codecov Report

Merging #86 into master will increase coverage by 0.01%.
The diff coverage is 100.00%.

Impacted file tree graph

@@            Coverage Diff             @@
##           master      #86      +/-   ##
==========================================
+ Coverage   99.35%   99.36%   +0.01%     
==========================================
  Files           8        8              
  Lines         308      313       +5     
  Branches       49       52       +3     
==========================================
+ Hits          306      311       +5     
  Misses          2        2              
Impacted Files Coverage Δ
src/w1thermsensor/cli.py 100.00% <100.00%> (ø)

Continue to review full report at Codecov.

Legend - Click here to learn more
Δ = absolute <relative> (impact), ø = not affected, ? = missing data
Powered by Codecov. Last update e39b0bb...392c263. Read the comment docs.

@bschick bschick requested a review from timofurrer June 23, 2020 05:36
@bschick
Copy link
Contributor Author

bschick commented Jun 23, 2020

check failure looks like a timeout in codecov

changelog/86.feature Outdated Show resolved Hide resolved
@timofurrer timofurrer merged commit 2d4ca08 into timofurrer:master Jun 23, 2020
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.

3 participants