Skip to content

All 34 tests pass + CI#40

Draft
NickEngmann wants to merge 1 commit intomasterfrom
lotus/tests-in-plants
Draft

All 34 tests pass + CI#40
NickEngmann wants to merge 1 commit intomasterfrom
lotus/tests-in-plants

Conversation

@NickEngmann
Copy link
Owner

Summary

All 34 tests pass + CI

Files Changed

  • /workspace/repo/tests/test_moisture_sensor.py
  • /workspace/repo/tests/embedded_mocks.py
  • /workspace/repo/tests/conftest.py

Diff Stats

.github/workflows/test.yml    |  35 ++
 .gitignore                    |  15 +-
 MARISOL.md                    |  18 +
 tests/conftest.py             |  56 ++++
 tests/embedded_mocks.py       | 749 ++++++++++++++++++++++++++++++++++++++++++
 tests/test_example.py         |  55 ++++
 tests/test_moisture_sensor.py | 313 ++++++++++++++++++
 7 files changed, 1240 insertions(+), 1 deletion(-)

Test Results

Metric Value
Passed 34
Failed 0
Total 34
Pass Rate 100%
Full test output
ED [ 41%]
tests/test_moisture_sensor.py::TestBatteryVoltageCalculation::test_battery_voltage_at_4000 PASSED [ 44%]
tests/test_moisture_sensor.py::TestBatteryVoltageCalculation::test_battery_voltage_at_4095 PASSED [ 47%]
tests/test_moisture_sensor.py::TestArgonDeviceLogic::test_argon_wait_time PASSED [ 50%]
tests/test_moisture_sensor.py::TestArgonDeviceLogic::test_argon_publish_topics PASSED [ 52%]
tests/test_moisture_sensor.py::TestXenonDeviceLogic::test_xenon_sleep_duration PASSED [ 55%]
tests/test_moisture_sensor.py::TestXenonDeviceLogic::test_xenon_usb_wait_time PASSED [ 58%]
tests/test_moisture_sensor.py::TestXenonDeviceLogic::test_xenon_battery_threshold PASSED [ 61%]
tests/test_moisture_sensor.py::TestXenonDeviceLogic::test_xenon_publish_topics PASSED [ 64%]
tests/test_moisture_sensor.py::TestLEDControlLogic::test_led_on_initialization PASSED [ 67%]
tests/test_moisture_sensor.py::TestLEDControlLogic::test_led_off_after_publish PASSED [ 70%]
tests/test_moisture_sensor.py::TestLEDControlLogic::test_led_initialization_sequence PASSED [ 73%]
tests/test_moisture_sensor.py::TestSensorPinConfiguration::test_moisture_pin_on_argon PASSED [ 76%]
tests/test_moisture_sensor.py::TestSensorPinConfiguration::test_moisture_pin_on_xenon PASSED [ 79%]
tests/test_moisture_sensor.py::TestSensorPinConfiguration::test_board_led_on_argon PASSED [ 82%]
tests/test_moisture_sensor.py::TestSensorPinConfiguration::test_board_led_on_xenon PASSED [ 85%]
tests/test_moisture_sensor.py::TestADCResolution::test_12_bit_adc_range PASSED [ 88%]
tests/test_moisture_sensor.py::TestADCResolution::test_analog_read_range PASSED [ 91%]
tests/test_moisture_sensor.py::TestIntegration::test_full_moisture_reading_workflow PASSED [ 94%]
tests/test_moisture_sensor.py::TestIntegration::test_full_battery_voltage_workflow PASSED [ 97%]
tests/test_moisture_sensor.py::TestIntegration::test_moisture_percentage_inversion PASSED [100%]

============================== 34 passed in 0.03s ==============================

Phase

test — part of Marisol's autonomous coding pipeline


Generated by Marisol's autonomous coding engine

CI/CD

  • GitHub Actions workflow added (.github/workflows/test.yml)

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

Successfully merging this pull request may close these issues.

1 participant