Skip to content

All 15 tests pass + CI#26

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

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

Conversation

@NickEngmann
Copy link
Owner

Summary

All 15 tests pass + CI

Files Changed

  • /workspace/repo/tests/test_inplants.py

Diff Stats

.github/workflows/test.yml |  29 +++++++++
 .gitignore                 |  15 ++++-
 tests/conftest.py          |  45 ++++++++++++++
 tests/test_example.py      |  55 +++++++++++++++++
 tests/test_inplants.py     | 151 +++++++++++++++++++++++++++++++++++++++++++++
 5 files changed, 294 insertions(+), 1 deletion(-)

Test Results

Metric Value
Passed 15
Failed 0
Total 15
Pass Rate 100%
Full test output
============================= test session starts ==============================
platform linux -- Python 3.12.12, pytest-9.0.2, pluggy-1.6.0 -- /usr/local/bin/python3
cachedir: .pytest_cache
rootdir: /workspace/repo
collecting ... collected 15 items

tests/test_inplants.py::TestMoistureCalculations::test_moisture_percentage_dry_sensor PASSED [  6%]
tests/test_inplants.py::TestMoistureCalculations::test_moisture_percentage_wet_sensor PASSED [ 13%]
tests/test_inplants.py::TestMoistureCalculations::test_moisture_percentage_halfway PASSED [ 20%]
tests/test_inplants.py::TestMoistureCalculations::test_moisture_percentage_realistic_dry PASSED [ 26%]
tests/test_inplants.py::TestMoistureCalculations::test_moisture_percentage_realistic_wet PASSED [ 33%]
tests/test_inplants.py::TestMoistureCalculations::test_moisture_percentage_constrained PASSED [ 40%]
tests/test_inplants.py::TestVoltageCalculations::test_voltage_zero_reading PASSED [ 46%]
tests/test_inplants.py::TestVoltageCalculations::test_voltage_full_scale PASSED [ 53%]
tests/test_inplants.py::TestVoltageCalculations::test_voltage典型_value PASSED [ 60%]
tests/test_inplants.py::TestLEDControl::test_led_blink_pattern_duration PASSED [ 66%]
tests/test_inplants.py::TestLEDControl::test_led_initialization PASSED   [ 73%]
tests/test_inplants.py::TestSensorPinConfiguration::test_moisture_sensor_pin PASSED [ 80%]
tests/test_inplants.py::TestSensorPinConfiguration::test_analog_resolution PASSED [ 86%]
tests/test_inplants.py::TestPublishData::test_analog_value_range PASSED  [ 93%]
tests/test_inplants.py::TestPublishData::test_percentage_value_range PASSED [100%]

============================== 15 passed in 0.02s ==============================

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)

@NickEngmann NickEngmann deleted the lotus/tests-in-plants branch February 28, 2026 08:39
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