diff --git a/requirements_test.txt b/requirements_test.txt index 2a15881eaaf..92e024913d5 100644 --- a/requirements_test.txt +++ b/requirements_test.txt @@ -1,6 +1,7 @@ -r requirements_base.txt asynctest==0.13.0 fnv-hash-fast==0.5.0 +freezegun==1.4.0 home-assistant-frontend homeassistant janus==1.0.0 diff --git a/tests/common.py b/tests/common.py index 84f9a364323..af80525da06 100644 --- a/tests/common.py +++ b/tests/common.py @@ -174,7 +174,7 @@ def _sort_list(entry): value = data[key] if key in to_remove: continue - elif isinstance(value, (str, bool, int, NoneType)): + elif isinstance(value, (str, bool, int, float, NoneType)): returndata[key] = value elif isinstance(value, dict): returndata[key] = recursive_remove_key( diff --git a/tests/conftest.py b/tests/conftest.py index 6097078e636..05def2509e3 100644 --- a/tests/conftest.py +++ b/tests/conftest.py @@ -1,5 +1,6 @@ """Set up some common test helper things.""" # pytest: disable=protected-access +from . import patch_time # noqa: F401, isort:skip import asyncio from collections import OrderedDict from dataclasses import asdict @@ -12,6 +13,7 @@ from unittest.mock import MagicMock, patch from awesomeversion import AwesomeVersion +import freezegun from homeassistant import loader from homeassistant.auth.models import Credentials from homeassistant.auth.providers.homeassistant import HassAuthProvider @@ -76,6 +78,12 @@ asyncio.sleep = lambda _: _sleep(0) +@pytest.fixture(autouse=True) +def time_freezer(): + with freezegun.freeze_time("2019-02-26T15:02:39Z"): + yield + + @pytest.fixture(autouse=True) def set_request_context(request: pytest.FixtureRequest): """Set request context for every test.""" @@ -106,7 +114,7 @@ def event_loop(): @pytest.fixture -def hass(event_loop, tmpdir, check_report_issue: None): +def hass(time_freezer, event_loop, tmpdir, check_report_issue: None): """Fixture to provide a test instance of Home Assistant.""" def exc_handle(loop, context): @@ -265,7 +273,7 @@ async def assert_hacs_data( ), **(additional or {}), }, - ("categories", "config_entry_id", "device_id", "labels", "last_fetched"), + ("categories", "config_entry_id", "device_id", "labels"), ) ), filename, diff --git a/tests/patch_time.py b/tests/patch_time.py new file mode 100644 index 00000000000..f6c92414737 --- /dev/null +++ b/tests/patch_time.py @@ -0,0 +1,26 @@ +"""Patch time related functions. + +Copied from Home Assistant Core. +""" +from __future__ import annotations + +import datetime +import time + +from homeassistant import runner, util +from homeassistant.util import dt as dt_util + + +def _utcnow() -> datetime.datetime: + """Make utcnow patchable by freezegun.""" + return datetime.datetime.now(tz=datetime.UTC) + + +def _monotonic() -> float: + """Make monotonic patchable by freezegun.""" + return time.monotonic() + + +dt_util.utcnow = _utcnow # type: ignore[assignment] +util.utcnow = _utcnow # type: ignore[assignment] +runner.monotonic = _monotonic # type: ignore[assignment] diff --git a/tests/snapshots/hacs-test-org/appdaemon-basic/test_download_repository.json b/tests/snapshots/hacs-test-org/appdaemon-basic/test_download_repository.json index 1aa9bf9472e..1d3f8036084 100644 --- a/tests/snapshots/hacs-test-org/appdaemon-basic/test_download_repository.json +++ b/tests/snapshots/hacs-test-org/appdaemon-basic/test_download_repository.json @@ -10,6 +10,7 @@ "installed": true, "installed_commit": "7fd1a60", "last_commit": "7fd1a60", + "last_fetched": 1551193359.0, "last_updated": "2011-01-26T19:06:43Z", "last_version": "1.0.0", "published_tags": [ @@ -42,6 +43,7 @@ "full_name": "hacs/integration", "id": "172733314", "installed": true, + "last_fetched": 1551193359.0, "last_updated": "2023-11-18T21:22:03Z", "manifest_name": "HACS", "open_issues": 2, diff --git a/tests/snapshots/hacs-test-org/appdaemon-basic/test_remove_repository_post.json b/tests/snapshots/hacs-test-org/appdaemon-basic/test_remove_repository_post.json index 74ee6460d35..38c917a6ef1 100644 --- a/tests/snapshots/hacs-test-org/appdaemon-basic/test_remove_repository_post.json +++ b/tests/snapshots/hacs-test-org/appdaemon-basic/test_remove_repository_post.json @@ -19,6 +19,7 @@ "full_name": "hacs/integration", "id": "172733314", "installed": true, + "last_fetched": 1551193359.0, "last_updated": "2023-11-18T21:22:03Z", "manifest_name": "HACS", "open_issues": 2, diff --git a/tests/snapshots/hacs-test-org/appdaemon-basic/test_remove_repository_pre.json b/tests/snapshots/hacs-test-org/appdaemon-basic/test_remove_repository_pre.json index 2ac7738f774..d9f9aa4172f 100644 --- a/tests/snapshots/hacs-test-org/appdaemon-basic/test_remove_repository_pre.json +++ b/tests/snapshots/hacs-test-org/appdaemon-basic/test_remove_repository_pre.json @@ -6,6 +6,7 @@ "full_name": "hacs-test-org/appdaemon-basic", "id": "1296265", "installed": true, + "last_fetched": 0.0, "repository_manifest": {} } }, @@ -22,6 +23,7 @@ "full_name": "hacs/integration", "id": "172733314", "installed": true, + "last_fetched": 1551193359.0, "last_updated": "2023-11-18T21:22:03Z", "manifest_name": "HACS", "open_issues": 2, diff --git a/tests/snapshots/hacs-test-org/appdaemon-basic/test_update_repository_entity.json b/tests/snapshots/hacs-test-org/appdaemon-basic/test_update_repository_entity.json index cb96b8b9100..4c9e404879a 100644 --- a/tests/snapshots/hacs-test-org/appdaemon-basic/test_update_repository_entity.json +++ b/tests/snapshots/hacs-test-org/appdaemon-basic/test_update_repository_entity.json @@ -10,6 +10,7 @@ "installed": true, "installed_commit": "7fd1a60", "last_commit": "7fd1a60", + "last_fetched": 1551193359.0, "last_updated": "2011-01-26T19:06:43Z", "last_version": "1.0.0", "published_tags": [ @@ -41,6 +42,7 @@ "full_name": "hacs/integration", "id": "172733314", "installed": true, + "last_fetched": 1551193359.0, "last_updated": "2023-11-18T21:22:03Z", "manifest_name": "HACS", "releases": true, diff --git a/tests/snapshots/hacs-test-org/appdaemon-basic/test_update_repository_websocket.json b/tests/snapshots/hacs-test-org/appdaemon-basic/test_update_repository_websocket.json index 29b30cafec0..7d553e755bf 100644 --- a/tests/snapshots/hacs-test-org/appdaemon-basic/test_update_repository_websocket.json +++ b/tests/snapshots/hacs-test-org/appdaemon-basic/test_update_repository_websocket.json @@ -10,6 +10,7 @@ "installed": true, "installed_commit": "7fd1a60", "last_commit": "7fd1a60", + "last_fetched": 1551193359.0, "last_updated": "2011-01-26T19:06:43Z", "last_version": "1.0.0", "published_tags": [ @@ -43,6 +44,7 @@ "full_name": "hacs/integration", "id": "172733314", "installed": true, + "last_fetched": 1551193359.0, "last_updated": "2023-11-18T21:22:03Z", "manifest_name": "HACS", "open_issues": 2, diff --git a/tests/snapshots/hacs-test-org/integration-basic/test_download_repository.json b/tests/snapshots/hacs-test-org/integration-basic/test_download_repository.json index a79a82519a0..78d15a2313e 100644 --- a/tests/snapshots/hacs-test-org/integration-basic/test_download_repository.json +++ b/tests/snapshots/hacs-test-org/integration-basic/test_download_repository.json @@ -19,6 +19,7 @@ "installed": true, "installed_commit": "7fd1a60", "last_commit": "7fd1a60", + "last_fetched": 1551193359.0, "last_updated": "2011-01-26T19:06:43Z", "last_version": "1.0.0", "manifest_name": "Proxy manifest", @@ -46,6 +47,7 @@ "full_name": "hacs/integration", "id": "172733314", "installed": true, + "last_fetched": 1551193359.0, "last_updated": "2023-11-18T21:22:03Z", "manifest_name": "HACS", "open_issues": 2, diff --git a/tests/snapshots/hacs-test-org/integration-basic/test_remove_repository_post.json b/tests/snapshots/hacs-test-org/integration-basic/test_remove_repository_post.json index 74ee6460d35..38c917a6ef1 100644 --- a/tests/snapshots/hacs-test-org/integration-basic/test_remove_repository_post.json +++ b/tests/snapshots/hacs-test-org/integration-basic/test_remove_repository_post.json @@ -19,6 +19,7 @@ "full_name": "hacs/integration", "id": "172733314", "installed": true, + "last_fetched": 1551193359.0, "last_updated": "2023-11-18T21:22:03Z", "manifest_name": "HACS", "open_issues": 2, diff --git a/tests/snapshots/hacs-test-org/integration-basic/test_remove_repository_pre.json b/tests/snapshots/hacs-test-org/integration-basic/test_remove_repository_pre.json index eb088131d88..2e6f9c16f37 100644 --- a/tests/snapshots/hacs-test-org/integration-basic/test_remove_repository_pre.json +++ b/tests/snapshots/hacs-test-org/integration-basic/test_remove_repository_pre.json @@ -13,6 +13,7 @@ "full_name": "hacs-test-org/integration-basic", "id": "1296269", "installed": true, + "last_fetched": 0.0, "repository_manifest": {} }, "172733314": { @@ -23,6 +24,7 @@ "full_name": "hacs/integration", "id": "172733314", "installed": true, + "last_fetched": 1551193359.0, "last_updated": "2023-11-18T21:22:03Z", "manifest_name": "HACS", "open_issues": 2, diff --git a/tests/snapshots/hacs-test-org/integration-basic/test_update_repository_entity.json b/tests/snapshots/hacs-test-org/integration-basic/test_update_repository_entity.json index ef93c2abd0b..747d047faaf 100644 --- a/tests/snapshots/hacs-test-org/integration-basic/test_update_repository_entity.json +++ b/tests/snapshots/hacs-test-org/integration-basic/test_update_repository_entity.json @@ -19,6 +19,7 @@ "installed": true, "installed_commit": "7fd1a60", "last_commit": "7fd1a60", + "last_fetched": 1551193359.0, "last_updated": "2011-01-26T19:06:43Z", "last_version": "1.0.0", "manifest_name": "Proxy manifest", @@ -45,6 +46,7 @@ "full_name": "hacs/integration", "id": "172733314", "installed": true, + "last_fetched": 1551193359.0, "last_updated": "2023-11-18T21:22:03Z", "manifest_name": "HACS", "releases": true, diff --git a/tests/snapshots/hacs-test-org/integration-basic/test_update_repository_websocket.json b/tests/snapshots/hacs-test-org/integration-basic/test_update_repository_websocket.json index b114fe3eda0..9e684b92885 100644 --- a/tests/snapshots/hacs-test-org/integration-basic/test_update_repository_websocket.json +++ b/tests/snapshots/hacs-test-org/integration-basic/test_update_repository_websocket.json @@ -18,6 +18,7 @@ "installed": true, "installed_commit": "7fd1a60", "last_commit": "7fd1a60", + "last_fetched": 1551193359.0, "last_updated": "2011-01-26T19:06:43Z", "last_version": "1.0.0", "manifest_name": "Proxy manifest", @@ -46,6 +47,7 @@ "full_name": "hacs/integration", "id": "172733314", "installed": true, + "last_fetched": 1551193359.0, "last_updated": "2023-11-18T21:22:03Z", "manifest_name": "HACS", "open_issues": 2, diff --git a/tests/snapshots/hacs-test-org/plugin-basic/test_download_repository.json b/tests/snapshots/hacs-test-org/plugin-basic/test_download_repository.json index 7260b654f1e..2dcbc14e0a4 100644 --- a/tests/snapshots/hacs-test-org/plugin-basic/test_download_repository.json +++ b/tests/snapshots/hacs-test-org/plugin-basic/test_download_repository.json @@ -19,6 +19,7 @@ "full_name": "hacs/integration", "id": "172733314", "installed": true, + "last_fetched": 1551193359.0, "last_updated": "2023-11-18T21:22:03Z", "manifest_name": "HACS", "open_issues": 2, @@ -44,6 +45,7 @@ "installed": true, "installed_commit": "7fd1a60", "last_commit": "7fd1a60", + "last_fetched": 1551193359.0, "last_updated": "2011-01-26T19:06:43Z", "last_version": "1.0.0", "published_tags": [ diff --git a/tests/snapshots/hacs-test-org/plugin-basic/test_remove_repository_post.json b/tests/snapshots/hacs-test-org/plugin-basic/test_remove_repository_post.json index 74ee6460d35..38c917a6ef1 100644 --- a/tests/snapshots/hacs-test-org/plugin-basic/test_remove_repository_post.json +++ b/tests/snapshots/hacs-test-org/plugin-basic/test_remove_repository_post.json @@ -19,6 +19,7 @@ "full_name": "hacs/integration", "id": "172733314", "installed": true, + "last_fetched": 1551193359.0, "last_updated": "2023-11-18T21:22:03Z", "manifest_name": "HACS", "open_issues": 2, diff --git a/tests/snapshots/hacs-test-org/plugin-basic/test_remove_repository_pre.json b/tests/snapshots/hacs-test-org/plugin-basic/test_remove_repository_pre.json index 60c32a80363..736256c86d0 100644 --- a/tests/snapshots/hacs-test-org/plugin-basic/test_remove_repository_pre.json +++ b/tests/snapshots/hacs-test-org/plugin-basic/test_remove_repository_pre.json @@ -19,6 +19,7 @@ "full_name": "hacs/integration", "id": "172733314", "installed": true, + "last_fetched": 1551193359.0, "last_updated": "2023-11-18T21:22:03Z", "manifest_name": "HACS", "open_issues": 2, @@ -40,6 +41,7 @@ "full_name": "hacs-test-org/plugin-basic", "id": "1296267", "installed": true, + "last_fetched": 0.0, "repository_manifest": {} } }, diff --git a/tests/snapshots/hacs-test-org/plugin-basic/test_update_repository_entity.json b/tests/snapshots/hacs-test-org/plugin-basic/test_update_repository_entity.json index e4cfb69a147..3df2b1090b5 100644 --- a/tests/snapshots/hacs-test-org/plugin-basic/test_update_repository_entity.json +++ b/tests/snapshots/hacs-test-org/plugin-basic/test_update_repository_entity.json @@ -18,6 +18,7 @@ "full_name": "hacs/integration", "id": "172733314", "installed": true, + "last_fetched": 1551193359.0, "last_updated": "2023-11-18T21:22:03Z", "manifest_name": "HACS", "releases": true, @@ -42,6 +43,7 @@ "installed": true, "installed_commit": "7fd1a60", "last_commit": "7fd1a60", + "last_fetched": 1551193359.0, "last_updated": "2011-01-26T19:06:43Z", "last_version": "1.0.0", "published_tags": [ diff --git a/tests/snapshots/hacs-test-org/plugin-basic/test_update_repository_websocket.json b/tests/snapshots/hacs-test-org/plugin-basic/test_update_repository_websocket.json index 3de3bad26a6..060638df8fc 100644 --- a/tests/snapshots/hacs-test-org/plugin-basic/test_update_repository_websocket.json +++ b/tests/snapshots/hacs-test-org/plugin-basic/test_update_repository_websocket.json @@ -19,6 +19,7 @@ "full_name": "hacs/integration", "id": "172733314", "installed": true, + "last_fetched": 1551193359.0, "last_updated": "2023-11-18T21:22:03Z", "manifest_name": "HACS", "open_issues": 2, @@ -44,6 +45,7 @@ "installed": true, "installed_commit": "7fd1a60", "last_commit": "7fd1a60", + "last_fetched": 1551193359.0, "last_updated": "2011-01-26T19:06:43Z", "last_version": "1.0.0", "published_tags": [ diff --git a/tests/snapshots/hacs-test-org/python_script-basic/test_download_repository.json b/tests/snapshots/hacs-test-org/python_script-basic/test_download_repository.json index a85c9a42eb9..ca9eb71def4 100644 --- a/tests/snapshots/hacs-test-org/python_script-basic/test_download_repository.json +++ b/tests/snapshots/hacs-test-org/python_script-basic/test_download_repository.json @@ -19,6 +19,7 @@ "full_name": "hacs/integration", "id": "172733314", "installed": true, + "last_fetched": 1551193359.0, "last_updated": "2023-11-18T21:22:03Z", "manifest_name": "HACS", "open_issues": 2, @@ -50,6 +51,7 @@ "installed": true, "installed_commit": "7fd1a60", "last_commit": "7fd1a60", + "last_fetched": 1551193359.0, "last_updated": "2011-01-26T19:06:43Z", "last_version": "1.0.0", "published_tags": [ diff --git a/tests/snapshots/hacs-test-org/python_script-basic/test_remove_repository_post.json b/tests/snapshots/hacs-test-org/python_script-basic/test_remove_repository_post.json index 74ee6460d35..38c917a6ef1 100644 --- a/tests/snapshots/hacs-test-org/python_script-basic/test_remove_repository_post.json +++ b/tests/snapshots/hacs-test-org/python_script-basic/test_remove_repository_post.json @@ -19,6 +19,7 @@ "full_name": "hacs/integration", "id": "172733314", "installed": true, + "last_fetched": 1551193359.0, "last_updated": "2023-11-18T21:22:03Z", "manifest_name": "HACS", "open_issues": 2, diff --git a/tests/snapshots/hacs-test-org/python_script-basic/test_remove_repository_pre.json b/tests/snapshots/hacs-test-org/python_script-basic/test_remove_repository_pre.json index 7f7303aab02..f1a5ebd33a8 100644 --- a/tests/snapshots/hacs-test-org/python_script-basic/test_remove_repository_pre.json +++ b/tests/snapshots/hacs-test-org/python_script-basic/test_remove_repository_pre.json @@ -19,6 +19,7 @@ "full_name": "hacs/integration", "id": "172733314", "installed": true, + "last_fetched": 1551193359.0, "last_updated": "2023-11-18T21:22:03Z", "manifest_name": "HACS", "open_issues": 2, @@ -46,6 +47,7 @@ "full_name": "hacs-test-org/python_script-basic", "id": "1296262", "installed": true, + "last_fetched": 0.0, "repository_manifest": {} } }, diff --git a/tests/snapshots/hacs-test-org/python_script-basic/test_update_repository_entity.json b/tests/snapshots/hacs-test-org/python_script-basic/test_update_repository_entity.json index 2255fde376a..2faf76c215b 100644 --- a/tests/snapshots/hacs-test-org/python_script-basic/test_update_repository_entity.json +++ b/tests/snapshots/hacs-test-org/python_script-basic/test_update_repository_entity.json @@ -18,6 +18,7 @@ "full_name": "hacs/integration", "id": "172733314", "installed": true, + "last_fetched": 1551193359.0, "last_updated": "2023-11-18T21:22:03Z", "manifest_name": "HACS", "releases": true, @@ -48,6 +49,7 @@ "installed": true, "installed_commit": "7fd1a60", "last_commit": "7fd1a60", + "last_fetched": 1551193359.0, "last_updated": "2011-01-26T19:06:43Z", "last_version": "1.0.0", "published_tags": [ diff --git a/tests/snapshots/hacs-test-org/python_script-basic/test_update_repository_websocket.json b/tests/snapshots/hacs-test-org/python_script-basic/test_update_repository_websocket.json index 446c6589ef8..5c34698ff82 100644 --- a/tests/snapshots/hacs-test-org/python_script-basic/test_update_repository_websocket.json +++ b/tests/snapshots/hacs-test-org/python_script-basic/test_update_repository_websocket.json @@ -19,6 +19,7 @@ "full_name": "hacs/integration", "id": "172733314", "installed": true, + "last_fetched": 1551193359.0, "last_updated": "2023-11-18T21:22:03Z", "manifest_name": "HACS", "open_issues": 2, @@ -50,6 +51,7 @@ "installed": true, "installed_commit": "7fd1a60", "last_commit": "7fd1a60", + "last_fetched": 1551193359.0, "last_updated": "2011-01-26T19:06:43Z", "last_version": "1.0.0", "published_tags": [ diff --git a/tests/snapshots/hacs-test-org/template-basic/test_download_repository.json b/tests/snapshots/hacs-test-org/template-basic/test_download_repository.json index b7be092eeb9..e1a53d719ac 100644 --- a/tests/snapshots/hacs-test-org/template-basic/test_download_repository.json +++ b/tests/snapshots/hacs-test-org/template-basic/test_download_repository.json @@ -19,6 +19,7 @@ "full_name": "hacs/integration", "id": "172733314", "installed": true, + "last_fetched": 1551193359.0, "last_updated": "2023-11-18T21:22:03Z", "manifest_name": "HACS", "open_issues": 2, @@ -57,6 +58,7 @@ "installed": true, "installed_commit": "7fd1a60", "last_commit": "7fd1a60", + "last_fetched": 1551193359.0, "last_updated": "2011-01-26T19:06:43Z", "last_version": "1.0.0", "published_tags": [ diff --git a/tests/snapshots/hacs-test-org/template-basic/test_remove_repository_post.json b/tests/snapshots/hacs-test-org/template-basic/test_remove_repository_post.json index 74ee6460d35..38c917a6ef1 100644 --- a/tests/snapshots/hacs-test-org/template-basic/test_remove_repository_post.json +++ b/tests/snapshots/hacs-test-org/template-basic/test_remove_repository_post.json @@ -19,6 +19,7 @@ "full_name": "hacs/integration", "id": "172733314", "installed": true, + "last_fetched": 1551193359.0, "last_updated": "2023-11-18T21:22:03Z", "manifest_name": "HACS", "open_issues": 2, diff --git a/tests/snapshots/hacs-test-org/template-basic/test_remove_repository_pre.json b/tests/snapshots/hacs-test-org/template-basic/test_remove_repository_pre.json index eea464cd2eb..b4418b656fa 100644 --- a/tests/snapshots/hacs-test-org/template-basic/test_remove_repository_pre.json +++ b/tests/snapshots/hacs-test-org/template-basic/test_remove_repository_pre.json @@ -19,6 +19,7 @@ "full_name": "hacs/integration", "id": "172733314", "installed": true, + "last_fetched": 1551193359.0, "last_updated": "2023-11-18T21:22:03Z", "manifest_name": "HACS", "open_issues": 2, @@ -52,6 +53,7 @@ "full_name": "hacs-test-org/template-basic", "id": "1296268", "installed": true, + "last_fetched": 0.0, "repository_manifest": {} } }, diff --git a/tests/snapshots/hacs-test-org/template-basic/test_update_repository_entity.json b/tests/snapshots/hacs-test-org/template-basic/test_update_repository_entity.json index ca3da786f00..71079f333cd 100644 --- a/tests/snapshots/hacs-test-org/template-basic/test_update_repository_entity.json +++ b/tests/snapshots/hacs-test-org/template-basic/test_update_repository_entity.json @@ -18,6 +18,7 @@ "full_name": "hacs/integration", "id": "172733314", "installed": true, + "last_fetched": 1551193359.0, "last_updated": "2023-11-18T21:22:03Z", "manifest_name": "HACS", "releases": true, @@ -55,6 +56,7 @@ "installed": true, "installed_commit": "7fd1a60", "last_commit": "7fd1a60", + "last_fetched": 1551193359.0, "last_updated": "2011-01-26T19:06:43Z", "last_version": "1.0.0", "published_tags": [ diff --git a/tests/snapshots/hacs-test-org/template-basic/test_update_repository_websocket.json b/tests/snapshots/hacs-test-org/template-basic/test_update_repository_websocket.json index 7eb74f38c8e..1517ae05f9c 100644 --- a/tests/snapshots/hacs-test-org/template-basic/test_update_repository_websocket.json +++ b/tests/snapshots/hacs-test-org/template-basic/test_update_repository_websocket.json @@ -19,6 +19,7 @@ "full_name": "hacs/integration", "id": "172733314", "installed": true, + "last_fetched": 1551193359.0, "last_updated": "2023-11-18T21:22:03Z", "manifest_name": "HACS", "open_issues": 2, @@ -56,6 +57,7 @@ "installed": true, "installed_commit": "7fd1a60", "last_commit": "7fd1a60", + "last_fetched": 1551193359.0, "last_updated": "2011-01-26T19:06:43Z", "last_version": "1.0.0", "published_tags": [ diff --git a/tests/snapshots/hacs-test-org/theme-basic/test_download_repository.json b/tests/snapshots/hacs-test-org/theme-basic/test_download_repository.json index 1cb0a50c3d6..9944de433fb 100644 --- a/tests/snapshots/hacs-test-org/theme-basic/test_download_repository.json +++ b/tests/snapshots/hacs-test-org/theme-basic/test_download_repository.json @@ -19,6 +19,7 @@ "full_name": "hacs/integration", "id": "172733314", "installed": true, + "last_fetched": 1551193359.0, "last_updated": "2023-11-18T21:22:03Z", "manifest_name": "HACS", "open_issues": 2, @@ -62,6 +63,7 @@ "installed": true, "installed_commit": "7fd1a60", "last_commit": "7fd1a60", + "last_fetched": 1551193359.0, "last_updated": "2011-01-26T19:06:43Z", "last_version": "1.0.0", "published_tags": [ diff --git a/tests/snapshots/hacs-test-org/theme-basic/test_remove_repository_post.json b/tests/snapshots/hacs-test-org/theme-basic/test_remove_repository_post.json index 74ee6460d35..38c917a6ef1 100644 --- a/tests/snapshots/hacs-test-org/theme-basic/test_remove_repository_post.json +++ b/tests/snapshots/hacs-test-org/theme-basic/test_remove_repository_post.json @@ -19,6 +19,7 @@ "full_name": "hacs/integration", "id": "172733314", "installed": true, + "last_fetched": 1551193359.0, "last_updated": "2023-11-18T21:22:03Z", "manifest_name": "HACS", "open_issues": 2, diff --git a/tests/snapshots/hacs-test-org/theme-basic/test_remove_repository_pre.json b/tests/snapshots/hacs-test-org/theme-basic/test_remove_repository_pre.json index 321769948c7..a5fe57e2523 100644 --- a/tests/snapshots/hacs-test-org/theme-basic/test_remove_repository_pre.json +++ b/tests/snapshots/hacs-test-org/theme-basic/test_remove_repository_pre.json @@ -19,6 +19,7 @@ "full_name": "hacs/integration", "id": "172733314", "installed": true, + "last_fetched": 1551193359.0, "last_updated": "2023-11-18T21:22:03Z", "manifest_name": "HACS", "open_issues": 2, @@ -58,6 +59,7 @@ "full_name": "hacs-test-org/theme-basic", "id": "1296266", "installed": true, + "last_fetched": 0.0, "repository_manifest": {} } } diff --git a/tests/snapshots/hacs-test-org/theme-basic/test_update_repository_entity.json b/tests/snapshots/hacs-test-org/theme-basic/test_update_repository_entity.json index d0eb7ddac39..8bf296279d5 100644 --- a/tests/snapshots/hacs-test-org/theme-basic/test_update_repository_entity.json +++ b/tests/snapshots/hacs-test-org/theme-basic/test_update_repository_entity.json @@ -18,6 +18,7 @@ "full_name": "hacs/integration", "id": "172733314", "installed": true, + "last_fetched": 1551193359.0, "last_updated": "2023-11-18T21:22:03Z", "manifest_name": "HACS", "releases": true, @@ -60,6 +61,7 @@ "installed": true, "installed_commit": "7fd1a60", "last_commit": "7fd1a60", + "last_fetched": 1551193359.0, "last_updated": "2011-01-26T19:06:43Z", "last_version": "1.0.0", "published_tags": [ diff --git a/tests/snapshots/hacs-test-org/theme-basic/test_update_repository_websocket.json b/tests/snapshots/hacs-test-org/theme-basic/test_update_repository_websocket.json index 29b9cd722b7..b1ac2584b94 100644 --- a/tests/snapshots/hacs-test-org/theme-basic/test_update_repository_websocket.json +++ b/tests/snapshots/hacs-test-org/theme-basic/test_update_repository_websocket.json @@ -19,6 +19,7 @@ "full_name": "hacs/integration", "id": "172733314", "installed": true, + "last_fetched": 1551193359.0, "last_updated": "2023-11-18T21:22:03Z", "manifest_name": "HACS", "open_issues": 2, @@ -62,6 +63,7 @@ "installed": true, "installed_commit": "7fd1a60", "last_commit": "7fd1a60", + "last_fetched": 1551193359.0, "last_updated": "2011-01-26T19:06:43Z", "last_version": "1.0.0", "published_tags": [ diff --git a/tests/snapshots/test_integration_setup.json b/tests/snapshots/test_integration_setup.json index 18220ad3c13..71132d728ce 100644 --- a/tests/snapshots/test_integration_setup.json +++ b/tests/snapshots/test_integration_setup.json @@ -13,6 +13,7 @@ "full_name": "hacs/integration", "id": "172733314", "installed": true, + "last_fetched": 1551193359.0, "last_updated": "2023-11-18T21:22:03Z", "manifest_name": "HACS", "open_issues": 2,