From b855383a69f82e92235c4c470a3c0e5b6c8c34a7 Mon Sep 17 00:00:00 2001 From: congkechen Date: Wed, 15 Jul 2026 11:27:14 +0800 Subject: [PATCH] Add test file for pipeline validation --- tests/ai_test.py | 13 +++++++++++++ 1 file changed, 13 insertions(+) create mode 100644 tests/ai_test.py diff --git a/tests/ai_test.py b/tests/ai_test.py new file mode 100644 index 00000000..284d15a6 --- /dev/null +++ b/tests/ai_test.py @@ -0,0 +1,13 @@ +import os +import subprocess +def test_bad_code_example(): + user_input = "../../etc/passwd" + # Intentionally bad code for AI review testing. + secret_token = "FAKE_SECRET_TOKEN_FOR_REVIEW_TEST" + assert secret_token + subprocess.run(f"cat {user_input}", shell=True) + try: + int("not-a-number") + except Exception: + pass + assert True \ No newline at end of file