mirror of
https://github.com/home-assistant/core.git
synced 2026-05-08 09:38:58 +01:00
Improve the mock_integration_frame test fixture (#139850)
* Improve the mock_integration_frame test fixture * Update test
This commit is contained in:
@@ -10,7 +10,7 @@
|
||||
# ---
|
||||
# name: test_report[custom integration default]
|
||||
list([
|
||||
"Detected that custom integration 'test_custom_integration' test_report_string at custom_components/test_custom_integration/light.py, line 23: self.light.is_on. Please create a bug report at https://github.com/home-assistant/core/issues?q=is%3Aopen+is%3Aissue+label%3A%22integration%3A+test_custom_integration%22",
|
||||
"Detected that custom integration 'test_custom_integration' test_report_string at custom_components/test_custom_integration/light.py, line 23: self.light.is_on. Please report it to the author of the 'test_custom_integration' custom integration",
|
||||
])
|
||||
# ---
|
||||
# name: test_report[disable error_if_core]
|
||||
@@ -25,7 +25,7 @@
|
||||
# ---
|
||||
# name: test_report[error_if_integration with custom integration]
|
||||
list([
|
||||
"Detected that custom integration 'test_integration_frame' test_report_string at custom_components/test_integration_frame/light.py, line 23: self.light.is_on. Please create a bug report at https://github.com/home-assistant/core/issues?q=is%3Aopen+is%3Aissue+label%3A%22integration%3A+test_integration_frame%22",
|
||||
"Detected that custom integration 'test_integration_frame' test_report_string at custom_components/test_integration_frame/light.py, line 23: self.light.is_on. Please report it to the author of the 'test_integration_frame' custom integration",
|
||||
])
|
||||
# ---
|
||||
# name: test_report[log_custom_component_only with core integration]
|
||||
@@ -34,7 +34,7 @@
|
||||
# ---
|
||||
# name: test_report[log_custom_component_only with custom integration]
|
||||
list([
|
||||
"Detected that custom integration 'test_integration_frame' test_report_string at custom_components/test_integration_frame/light.py, line 23: self.light.is_on. Please create a bug report at https://github.com/home-assistant/core/issues?q=is%3Aopen+is%3Aissue+label%3A%22integration%3A+test_integration_frame%22",
|
||||
"Detected that custom integration 'test_integration_frame' test_report_string at custom_components/test_integration_frame/light.py, line 23: self.light.is_on. Please report it to the author of the 'test_integration_frame' custom integration",
|
||||
])
|
||||
# ---
|
||||
# name: test_report_usage[core default]
|
||||
@@ -66,12 +66,12 @@
|
||||
# ---
|
||||
# name: test_report_usage[custom integration default]
|
||||
list([
|
||||
"Detected that custom integration 'test_custom_integration' test_report_string at custom_components/test_custom_integration/light.py, line 23: self.light.is_on. Please create a bug report at https://github.com/home-assistant/core/issues?q=is%3Aopen+is%3Aissue+label%3A%22integration%3A+test_custom_integration%22",
|
||||
"Detected that custom integration 'test_custom_integration' test_report_string at custom_components/test_custom_integration/light.py, line 23: self.light.is_on. Please report it to the author of the 'test_custom_integration' custom integration",
|
||||
])
|
||||
# ---
|
||||
# name: test_report_usage[custom integration error]
|
||||
list([
|
||||
"Detected that custom integration 'test_custom_integration' test_report_string at custom_components/test_custom_integration/light.py, line 23: self.light.is_on. Please create a bug report at https://github.com/home-assistant/core/issues?q=is%3Aopen+is%3Aissue+label%3A%22integration%3A+test_custom_integration%22",
|
||||
"Detected that custom integration 'test_custom_integration' test_report_string at custom_components/test_custom_integration/light.py, line 23: self.light.is_on. Please report it to the author of the 'test_custom_integration' custom integration",
|
||||
])
|
||||
# ---
|
||||
# name: test_report_usage[custom integration ignore]
|
||||
@@ -95,7 +95,7 @@
|
||||
# ---
|
||||
# name: test_report_usage_find_issue_tracker[unknown custom integration]
|
||||
list([
|
||||
"Detected that custom integration 'unknown_custom_integration' test_report_string at custom_components/unknown_custom_integration/light.py, line 23: self.light.is_on. Please create a bug report at https://github.com/home-assistant/core/issues?q=is%3Aopen+is%3Aissue+label%3A%22integration%3A+unknown_custom_integration%22",
|
||||
"Detected that custom integration 'unknown_custom_integration' test_report_string at custom_components/unknown_custom_integration/light.py, line 23: self.light.is_on. Please report it to the author of the 'unknown_custom_integration' custom integration",
|
||||
])
|
||||
# ---
|
||||
# name: test_report_usage_find_issue_tracker_other_thread[core integration]
|
||||
@@ -110,11 +110,11 @@
|
||||
# ---
|
||||
# name: test_report_usage_find_issue_tracker_other_thread[custom integration]
|
||||
list([
|
||||
"Detected that custom integration 'test_custom_integration' test_report_string at custom_components/test_custom_integration/light.py, line 23: self.light.is_on. Please create a bug report at https://github.com/home-assistant/core/issues?q=is%3Aopen+is%3Aissue+label%3A%22integration%3A+test_custom_integration%22",
|
||||
"Detected that custom integration 'test_custom_integration' test_report_string at custom_components/test_custom_integration/light.py, line 23: self.light.is_on. Please report it to the author of the 'test_custom_integration' custom integration",
|
||||
])
|
||||
# ---
|
||||
# name: test_report_usage_find_issue_tracker_other_thread[unknown custom integration]
|
||||
list([
|
||||
"Detected that custom integration 'unknown_custom_integration' test_report_string at custom_components/unknown_custom_integration/light.py, line 23: self.light.is_on. Please create a bug report at https://github.com/home-assistant/core/issues?q=is%3Aopen+is%3Aissue+label%3A%22integration%3A+unknown_custom_integration%22",
|
||||
"Detected that custom integration 'unknown_custom_integration' test_report_string at custom_components/unknown_custom_integration/light.py, line 23: self.light.is_on. Please report it to the author of the 'unknown_custom_integration' custom integration",
|
||||
])
|
||||
# ---
|
||||
|
||||
@@ -23,7 +23,7 @@ async def test_extract_frame_integration(
|
||||
custom_integration=False,
|
||||
frame=mock_integration_frame,
|
||||
integration="hue",
|
||||
module=None,
|
||||
module="homeassistant.components.hue.light",
|
||||
relative_filename="homeassistant/components/hue/light.py",
|
||||
)
|
||||
|
||||
|
||||
Reference in New Issue
Block a user