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