From dd151141c707fc33e2d5d68ee0f6f52b18808576 Mon Sep 17 00:00:00 2001 From: Erik Date: Tue, 9 Apr 2024 17:12:32 +0200 Subject: [PATCH] Update generate_category_data tests --- tests/common.py | 1 + .../scripts/data/generate_category_data/appdaemon/data.json | 1 + .../scripts/data/generate_category_data/integration/data.json | 2 ++ .../scripts/data/generate_category_data/plugin/data.json | 1 + .../scripts/data/generate_category_data/python_script/data.json | 1 + .../single/appdaemon/hacs-test-org/appdaemon-basic/data.json | 1 + .../integration/hacs-test-org/integration-basic/data.json | 1 + .../single/plugin/hacs-test-org/plugin-basic/data.json | 1 + .../python_script/hacs-test-org/python_script-basic/data.json | 1 + .../single/template/hacs-test-org/template-basic/data.json | 1 + .../single/theme/hacs-test-org/theme-basic/data.json | 1 + .../scripts/data/generate_category_data/template/data.json | 1 + .../scripts/data/generate_category_data/theme/data.json | 1 + 13 files changed, 14 insertions(+) diff --git a/tests/common.py b/tests/common.py index b51c6288590..11e4d4bfe31 100644 --- a/tests/common.py +++ b/tests/common.py @@ -775,6 +775,7 @@ async def json(**kwargs): "X-RateLimit-Remaining": "999", "X-RateLimit-Reset": "999", "Content-Type": "application/json", + "Etag": "321", }, ) diff --git a/tests/snapshots/scripts/data/generate_category_data/appdaemon/data.json b/tests/snapshots/scripts/data/generate_category_data/appdaemon/data.json index e64b93d4582..6b309f27883 100644 --- a/tests/snapshots/scripts/data/generate_category_data/appdaemon/data.json +++ b/tests/snapshots/scripts/data/generate_category_data/appdaemon/data.json @@ -1,6 +1,7 @@ { "1296265": { "description": "This your first repo!", + "etag_repository": "321", "full_name": "hacs-test-org/appdaemon-basic", "last_updated": "2011-01-26T19:06:43Z", "last_version": "1.0.0", diff --git a/tests/snapshots/scripts/data/generate_category_data/integration/data.json b/tests/snapshots/scripts/data/generate_category_data/integration/data.json index 205595c3ea9..183a776ae53 100644 --- a/tests/snapshots/scripts/data/generate_category_data/integration/data.json +++ b/tests/snapshots/scripts/data/generate_category_data/integration/data.json @@ -3,6 +3,7 @@ "description": "This your first repo!", "domain": "example", "downloads": 42, + "etag_repository": "321", "full_name": "hacs-test-org/integration-basic", "last_updated": "2011-01-26T19:06:43Z", "last_version": "1.0.0", @@ -22,6 +23,7 @@ "description": "This your first repo!", "domain": "example", "downloads": 42, + "etag_repository": "321", "full_name": "hacs-test-org/integration-basic-custom", "last_updated": "2011-01-26T19:06:43Z", "last_version": "1.0.0", diff --git a/tests/snapshots/scripts/data/generate_category_data/plugin/data.json b/tests/snapshots/scripts/data/generate_category_data/plugin/data.json index 92b7c604f19..526e5efa585 100644 --- a/tests/snapshots/scripts/data/generate_category_data/plugin/data.json +++ b/tests/snapshots/scripts/data/generate_category_data/plugin/data.json @@ -1,6 +1,7 @@ { "1296267": { "description": "This your first repo!", + "etag_repository": "321", "full_name": "hacs-test-org/plugin-basic", "last_updated": "2011-01-26T19:06:43Z", "last_version": "1.0.0", diff --git a/tests/snapshots/scripts/data/generate_category_data/python_script/data.json b/tests/snapshots/scripts/data/generate_category_data/python_script/data.json index 7da93d3d69d..5337f04e64e 100644 --- a/tests/snapshots/scripts/data/generate_category_data/python_script/data.json +++ b/tests/snapshots/scripts/data/generate_category_data/python_script/data.json @@ -1,6 +1,7 @@ { "1296262": { "description": "This your first repo!", + "etag_repository": "321", "full_name": "hacs-test-org/python_script-basic", "last_updated": "2011-01-26T19:06:43Z", "last_version": "1.0.0", diff --git a/tests/snapshots/scripts/data/generate_category_data/single/appdaemon/hacs-test-org/appdaemon-basic/data.json b/tests/snapshots/scripts/data/generate_category_data/single/appdaemon/hacs-test-org/appdaemon-basic/data.json index e64b93d4582..6b309f27883 100644 --- a/tests/snapshots/scripts/data/generate_category_data/single/appdaemon/hacs-test-org/appdaemon-basic/data.json +++ b/tests/snapshots/scripts/data/generate_category_data/single/appdaemon/hacs-test-org/appdaemon-basic/data.json @@ -1,6 +1,7 @@ { "1296265": { "description": "This your first repo!", + "etag_repository": "321", "full_name": "hacs-test-org/appdaemon-basic", "last_updated": "2011-01-26T19:06:43Z", "last_version": "1.0.0", diff --git a/tests/snapshots/scripts/data/generate_category_data/single/integration/hacs-test-org/integration-basic/data.json b/tests/snapshots/scripts/data/generate_category_data/single/integration/hacs-test-org/integration-basic/data.json index 9f6191b19ae..e1a74ab98e5 100644 --- a/tests/snapshots/scripts/data/generate_category_data/single/integration/hacs-test-org/integration-basic/data.json +++ b/tests/snapshots/scripts/data/generate_category_data/single/integration/hacs-test-org/integration-basic/data.json @@ -3,6 +3,7 @@ "description": "This your first repo!", "domain": "example", "downloads": 42, + "etag_repository": "321", "full_name": "hacs-test-org/integration-basic", "last_updated": "2011-01-26T19:06:43Z", "last_version": "1.0.0", diff --git a/tests/snapshots/scripts/data/generate_category_data/single/plugin/hacs-test-org/plugin-basic/data.json b/tests/snapshots/scripts/data/generate_category_data/single/plugin/hacs-test-org/plugin-basic/data.json index 92b7c604f19..526e5efa585 100644 --- a/tests/snapshots/scripts/data/generate_category_data/single/plugin/hacs-test-org/plugin-basic/data.json +++ b/tests/snapshots/scripts/data/generate_category_data/single/plugin/hacs-test-org/plugin-basic/data.json @@ -1,6 +1,7 @@ { "1296267": { "description": "This your first repo!", + "etag_repository": "321", "full_name": "hacs-test-org/plugin-basic", "last_updated": "2011-01-26T19:06:43Z", "last_version": "1.0.0", diff --git a/tests/snapshots/scripts/data/generate_category_data/single/python_script/hacs-test-org/python_script-basic/data.json b/tests/snapshots/scripts/data/generate_category_data/single/python_script/hacs-test-org/python_script-basic/data.json index 7da93d3d69d..5337f04e64e 100644 --- a/tests/snapshots/scripts/data/generate_category_data/single/python_script/hacs-test-org/python_script-basic/data.json +++ b/tests/snapshots/scripts/data/generate_category_data/single/python_script/hacs-test-org/python_script-basic/data.json @@ -1,6 +1,7 @@ { "1296262": { "description": "This your first repo!", + "etag_repository": "321", "full_name": "hacs-test-org/python_script-basic", "last_updated": "2011-01-26T19:06:43Z", "last_version": "1.0.0", diff --git a/tests/snapshots/scripts/data/generate_category_data/single/template/hacs-test-org/template-basic/data.json b/tests/snapshots/scripts/data/generate_category_data/single/template/hacs-test-org/template-basic/data.json index a562c79c39f..a90b5e70228 100644 --- a/tests/snapshots/scripts/data/generate_category_data/single/template/hacs-test-org/template-basic/data.json +++ b/tests/snapshots/scripts/data/generate_category_data/single/template/hacs-test-org/template-basic/data.json @@ -2,6 +2,7 @@ "1296268": { "description": "This your first repo!", "downloads": 42, + "etag_repository": "321", "full_name": "hacs-test-org/template-basic", "last_updated": "2011-01-26T19:06:43Z", "last_version": "1.0.0", diff --git a/tests/snapshots/scripts/data/generate_category_data/single/theme/hacs-test-org/theme-basic/data.json b/tests/snapshots/scripts/data/generate_category_data/single/theme/hacs-test-org/theme-basic/data.json index 3789552c800..9716b615b27 100644 --- a/tests/snapshots/scripts/data/generate_category_data/single/theme/hacs-test-org/theme-basic/data.json +++ b/tests/snapshots/scripts/data/generate_category_data/single/theme/hacs-test-org/theme-basic/data.json @@ -1,6 +1,7 @@ { "1296266": { "description": "This your first repo!", + "etag_repository": "321", "full_name": "hacs-test-org/theme-basic", "last_updated": "2011-01-26T19:06:43Z", "last_version": "1.0.0", diff --git a/tests/snapshots/scripts/data/generate_category_data/template/data.json b/tests/snapshots/scripts/data/generate_category_data/template/data.json index a562c79c39f..a90b5e70228 100644 --- a/tests/snapshots/scripts/data/generate_category_data/template/data.json +++ b/tests/snapshots/scripts/data/generate_category_data/template/data.json @@ -2,6 +2,7 @@ "1296268": { "description": "This your first repo!", "downloads": 42, + "etag_repository": "321", "full_name": "hacs-test-org/template-basic", "last_updated": "2011-01-26T19:06:43Z", "last_version": "1.0.0", diff --git a/tests/snapshots/scripts/data/generate_category_data/theme/data.json b/tests/snapshots/scripts/data/generate_category_data/theme/data.json index 3789552c800..9716b615b27 100644 --- a/tests/snapshots/scripts/data/generate_category_data/theme/data.json +++ b/tests/snapshots/scripts/data/generate_category_data/theme/data.json @@ -1,6 +1,7 @@ { "1296266": { "description": "This your first repo!", + "etag_repository": "321", "full_name": "hacs-test-org/theme-basic", "last_updated": "2011-01-26T19:06:43Z", "last_version": "1.0.0",