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:
J. Nick Koston 2022-11-09 09:36:46 -06:00 committed by GitHub
parent 84725f15a6
commit f9ff23a2c8
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -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