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

fixed broken percentage_design & extended testing #731

Open
wants to merge 1 commit into
base: current
Choose a base branch
from

Conversation

lucible
Copy link
Contributor

@lucible lucible commented Apr 12, 2019

The percentage definition in BatteryChecker uses the wh_remaining & wh_total methods instead of the percentage method. While battery.percentage takes into account the design=True/False flag, battery.wh_total does not. This lead to percentage and percentage_design being reported as exactly the same number (with percentage_design being incorrect). I have edited the two wh_total functions to recognize the design flag and return the proper value when it is true, and extended the testing to percentage & percentage_design.

Note that test_battery_issue729 will fail (reporting FULL rather than DIS) until #730 is merged.

@chestm007
Copy link
Collaborator

closing and reopening to trigger a new build

@chestm007 chestm007 closed this Jul 10, 2019
@chestm007 chestm007 reopened this Jul 10, 2019
@enkore enkore changed the base branch from master to current September 6, 2020 16:31
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.

2 participants