fix(test): simplify always-false conditional in patch decorator

Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
This commit is contained in:
copilot-swe-agent[bot]
2026-02-23 02:49:45 +00:00
parent c2e60d3d71
commit 22ab9255e2
+1 -1
View File
@@ -112,7 +112,7 @@ class TestSetupWizardUndoSkip:
location = response.headers.get("location", "")
assert "/setup" in location or "/settings" in location
@patch("app.views.wizard.delete_setting_from_db" if False else "app.utils.settings_service.delete_setting_from_db")
@patch("app.utils.settings_service.delete_setting_from_db")
def test_undo_skip_calls_delete(self, mock_delete, client):
"""Test that undo-skip calls delete_setting_from_db."""
mock_delete.return_value = True