Skip to content

Commit d57df15

Browse files
test: add filterwarnings and fix remaining unawaited coroutine
- Add filterwarnings = ["error::RuntimeWarning"] to pyproject.toml to promote unawaited coroutine warnings to hard test failures - Fix one additional unawaited coroutine in test_sets_media_theme where mocked _run_command discarded write_parameters coroutine Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
1 parent 801ace9 commit d57df15

2 files changed

Lines changed: 2 additions & 0 deletions

File tree

pyproject.toml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -51,6 +51,7 @@ strict = true
5151
[tool.pytest.ini_options]
5252
asyncio_mode = "auto"
5353
testpaths = ["tests"]
54+
filterwarnings = ["error::RuntimeWarning"]
5455

5556
[tool.coverage.run]
5657
source = ["src/flameconnect"]

tests/test_tui_actions.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -825,6 +825,7 @@ async def test_sets_media_theme(self, mock_client, mock_dashboard):
825825
call_args = app._run_command.call_args
826826
assert call_args[0][1] == "Setting media theme to Blue..."
827827
assert call_args[0][2] == "Media theme change failed"
828+
call_args[0][0].close()
828829

829830
async def test_no_op_when_write_in_progress(self, mock_client, mock_dashboard):
830831
app = _make_app(mock_client, mock_dashboard)

0 commit comments

Comments
 (0)