Skip to content

All 10 tests pass + CI#14

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

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

Conversation

@NickEngmann
Copy link
Owner

Summary

All 10 tests pass + CI

Files Changed

  • /workspace/repo/tests/test_inplants.py

Diff Stats

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

Test Results

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

tests/test_inplants.py::TestMoistureCalculations::test_moisture_percentage_calculation PASSED [ 10%]
tests/test_inplants.py::TestMoistureCalculations::test_moisture_percentage_clamping PASSED [ 20%]
tests/test_inplants.py::TestMoistureCalculations::test_moisture_percentage_interpolation PASSED [ 30%]
tests/test_inplants.py::TestAnalogConversion::test_analog_voltage_conversion PASSED [ 40%]
tests/test_inplants.py::TestCustomCalibration::test_moisture_with_custom_calibration PASSED [ 50%]
tests/test_inplants.py::TestParticlePublish::test_particle_publish_mock PASSED [ 60%]
tests/test_inplants.py::TestSensorReadingSimulation::test_sensor_reading_simulation PASSED [ 70%]
tests/test_inplants.py::TestSensorReadingSimulation::test_multiple_sensor_readings PASSED [ 80%]
tests/test_inplants.py::TestArduinoHelpers::test_map_edge_cases PASSED   [ 90%]
tests/test_inplants.py::TestArduinoHelpers::test_constrain_edge_cases PASSED [100%]

============================== 10 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 06:08
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