Ian McEwen
0523d4c94f
disable R0917 pylint failures
2024-10-12 12:49:14 -07:00
DJ Holt
40353a387e
Fix tests for remote position configs
2024-09-19 03:31:01 -06:00
Ian McEwen
4fdbcb9679
Fix test_fuzz_fromStr for floats
2024-09-17 21:10:57 -07:00
Derek Arnold
2026212a00
please pylint with a docstring and newline
2024-09-15 16:27:40 -05:00
Derek Arnold
34f9be255e
fix unrelated bug when fromStr input is short hex
...
For example, 0x0 will generate an unhandled ValueError. This was caught
during a random unit test run for 3.9, so I figure I'd fix it.
This is unrelated to the PR otherwise.
2024-09-15 16:20:50 -05:00
Derek Arnold
e561222ea7
add docstrings
2024-09-15 16:06:44 -05:00
Derek Arnold
73a1bbc7d5
add test coverage for changes to requestChannels
2024-09-15 16:02:59 -05:00
Derek Arnold
62f5201a38
Add test covering retry logic
2024-09-15 12:04:22 -05:00
Derek Arnold
aa74db46cb
update message check in test to reflect new message
2024-09-15 11:59:03 -05:00
Ian McEwen
399dd477b8
Merge branch 'master' into 2.5
2024-09-05 14:00:35 -07:00
Jonathan Bennett
5c312bedc1
Remove assert from test, due to removed position time
2024-08-30 01:15:40 -05:00
Ian McEwen
84dff75399
allow for underscore-only stuff in camel_to_snake, silly as that is
2024-08-24 23:38:48 -07:00
Ian McEwen
df12b8a659
appease the pylint beast
2024-08-24 23:34:28 -07:00
Ian McEwen
eedf42b904
add more fuzzing tests for utility functions
2024-08-24 22:25:18 -07:00
Ian McEwen
e7ed254d9d
appease pylint, tests, mypy
2024-08-24 22:00:29 -07:00
Kevin Hester
8096d10276
Do code coverage testing on analysis (using stored device data)
2024-08-01 10:07:48 -07:00
Kevin Hester
bf71e09091
get test coverage on powermon and slog stuff
2024-07-31 15:46:37 -07:00
Kevin Hester
88b73611f0
Move protobufs to meshtastic.protobuf python namespace
2024-06-26 10:05:59 -07:00
Ian McEwen
267923fdc5
Add hypothesis fuzzing test for _timeago
2024-06-25 18:14:07 -07:00
Ian McEwen
9ab1b32bdb
make pylint happy with a docstring
2024-06-25 18:09:20 -07:00
Federico Ceratto
c34d08b0e5
Refactor timeago and add tests
...
_timeago is not specialized for mesh interfaces so it is factored
out into a private function
2024-06-21 10:28:45 +02:00
Ian McEwen
e27d210a71
Test with --dest on setlat/remove-position for the error/exit case
2024-06-05 19:57:40 -07:00
Ian McEwen
16c08b8b47
Add simple --remove-position test
2024-06-05 19:54:12 -07:00
Ian McEwen
ebd3c7f5e8
Add test for fromStr base64 branch
2024-06-05 19:48:58 -07:00
Ian McEwen
919ae8c40f
make pylint happy, again
2024-06-05 19:32:45 -07:00
Ian McEwen
dd4fccbc77
Add a fairly simple property-based test as a starting point
2024-06-05 19:29:55 -07:00
Nerdenator
87a4bb0888
quick-coverage: fixing linting issues.
2024-06-04 01:15:10 -05:00
Nerdenator
d72cc0e201
quick-coverage: simple test case just to cover uncovered code.
2024-06-04 01:01:32 -05:00
Ian McEwen
1746ad15d7
Use new fixed position admin messages and add --remove-position argument. Fixes #525
2024-05-31 18:44:33 -07:00
Ian McEwen
93e9c1c66c
Initialize unknown nodes more in line with meshtastic/design#16
2024-05-30 13:50:52 -07:00
Ian McEwen
393c765557
Fix up tests
2024-04-21 10:32:07 -07:00
Steve Holden
a07e853f69
Refactor to remove pylint issues.
...
Since one of pylint's complains was that the globals module was
shadowing the built-in, and since the name `config` was already
is use in several modules, globals.py was renamed as mt_config.py.
All tests now pass, and the only remaining local pylint errors
relate to the protobuf code, I'm hoping this will make the PR
valid.
2024-04-10 17:42:44 +01:00
Steve Holden
0d57449030
Begin to rationalise test data.
...
Also refactor to silence some CI issues.
2024-04-10 14:25:17 +01:00
Steve Holden
067cddd354
Refactor to avoid the use of a special global object.
...
The global object formerly used is now replaced by direct use
of the namespace opf the globals module. This eliminates the
redundant getters and setters and simplifies the code for
future maintainers.
Note that the globals module name conflicts (harmlessly at
present) with a Python built-in function. A future commit
should rename it `config` to remove this clash and better
represent its intended purpose.
2024-04-10 10:03:12 +01:00
Ian McEwen
157f9cd276
Group and organize arguments a bit more
2024-04-07 23:20:02 -07:00
Ian McEwen
b57d1d81ff
Fix up pylint from merged PR
2024-04-02 15:15:22 -07:00
Ian McEwen
4c97866875
Merge pull request #511 from flavoromission/506-show-all-module-settings
...
feat:506 show all module settings
2024-04-02 13:11:35 -07:00
Ian McEwen
4baef92523
Fix assorted mypy-detected errors
2024-03-29 18:38:25 -07:00
Ian McEwen
daa5587443
re-fix pylint
2024-03-23 22:17:49 -07:00
Ian McEwen
a139d180b8
Fix up or comment out broken tests, to get CI (hopefully) happy
2024-03-23 22:07:17 -07:00
Ian McEwen
09f8405422
Remove --sendping as REPLY_APP portnum is disabled in firmware now
2024-03-23 21:25:38 -07:00
Ian McEwen
b8640666d7
Fix some outstanding pylint issues (or disable the checks)
2024-03-19 12:47:08 -07:00
flavor omission
27be73c707
feat:506 show all module settings
...
Problem:
Missing fields are omitted.
Solution:
This fix sets the flag `always_print_fields_with_no_presence`
in the invocation of the protobuff method
`MessageToJson` will display the missing fields.
see: MessageToJson 6b36eb633c/python/google/protobuf/json_format.py (L82)
see: issue #506 https://github.com/meshtastic/python/issues/506
2024-03-18 00:01:47 -04:00
Ben Meadors
67636c4ce2
Revert "Move pb2 Files to Own Folder"
2024-03-11 12:18:25 -05:00
foglet15
df8ea85873
change to PbDefinitions for clearer naming
2024-02-25 14:22:15 -05:00
foglet15
10c2e753f5
fix tests imports, add sed for fixing pb2 imports
2024-02-25 14:16:31 -05:00
Wolfgang Nagele
0a8a193081
BLE Support
2024-01-15 21:33:53 +01:00
luzpaz
0a88ca6a5c
Fix various source comment typos
...
Found via `codespell -q 3`
2023-07-15 01:04:47 +00:00
Thomas Göttgens
97aa8a8d74
fixing a few linter errors.
2023-03-31 20:09:59 +02:00
Thomas Göttgens
7e6f13f0a2
establish trunk format
2023-03-31 20:09:59 +02:00