mirror of
https://github.com/Electric-Special/ha-core.git
synced 2026-03-21 05:06:13 +01:00
Improve service validation exception test and translation key (#115843)
* Small improvement to service validation exception test and translation key * Apply suggestions from code review Co-authored-by: Martin Hjelmare <marhje52@gmail.com> * Refactor string assertion --------- Co-authored-by: Martin Hjelmare <marhje52@gmail.com>
This commit is contained in:
@@ -1803,9 +1803,9 @@ async def test_services_call_return_response_requires_blocking(
|
||||
blocking=False,
|
||||
return_response=True,
|
||||
)
|
||||
assert (
|
||||
str(exc.value)
|
||||
== "A non blocking service call with argument blocking=False can't be used together with argument return_response=True"
|
||||
assert str(exc.value) == (
|
||||
"A non blocking service call with argument blocking=False "
|
||||
"can't be used together with argument return_response=True"
|
||||
)
|
||||
|
||||
|
||||
|
||||
Reference in New Issue
Block a user