Spaces:
Sleeping
Sleeping
Update app.py
Browse files
app.py
CHANGED
|
@@ -58,6 +58,11 @@ def generate_test(user_code):
|
|
| 58 |
|
| 59 |
### Instruction:
|
| 60 |
You are an expert Python QA engineer. Write a pytest unit test for the following function.
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 61 |
|
| 62 |
### Input:
|
| 63 |
{user_code}
|
|
|
|
| 58 |
|
| 59 |
### Instruction:
|
| 60 |
You are an expert Python QA engineer. Write a pytest unit test for the following function.
|
| 61 |
+
Rules:
|
| 62 |
+
1. Use the 'pytest' framework.
|
| 63 |
+
2. Do NOT use 'unittest.TestCase' classes.
|
| 64 |
+
3. Use simple functions starting with 'test_'.
|
| 65 |
+
4. Include assert statements.
|
| 66 |
|
| 67 |
### Input:
|
| 68 |
{user_code}
|