mirror of
https://github.com/home-assistant/core.git
synced 2025-07-19 03:07:37 +00:00
Fix benign typo in test_config_entries.py (#81789)
* Fix typo in test_config_entries.py * touch ups * Update tests/test_config_entries.py Co-authored-by: Martin Hjelmare <marhje52@gmail.com> Co-authored-by: Erik Montnemery <erik@montnemery.com> Co-authored-by: Martin Hjelmare <marhje52@gmail.com>
This commit is contained in:
parent
84725f15a6
commit
f9ff23a2c8
@ -3316,17 +3316,17 @@ async def test_reauth(hass):
|
|||||||
|
|
||||||
assert entry.entry_id != entry2.entry_id
|
assert entry.entry_id != entry2.entry_id
|
||||||
|
|
||||||
# Check we can't start duplicate flows
|
# Check that we can't start duplicate reauth flows
|
||||||
entry.async_start_reauth(hass, {"extra_context": "some_extra_context"})
|
entry.async_start_reauth(hass, {"extra_context": "some_extra_context"})
|
||||||
await hass.async_block_till_done()
|
await hass.async_block_till_done()
|
||||||
assert len(hass.config_entries.flow.async_progress()) == 1
|
assert len(hass.config_entries.flow.async_progress()) == 1
|
||||||
|
|
||||||
# Check we can't start duplicate when the context context is different
|
# Check that we can't start duplicate reauth flows when the context is different
|
||||||
entry.async_start_reauth(hass, {"diff": "diff"})
|
entry.async_start_reauth(hass, {"diff": "diff"})
|
||||||
await hass.async_block_till_done()
|
await hass.async_block_till_done()
|
||||||
assert len(hass.config_entries.flow.async_progress()) == 1
|
assert len(hass.config_entries.flow.async_progress()) == 1
|
||||||
|
|
||||||
# Check we can start a reauth for a different entry
|
# Check that we can start a reauth flow for a different entry
|
||||||
entry2.async_start_reauth(hass, {"extra_context": "some_extra_context"})
|
entry2.async_start_reauth(hass, {"extra_context": "some_extra_context"})
|
||||||
await hass.async_block_till_done()
|
await hass.async_block_till_done()
|
||||||
assert len(hass.config_entries.flow.async_progress()) == 2
|
assert len(hass.config_entries.flow.async_progress()) == 2
|
||||||
|
Loading…
x
Reference in New Issue
Block a user