Skip to content

Add sensor and weather tests to meteo_france #238870

Add sensor and weather tests to meteo_france

Add sensor and weather tests to meteo_france #238870

Triggered via pull request February 4, 2025 11:43
Status Failure
Total duration 3m 36s
Artifacts 2

ci.yaml

on: pull_request
Collect information & changes data
15s
Collect information & changes data
Matrix: Prepare dependencies
Prepare pre-commit base
13s
Prepare pre-commit base
Matrix: lint-hadolint
Check hassfest
1m 14s
Check hassfest
Check all requirements
16s
Check all requirements
Check mypy
26s
Check mypy
Check pylint
24s
Check pylint
Check pylint on tests
19s
Check pylint on tests
Matrix: Audit licenses
Check ruff-format
18s
Check ruff-format
Check ruff
22s
Check ruff
Check other linters
32s
Check other linters
Matrix: pytest-mariadb
Matrix: pytest-partial
Matrix: pytest-postgres
Split tests for full run
0s
Split tests for full run
Upload test coverage to Codecov (partial suite)
0s
Upload test coverage to Codecov (partial suite)
Matrix: pytest-full
Upload test coverage to Codecov (full suite)
0s
Upload test coverage to Codecov (full suite)
Fit to window
Zoom out
Zoom in

Annotations

2 errors and 10 warnings
Run tests Python 3.13 (meteo_france): tests/components/meteo_france/test_sensor.py#L32
test_sensor assert [+ received] == [- snapshot] Snapshot 'test_sensor[sensor.magicmock_name_meteofranceclient_get_rain_position_getitem_id_140535519397600_next_rain-entry]' does not exist! + EntityRegistryEntrySnapshot({ + 'aliases': set({ + }), + 'area_id': None, + 'capabilities': None, + 'config_entry_id': <ANY>, + 'device_class': None, + 'device_id': <ANY>, + 'disabled_by': None, + 'domain': 'sensor', + 'entity_category': None, + 'entity_id': 'sensor.magicmock_name_meteofranceclient_get_rain_position_getitem_id_140535519397600_next_rain', + 'has_entity_name': False, + 'hidden_by': None, + 'icon': None, + 'id': <ANY>, + 'labels': set({ + }), + 'name': None, + 'options': dict({ + }), + 'original_device_class': <SensorDeviceClass.TIMESTAMP: 'timestamp'>, + 'original_icon': None, + 'original_name': "<MagicMock name='MeteoFranceClient().get_rain().position.__getitem__()' id='140535519397600'> Next rain", + 'platform': 'meteo_france', + 'previous_unique_id': None, + 'supported_features': 0, + 'translation_key': None, + 'unique_id': "<MagicMock name='MeteoFranceClient().get_rain().position.__getitem__()' id='140535519397600'>,<MagicMock name='MeteoFranceClient().get_rain().position.__getitem__()' id='140535519397600'>_next_rain", + 'unit_of_measurement': None, + })
Run tests Python 3.13 (meteo_france)
Process completed with exit code 1.
Run tests Python 3.13 (meteo_france): venv/lib/python3.13/site-packages/meteofrance_api/model/forecast.py#L86
datetime.datetime.utcnow() is deprecated and scheduled for removal in a future version. Use timezone-aware objects to represent datetimes in UTC: datetime.datetime.now(datetime.UTC).
Run tests Python 3.13 (meteo_france): venv/lib/python3.13/site-packages/meteofrance_api/model/forecast.py#L101
datetime.datetime.utcnow() is deprecated and scheduled for removal in a future version. Use timezone-aware objects to represent datetimes in UTC: datetime.datetime.now(datetime.UTC).
Run tests Python 3.13 (meteo_france): venv/lib/python3.13/site-packages/meteofrance_api/model/forecast.py#L101
datetime.datetime.utcnow() is deprecated and scheduled for removal in a future version. Use timezone-aware objects to represent datetimes in UTC: datetime.datetime.now(datetime.UTC).
Run tests Python 3.13 (meteo_france): venv/lib/python3.13/site-packages/meteofrance_api/model/forecast.py#L86
datetime.datetime.utcnow() is deprecated and scheduled for removal in a future version. Use timezone-aware objects to represent datetimes in UTC: datetime.datetime.now(datetime.UTC).
Run tests Python 3.13 (meteo_france): venv/lib/python3.13/site-packages/meteofrance_api/model/forecast.py#L101
datetime.datetime.utcnow() is deprecated and scheduled for removal in a future version. Use timezone-aware objects to represent datetimes in UTC: datetime.datetime.now(datetime.UTC).
Run tests Python 3.13 (meteo_france): venv/lib/python3.13/site-packages/meteofrance_api/model/forecast.py#L86
datetime.datetime.utcnow() is deprecated and scheduled for removal in a future version. Use timezone-aware objects to represent datetimes in UTC: datetime.datetime.now(datetime.UTC).
Run tests Python 3.13 (meteo_france): venv/lib/python3.13/site-packages/meteofrance_api/model/forecast.py#L86
datetime.datetime.utcnow() is deprecated and scheduled for removal in a future version. Use timezone-aware objects to represent datetimes in UTC: datetime.datetime.now(datetime.UTC).
Run tests Python 3.13 (meteo_france): venv/lib/python3.13/site-packages/meteofrance_api/model/forecast.py#L101
datetime.datetime.utcnow() is deprecated and scheduled for removal in a future version. Use timezone-aware objects to represent datetimes in UTC: datetime.datetime.now(datetime.UTC).
Run tests Python 3.13 (meteo_france): venv/lib/python3.13/site-packages/meteofrance_api/model/forecast.py#L101
datetime.datetime.utcnow() is deprecated and scheduled for removal in a future version. Use timezone-aware objects to represent datetimes in UTC: datetime.datetime.now(datetime.UTC).
Run tests Python 3.13 (meteo_france): venv/lib/python3.13/site-packages/meteofrance_api/model/forecast.py#L86
datetime.datetime.utcnow() is deprecated and scheduled for removal in a future version. Use timezone-aware objects to represent datetimes in UTC: datetime.datetime.now(datetime.UTC).

Artifacts

Produced during runtime
Name Size
pip-freeze-3.13
12.1 KB
pytest-238870-3.13-meteo_france
3.28 KB