Skip to content

All 20 tests pass + CI#24

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

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

Conversation

@NickEngmann
Copy link
Owner

Summary

All 20 tests pass + CI

Files Changed

  • /workspace/repo/tests/test_inplants.py
  • /workspace/repo/tests/embedded_mocks.py

Diff Stats

.github/workflows/test.yml |  29 ++++++
 .gitignore                 |  15 ++-
 tests/conftest.py          |  45 +++++++++
 tests/embedded_mocks.py    | 226 +++++++++++++++++++++++++++++++++++++++++++++
 tests/test_example.py      |  55 +++++++++++
 tests/test_inplants.py     | 149 ++++++++++++++++++++++++++++++
 6 files changed, 518 insertions(+), 1 deletion(-)

Test Results

Metric Value
Passed 20
Failed 0
Total 20
Pass Rate 100%
Full test output
form 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 20 items

tests/test_example.py::test_arduino_map PASSED                           [  5%]
tests/test_example.py::test_arduino_constrain PASSED                     [ 10%]
tests/test_example.py::test_analog_voltage_conversion PASSED             [ 15%]
tests/test_example.py::test_serial_protocol_example PASSED               [ 20%]
tests/test_inplants.py::TestMoistureCalculations::test_moisture_percentage_dry_sensor PASSED [ 25%]
tests/test_inplants.py::TestMoistureCalculations::test_moisture_percentage_wet_sensor PASSED [ 30%]
tests/test_inplants.py::TestMoistureCalculations::test_moisture_percentage_mid_range PASSED [ 35%]
tests/test_inplants.py::TestMoistureCalculations::test_moisture_percentage_with_realistic_values PASSED [ 40%]
tests/test_inplants.py::TestVoltageCalculations::test_voltage_zero_reading PASSED [ 45%]
tests/test_inplants.py::TestVoltageCalculations::test_voltage_full_scale PASSED [ 50%]
tests/test_inplants.py::TestVoltageCalculations::test_voltage_with_realistic_values PASSED [ 55%]
tests/test_inplants.py::TestAnalogReadMapping::test_map_full_range PASSED [ 60%]
tests/test_inplants.py::TestAnalogReadMapping::test_map_half_range PASSED [ 65%]
tests/test_inplants.py::TestConstrainFunction::test_constrain_within_bounds PASSED [ 70%]
tests/test_inplants.py::TestConstrainFunction::test_constrain_below_lower PASSED [ 75%]
tests/test_inplants.py::TestConstrainFunction::test_constrain_above_upper PASSED [ 80%]
tests/test_inplants.py::TestMapFunction::test_map_identity PASSED        [ 85%]
tests/test_inplants.py::TestMapFunction::test_map_half_scale PASSED      [ 90%]
tests/test_inplants.py::TestMapFunction::test_map_full_scale PASSED      [ 95%]
tests/test_inplants.py::TestMapFunction::test_map_zero_scale PASSED      [100%]

============================== 20 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:24
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