shukari
cbf7b9befe
pylint: test_mesh_interface.py line too long
2025-08-09 16:58:48 +02:00
shukari
a79e17a575
fix test_exit_with_exception test, pytest for windows
...
- test are now runable on windows, some are ignored and a fake termios for the decorators
- test_exit_with_exception with a true exception
2025-08-06 23:01:40 +02:00
pdxlocations
c76e4dac87
undo comment
2025-06-24 11:17:01 -07:00
pdxlocations
428be9fbce
add mesh_interface tests
2025-06-24 11:16:23 -07:00
Chris Danis
b42d33824a
Fix pytest test collection on default install
...
As is, with a default `poetry install`, a simple `poetry pytest run`
will encouter import errors while reading the test files themselves --
which causes pytest to fatally error during test collection, meaning no
tests are run.
2025-03-07 13:16:20 -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
Jonathan Bennett
5c312bedc1
Remove assert from test, due to removed position time
2024-08-30 01:15:40 -05: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
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
Ian McEwen
4baef92523
Fix assorted mypy-detected errors
2024-03-29 18:38:25 -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
Thomas Göttgens
7e6f13f0a2
establish trunk format
2023-03-31 20:09:59 +02:00
Mike Kinney
5bfebbe436
comment out code until it does not complain
2022-06-16 22:38:23 -07:00
Mike Kinney
89b0426a2b
fix warnings now that tests have been commented out
2022-06-16 19:26:52 -07:00
Mike Kinney
132fb4fe5f
get pylint to pass
2022-06-16 19:13:18 -07:00
Ben Meadors
b79b7ceb40
Correct config
2022-06-16 20:31:14 -05:00
Mike Kinney
6f2efdcefe
got lint and pytest working
2022-03-02 10:28:07 -08:00
Mike Kinney
0f89baa36e
fix the pylint unused-argument warnings
2022-01-12 14:41:49 -08:00
Mike Kinney
bc17e9b389
fixes for working on mac air
2022-01-11 16:36:39 -08:00
Mike Kinney
cba424fde0
move slower unit tests to unitslow
2022-01-05 21:12:50 -08:00
Mike Kinney
83c18f4008
working on more unit tests
2022-01-01 15:48:33 -08:00
Mike Kinney
8b6321ce7f
add a few more tests
2022-01-01 15:21:53 -08:00
Mike Kinney
9fac981ba6
test heartbeatTimer
2022-01-01 14:53:57 -08:00
Mike Kinney
65960fb982
added tests for _getOrCreateByNum(), nodeNumToId(), and _fixupPosition(); found/fixed bug on _fixupPosition
2021-12-31 13:43:37 -08:00
Mike Kinney
4ee647403b
fix output on tests using pytest -s option; fixed some tests
2021-12-31 10:55:13 -08:00
Mike Kinney
fee052892b
got gpio read to work and one unit test
2021-12-23 14:35:48 -08:00
Mike Kinney
0f0a978692
minor refactor now that there is a fixture
2021-12-22 16:20:09 -08:00
Mike Kinney
4428ccfe59
add unit tests for getMyUser(), getLongName(), getShortName(), and sendPacket()
2021-12-22 16:15:16 -08:00
Mike Kinney
8e578c3b24
add unit test for getMyNodeInfo()
2021-12-21 16:27:43 -08:00
Mike Kinney
2919930473
unit tests for sendPacket()
2021-12-21 15:21:30 -08:00
Mike Kinney
302f52469a
add unit tests for toRadio, sendData() and sendPosition(); found and fixed Exception without raise
2021-12-21 14:47:05 -08:00
Mike Kinney
036ce8258f
ignore long binary line
2021-12-20 22:25:19 -08:00
Mike Kinney
1c8a5d8c5b
work around for issue 172
2021-12-20 22:11:52 -08:00
Mike Kinney
fc637ee6ae
add to test for showNodes()
2021-12-16 22:17:08 -08:00
Mike Kinney
e43d9f5318
add unit tests for _handleFromRadio() and sendPosition()
2021-12-16 19:12:55 -08:00
Mike Kinney
2a0c9f0669
add mesh_interface unit tests for handlePacketFromRadio and getNode
2021-12-16 17:02:40 -08:00
Mike Kinney
6b0521003c
wip on adding unit tests to mesh_interface
2021-12-16 11:51:25 -08:00
Mike Kinney
ef9a97d1f7
initial test_ble_interface; add another unit test
2021-12-15 16:15:46 -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