generic_battery_examples ======================== Examples for testing battery tests. It's called "Battery" in AVL. Inherit ------- - :doc:`generic_battery.test_list ` - :doc:`generic_common.test_list ` BatteryBasic ------------ pytest_name ``````````` :doc:`battery_basic <../pytests/battery_basic>` BatteryBasicCycleCountAtMost5 ----------------------------- pytest_name ``````````` :doc:`battery_basic <../pytests/battery_basic>` args ```` ``max_cycle_count`` :: 5 BatteryCapacity --------------- run_if `````` :: constants.has_battery pytest_name ``````````` :doc:`battery <../pytests/battery>` BatteryCapacityBetween4000And8000 --------------------------------- run_if `````` :: constants.has_battery pytest_name ``````````` :doc:`battery <../pytests/battery>` args ```` ``design_capacity_range`` :: [ 4000, 8000 ] BatteryCycle ------------ pytest_name ``````````` :doc:`battery_cycle <../pytests/battery_cycle>` BlockingCharge10PercentMoreIn5Minutes ------------------------------------- pytest_name ``````````` :doc:`blocking_charge <../pytests/blocking_charge>` args ```` ``target_charge_pct_is_delta`` :: true ``timeout_secs`` :: 300 ``target_charge_pct`` :: 10 BlockingChargeTo75 ------------------ pytest_name ``````````` :doc:`blocking_charge <../pytests/blocking_charge>` args ```` ``target_charge_pct`` :: 75 BlockingChargeToCutOffSetting ----------------------------- pytest_name ``````````` :doc:`blocking_charge <../pytests/blocking_charge>` args ```` ``target_charge_pct`` :: "cutoff" ChargeDischargeCurrentDifference -------------------------------- pytest_name ``````````` :doc:`battery_current <../pytests/battery_current>` args ```` ``min_charging_current`` :: null ``min_discharging_current`` :: null ``timeout_secs`` :: 30 ``max_battery_level`` :: 90 ``current_difference`` :: 250 ChargeDischargeCurrentExpectNoChargeWhenCharging ------------------------------------------------ pytest_name ``````````` :doc:`battery_current <../pytests/battery_current>` args ```` ``min_charging_current`` :: -150 ``min_discharging_current`` :: 400 ``timeout_secs`` :: 30 ``max_battery_level`` :: 90 Charger ------- pytest_name ``````````` :doc:`charger <../pytests/charger>` args ```` ``min_starting_charge_pct`` :: 87 ``max_starting_charge_pct`` :: 87 ``check_battery_current`` :: false ``starting_timeout_secs`` :: 3600 ``spec_list`` :: [] Charger20VInPort0 ----------------- pytest_name ``````````` :doc:`battery_current <../pytests/battery_current>` args ```` ``usbpd_info`` :: [ 0, 19000, 21000 ] ``usbpd_prompt`` :: "i18n! USB TypeC" BatteryTests ------------ Serial subtests ``````````````` - ProbeBattery - `BatteryCapacity`_ - `BatteryCapacityBetween4000And8000`_ - BatterySysfs - ChargeDischargeCurrent - `ChargeDischargeCurrentExpectNoChargeWhenCharging`_ - `ChargeDischargeCurrentDifference`_ - `Charger20VInPort0`_ - `BatteryBasic`_ - `BatteryBasicCycleCountAtMost5`_ - ChargerTypeDetection - `BlockingChargeToCutOffSetting`_ - `BlockingCharge10PercentMoreIn5Minutes`_ - `BlockingChargeTo75`_ - `Charger`_ - BlockingCharge - `BatteryCycle`_ - BCICGroup