Skip to content

Commit 68bdfc2

Browse files
committed
Remove single test function enforcement in instructions
Deleted guidance requiring only one comprehensive test function in the ShinyTestGenerator instructions. This allows for more flexible test generation strategies.
1 parent 50739f9 commit 68bdfc2

File tree

1 file changed

+0
-2
lines changed

1 file changed

+0
-2
lines changed

shiny/pytest/_generate/_main.py

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -344,8 +344,6 @@ def _create_test_prompt(self, app_text: str, app_file_name: str) -> str:
344344
"- If test is in 'tests/subdir/test_app.py' and app is in 'apps/subdir/app.py', use: '../../apps/subdir/app.py'\n"
345345
"- Always compute the correct relative path from the test file to the app file\n"
346346
"- NEVER use absolute paths or paths that aren't relative from the test location\n\n"
347-
"CRITICAL: Generate only ONE comprehensive test function (e.g., 'test_app_functionality') that tests ALL components sequentially within the same test. "
348-
"Do NOT create multiple separate test functions. Exercise all inputs and outputs in a single test flow.\n\n"
349347
"IMPORTANT: Only output the Python test code in a single code block. Do not include any explanation, justification, or extra text."
350348
)
351349

0 commit comments

Comments
 (0)