Skip to content

All 12 tests pass + CI#18

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

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

Conversation

@NickEngmann
Copy link
Owner

Summary

All 12 tests pass + CI

Files Changed

  • /workspace/repo/tests/test_inplants.py

Diff Stats

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

Test Results

Metric Value
Passed 12
Failed 0
Total 12
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/python
cachedir: .pytest_cache
rootdir: /workspace/repo
collecting ... collected 12 items

tests/test_inplants.py::test_moisture_percentage_dry_sensor PASSED       [  8%]
tests/test_inplants.py::test_moisture_percentage_wet_sensor PASSED       [ 16%]
tests/test_inplants.py::test_moisture_percentage_mid_range PASSED        [ 25%]
tests/test_inplants.py::test_moisture_percentage_edge_cases PASSED       [ 33%]
tests/test_inplants.py::test_battery_voltage_calculation PASSED          [ 41%]
tests/test_inplants.py::test_battery_voltage_thresholds PASSED           [ 50%]
tests/test_inplants.py::test_voltage_to_percentage_conversion PASSED     [ 58%]
tests/test_inplants.py::test_moisture_percentage_clamping PASSED         [ 66%]
tests/test_inplants.py::test_arduino_map_helper PASSED                   [ 75%]
tests/test_inplants.py::test_arduino_constrain_helper PASSED             [ 83%]
tests/test_inplants.py::test_combined_moisture_and_battery_logic PASSED  [ 91%]
tests/test_inplants.py::test_sensor_calibration_values PASSED            [100%]

============================== 12 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)

@NickEngmann NickEngmann deleted the lotus/tests-in-plants branch February 27, 2026 09:14
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