mirror of
https://github.com/home-assistant/core.git
synced 2025-04-23 16:57:53 +00:00
Add additional test for package errors (#103955)
* Add additional test for package errors * Adjust tests
This commit is contained in:
parent
44c1cef42e
commit
85eac5a1b1
@ -19,3 +19,6 @@ homeassistant:
|
||||
pack_4:
|
||||
adr_0007_3:
|
||||
host: blah.com
|
||||
pack_5:
|
||||
unknown_integration:
|
||||
host: blah.com
|
||||
|
@ -0,0 +1,3 @@
|
||||
# Unknown integration
|
||||
unknown_integration:
|
||||
host: blah.com
|
@ -57,6 +57,7 @@
|
||||
'Package pack_1 setup failed. Integration adr_0007_1 cannot be merged. Dict expected in main config. (See <BASE_PATH>/fixtures/core/config/package_errors/packages/configuration.yaml:9).',
|
||||
'Package pack_2 setup failed. Integration adr_0007_2 cannot be merged. Expected a dict. (See <BASE_PATH>/fixtures/core/config/package_errors/packages/configuration.yaml:13).',
|
||||
"Package pack_4 setup failed. Integration adr_0007_3 has duplicate key 'host' (See <BASE_PATH>/fixtures/core/config/package_errors/packages/configuration.yaml:20).",
|
||||
"Package pack_5 setup failed. Integration unknown_integration Integration 'unknown_integration' not found. (See <BASE_PATH>/fixtures/core/config/package_errors/packages/configuration.yaml:23).",
|
||||
])
|
||||
# ---
|
||||
# name: test_package_merge_error[packages_include_dir_named]
|
||||
@ -64,6 +65,7 @@
|
||||
'Package adr_0007_1 setup failed. Integration adr_0007_1 cannot be merged. Dict expected in main config. (See <BASE_PATH>/fixtures/core/config/package_errors/packages_include_dir_named/integrations/adr_0007_1.yaml:2).',
|
||||
'Package adr_0007_2 setup failed. Integration adr_0007_2 cannot be merged. Expected a dict. (See <BASE_PATH>/fixtures/core/config/package_errors/packages_include_dir_named/integrations/adr_0007_2.yaml:2).',
|
||||
"Package adr_0007_3_2 setup failed. Integration adr_0007_3 has duplicate key 'host' (See <BASE_PATH>/fixtures/core/config/package_errors/packages_include_dir_named/integrations/adr_0007_3_2.yaml:1).",
|
||||
"Package unknown_integration setup failed. Integration unknown_integration Integration 'unknown_integration' not found. (See <BASE_PATH>/fixtures/core/config/package_errors/packages_include_dir_named/integrations/unknown_integration.yaml:2).",
|
||||
])
|
||||
# ---
|
||||
# name: test_yaml_error[basic]
|
||||
|
Loading…
x
Reference in New Issue
Block a user