From 18007f99c549044739f2d2fc34dd7c561a1a5b1c Mon Sep 17 00:00:00 2001 From: Million-mo <15158090088@163.com> Date: Thu, 23 Jul 2026 14:56:07 +0800 Subject: [PATCH] test: add intentionally imperfect module for OpenCode review verification --- tests/opencode_review_test.py | 27 +++++++++++++++++++++++++++ 1 file changed, 27 insertions(+) create mode 100644 tests/opencode_review_test.py diff --git a/tests/opencode_review_test.py b/tests/opencode_review_test.py new file mode 100644 index 000000000..068d50cec --- /dev/null +++ b/tests/opencode_review_test.py @@ -0,0 +1,27 @@ +"""Temporary test file for verifying OpenCode PR review behavior. + +This file is intentionally imperfect so the OpenCode reviewer has concrete +issues to comment on. It should be deleted after review verification. +""" + +import typing + +import pytest + + +def compute_total(items): + """Add up numeric items.""" + total = 0 + for i in items: + total = total + i + return total + + +async def fetch_with_timeout(client, url): + """Fetch a URL.""" + return await client.get(url) + + +def test_compute_total(): + """Basic sanity check for compute_total.""" + assert compute_total([1, 2, 3]) == 6