Skip to content

Commit 7df1d3e

Browse files
committed
Help investigate workflow failures
1 parent 1e51ae3 commit 7df1d3e

2 files changed

Lines changed: 7 additions & 1 deletion

File tree

.github/workflows/validate.yaml

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -34,5 +34,10 @@ jobs:
3434
run: |
3535
python -m pip install --upgrade pip
3636
pip install pytest pytest-asyncio syrupy homeassistant pytest-homeassistant-custom-component victron_mqtt
37+
- name: Log environment
38+
run: |
39+
python --version
40+
pip show homeassistant pytest-homeassistant-custom-component syrupy victron_mqtt | grep -E "^(Name|Version)"
41+
pip freeze | sort
3742
- name: Run tests
38-
run: pytest tests/
43+
run: pytest tests/ -vv

tests/test_hub.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -662,6 +662,7 @@ async def test_number_set_value(
662662
await inject_message(victron_hub, "N/123/evcharger/0/SetCurrent", '{"value": 20.0}')
663663
await hass.async_block_till_done()
664664
state = hass.states.get(entity_id)
665+
assert state is not None
665666
assert float(state.state) == 20.0
666667

667668
# Set value via service

0 commit comments

Comments
 (0)