Skip to content

All 19 tests pass + CI#12

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

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

Conversation

@NickEngmann
Copy link
Owner

Summary

All 19 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_inplants.py     | 173 +++++++++++++++++++++++++++++++++++++++++++++
 4 files changed, 261 insertions(+), 1 deletion(-)

Test Results

Metric Value
Passed 19
Failed 0
Total 19
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 19 items

tests/test_inplants.py::TestMoisturePercentage::test_dry_sensor PASSED   [  5%]
tests/test_inplants.py::TestMoisturePercentage::test_wet_sensor PASSED   [ 10%]
tests/test_inplants.py::TestMoisturePercentage::test_mid_moisture PASSED [ 15%]
tests/test_inplants.py::TestMoisturePercentage::test_realistic_dry_reading PASSED [ 21%]
tests/test_inplants.py::TestMoisturePercentage::test_realistic_wet_reading PASSED [ 26%]
tests/test_inplants.py::TestBatteryVoltage::test_zero_voltage PASSED     [ 31%]
tests/test_inplants.py::TestBatteryVoltage::test_full_voltage PASSED     [ 36%]
tests/test_inplants.py::TestBatteryVoltage::test_mid_voltage PASSED      [ 42%]
tests/test_inplants.py::TestBatteryVoltage::test_low_voltage PASSED      [ 47%]
tests/test_inplants.py::TestConstrain::test_within_bounds PASSED         [ 52%]
tests/test_inplants.py::TestConstrain::test_below_bounds PASSED          [ 57%]
tests/test_inplants.py::TestConstrain::test_above_bounds PASSED          [ 63%]
tests/test_inplants.py::TestMapFunction::test_map_mid_range PASSED       [ 68%]
tests/test_inplants.py::TestMapFunction::test_map_full_range PASSED      [ 73%]
tests/test_inplants.py::TestMapFunction::test_map_zero PASSED            [ 78%]
tests/test_inplants.py::TestLEDSequence::test_led_blink_duration PASSED  [ 84%]
tests/test_inplants.py::TestTimingIntervals::test_argon_interval PASSED  [ 89%]
tests/test_inplants.py::TestTimingIntervals::test_xenon_charging_interval PASSED [ 94%]
tests/test_inplants.py::TestTimingIntervals::test_xenon_sleep_interval PASSED [100%]

============================== 19 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 27, 2026 04:53
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