Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

test_circuit_status fails #37

Open
olegogogo opened this issue Nov 21, 2024 · 2 comments
Open

test_circuit_status fails #37

olegogogo opened this issue Nov 21, 2024 · 2 comments

Comments

@olegogogo
Copy link
Contributor

i have real can node v3:
изображение
when i have tried to test it with test_circuit_status.py, some tests failed

====================================================================== short test summary info =======================================================================
FAILED test_circuit_status.py::TestCircuitStatus::test_circuit_5v_id - AttributeError: 'NoneType' object has no attribute 'message'
FAILED test_circuit_status.py::TestCircuitStatus::test_circuit_vin_id - AttributeError: 'NoneType' object has no attribute 'message'
FAILED test_circuit_status.py::TestCircuitStatus::test_voltage_5v - AttributeError: 'NoneType' object has no attribute 'message'
FAILED test_circuit_status.py::TestCircuitStatus::test_voltage_vin - NotImplementedError
FAILED test_circuit_status.py::TestCircuitStatus::test_error_flags_5v - NotImplementedError
FAILED test_circuit_status.py::TestCircuitStatus::test_error_flags_vin - NotImplementedError
============================================================== 6 failed, 4 passed, 3 warnings in 14.08s ==============================================================

On the other hand, in dronecan_gui_tool the voltage is shown in the circuit_status messages:
изображение

So I expected the tests to be passed

@olegogogo
Copy link
Contributor Author

after running create_slcan.sh errors changed

====================================================================== short test summary info =======================================================================
FAILED test_circuit_status.py::TestDeviceTemperature::test_error_flags - NotImplementedError
FAILED test_circuit_status.py::TestCircuitStatus::test_circuit_5v_id - NotImplementedError
FAILED test_circuit_status.py::TestCircuitStatus::test_circuit_vin_id - NotImplementedError
FAILED test_circuit_status.py::TestCircuitStatus::test_voltage_5v - NotImplementedError
FAILED test_circuit_status.py::TestCircuitStatus::test_voltage_vin - NotImplementedError
FAILED test_circuit_status.py::TestCircuitStatus::test_error_flags_5v - NotImplementedError
FAILED test_circuit_status.py::TestCircuitStatus::test_error_flags_vin - NotImplementedError

@olegogogo
Copy link
Contributor Author

if i do not create slcan, and node_id <25 i got less fails:

====================================================================== short test summary info =======================================================================
FAILED test_circuit_status.py::TestCircuitStatus::test_circuit_5v_id - AttributeError: 'NoneType' object has no attribute 'message'
FAILED test_circuit_status.py::TestCircuitStatus::test_voltage_5v - AttributeError: 'NoneType' object has no attribute 'message'
FAILED test_circuit_status.py::TestCircuitStatus::test_error_flags_5v - AttributeError: 'NoneType' object has no attribute 'message'
============================================================== 3 failed, 7 passed, 3 warnings in 12.91s ==============================================================

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant