31 Commits

Author SHA1 Message Date
Mike Kinney
2fcfdeb04f minor formatting; added unit tests for Node() 2021-12-16 09:10:45 -08:00
Mike Kinney
34789899d8 add main unit test for --ble and --host; add test for --sendtext with --dest 2021-12-15 21:59:41 -08:00
Mike Kinney
6239585bf2 add main unit test for onReceive() and onConnection() 2021-12-15 21:46:40 -08:00
Mike Kinney
ef9a97d1f7 initial test_ble_interface; add another unit test 2021-12-15 16:15:46 -08:00
Mike Kinney
712f1f5288 add main unit test --noproto, --seriallog, and a deprecated arg 2021-12-15 14:44:28 -08:00
Mike Kinney
5e1e968ccd add main unit test for --get 2021-12-15 14:21:37 -08:00
Mike Kinney
dae1f08632 remove lines that are not needed 2021-12-15 13:46:36 -08:00
Mike Kinney
d44e06420a add couple more tests for --pos-fields 2021-12-15 13:41:28 -08:00
Mike Kinney
8927fdcd1e figured out how to test --pos-fields 2021-12-15 12:54:59 -08:00
Mike Kinney
a248807165 remove print statements that were helpful during dev 2021-12-13 00:00:04 -08:00
Mike Kinney
0475fc9895 add main unit tests for all of the range settings like --ch-longslow 2021-12-12 21:06:50 -08:00
Mike Kinney
26b82303f8 refactor global_reset() to fixture 2021-12-12 20:30:40 -08:00
Mike Kinney
b4a4fed8d6 add unit tests for --ch-del 2021-12-12 20:03:43 -08:00
Mike Kinney
ed0bf6df4a add main unit tests for --ch-add 2021-12-12 19:52:36 -08:00
Mike Kinney
2f8f928465 add main unit test for --configure 2021-12-12 19:14:51 -08:00
Mike Kinney
a6dbdc29c1 figured out how to unit test --set with invalid field 2021-12-12 18:14:30 -08:00
Mike Kinney
4e3dcb6531 figured out how to unit test --set 2021-12-12 18:01:49 -08:00
Mike Kinney
d2a9b87968 add main unit test for --seturl 2021-12-12 17:05:38 -08:00
Mike Kinney
59e14d3741 add main unit tests for --set-team 2021-12-12 14:37:41 -08:00
Mike Kinney
f3490f80fa add tests for --setlat, --setlon, and --setalt 2021-12-12 14:08:09 -08:00
Mike Kinney
121f38a1b7 add unit test for --sendtext, --reboot, and --sendping 2021-12-12 11:03:05 -08:00
Mike Kinney
d2d7c9fb0e add unit test for --set-owner and --set-ham; refactor setting encryption after 2021-12-12 10:30:28 -08:00
Mike Kinney
34d31711ad add --qr and --nodes unit test 2021-12-12 09:27:51 -08:00
Mike Kinney
0943ecab5b sort possible options/tests, figured out how to mock so --info can be tested 2021-12-12 00:22:17 -08:00
Mike Kinney
691801fca0 add more tests; refactor due to pylint suggestion 2021-12-10 20:02:01 -08:00
Mike Kinney
ce794ee035 re-worked the code for ch-set and ch-enable/ch-disable; updated tests 2021-12-10 19:10:09 -08:00
Mike Kinney
ada45ca860 make unit tests pass even if hardware is connected serially 2021-12-10 10:20:16 -08:00
Mike Kinney
b53521c029 add two more smoke1 tests 2021-12-10 10:17:37 -08:00
Mike Kinney
e414e7fb35 temp removed import 2021-12-10 09:30:50 -08:00
Mike Kinney
10e97ee88c added --test2 unit test; wip on --info 2021-12-10 09:24:57 -08:00
Mike Kinney
80d13eac85 had to move test dir to tests because of pytest looking for __init__.py 2021-12-09 17:20:13 -08:00