Add sensor and weather tests to meteo_france #238870
ci.yaml
on: pull_request
Collect information & changes data
15s
Matrix: Prepare dependencies
Matrix: lint-hadolint
Check hassfest
1m 14s
Check all requirements
16s
Check mypy
26s
Matrix: Audit licenses
Check ruff-format
18s
Check ruff
22s
Check other linters
32s
Matrix: pytest-mariadb
Matrix: pytest-partial
Matrix: pytest-postgres
Upload test coverage to Codecov (partial suite)
0s
Matrix: pytest-full
Upload test coverage to Codecov (full suite)
0s
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 |
|