SIENTIAPDE-1973
Some checks failed
Quality gate / quality-gate (push) Has been cancelled

SIENTIAPDE-1973: Refactor unit tests for improved readability, primarily by splitting chained assertions into individual statements and minor fixture import adjustments.
This commit is contained in:
2026-10-29 13:33:25 -03:00
parent ecb055eefb
commit 97bf2fd748
5 changed files with 16 additions and 9 deletions

View File

@@ -58,7 +58,8 @@ async def test_update_write_status_targets_model_row_with_precedence():
assert sql.startswith('UPDATE sientia_data.pred_m1 SET write_status=')
assert 'CASE sientia_data.pred_m1.write_status WHEN' in sql
# values must be bound params, never interpolated into the SQL text itself
assert '2026-07-13T00:00:00Z' not in sql and "'ok'" not in sql
assert '2026-07-13T00:00:00Z' not in sql
assert "'ok'" not in sql
assert compiled.params['write_status'] == 'ok'
assert '2026-07-13T00:00:00Z' in compiled.params.values()
assert _outcome_metric(sink) == 'updated'