tborg.tests package¶
- class tborg.tests.test_tborg.BaseTest(name, filename=None)[source]¶
Bases:
TestCase- LOGGER_NAME = 'thunder-borg'¶
- class tborg.tests.test_tborg.TestClassMethods(name)[source]¶
Bases:
BaseTest- test_config_with_auto_set_address()[source]¶
Test that
auto_set_addrif set toTruecauses the API to find the first valid board and configure itself to that board.
- test_set_i2c_address_with_address_range_invalid()[source]¶
Test that an exception is raised when the address is out of range.
- class tborg.tests.test_tborg.TestNoSetUp(name)[source]¶
Bases:
BaseTest- test_config_with_invalid_address()[source]¶
Test that an invalid address creates the expected exception.
- class tborg.tests.test_tborg.TestThunderBorg(name)[source]¶
Bases:
BaseTest- test_set_external_led_colors()[source]¶
Test that setting external LEDs works correctly. This test requires external LEDs.
- test_set_get_battery_monitoring_limits()[source]¶
Test that setting and getting the battery monitoring limits functions properly.
Note
Set limits based on a fully charged LiIon battery pack. This could be anywhere between 15.4 and 16.8 volts maximum depending on the type of batteries used. The minimum should never be less than 3 volts per cell or in a four pack 12 volts.