Skip to content

Commit f396950

Browse files
authored
Run the duplicate-action message assertion (#3030)
The assertion sat inside the `with pytest.raises(StartupError)` block, after the call that raises, so it never executed. Moving it below the block lets it check the message it was written to check.
1 parent 05ece29 commit f396950

1 file changed

Lines changed: 2 additions & 1 deletion

File tree

‎tests/test_plugins.py‎

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1543,7 +1543,8 @@ async def test_hook_register_actions_no_duplicates(duplicate):
15431543
# This should error:
15441544
with pytest.raises(StartupError) as ex:
15451545
await ds.invoke_startup()
1546-
assert f"Duplicate action {duplicate}" in str(ex.value)
1546+
1547+
assert f"Duplicate action {duplicate}" in str(ex.value)
15471548

15481549

15491550
@pytest.mark.asyncio

0 commit comments

Comments
 (0)