|
4 | 4 |
|
5 | 5 |
|
6 | 6 | @pytest.mark.parametrize( |
7 | | - "stu, passes", |
| 7 | + "student_code, passes", |
8 | 8 | [ |
9 | 9 | ('print("Hi, there!")', True), |
10 | 10 | ('print("hi there!")', True), |
11 | 11 | ('print("Hello there")', False), |
12 | 12 | ], |
13 | 13 | ) |
14 | | -def test_has_output_basic(stu, passes): |
15 | | - s = setup_state(stu, "") |
| 14 | +def test_has_output_basic(student_code, passes): |
| 15 | + s = setup_state(student_code, "") |
16 | 16 | with helper.verify_sct(passes): |
17 | 17 | s.has_output(r"[H|h]i,*\s+there!") |
18 | 18 |
|
19 | 19 |
|
20 | 20 | @pytest.mark.parametrize( |
21 | | - "stu, passes", |
| 21 | + "student_code, passes", |
22 | 22 | [ |
23 | 23 | ('print("Hi, there!")', True), |
24 | 24 | ('print("hi there!")', False), |
25 | 25 | ('print("Hello there")', False), |
26 | 26 | ], |
27 | 27 | ) |
28 | | -def test_has_output_pattern(stu, passes): |
29 | | - s = setup_state(stu, "") |
| 28 | +def test_has_output_pattern(student_code, passes): |
| 29 | + s = setup_state(student_code, "") |
30 | 30 | with helper.verify_sct(passes): |
31 | 31 | s.has_output("Hi, there!", pattern=False) |
32 | 32 |
|
33 | 33 |
|
34 | 34 | @pytest.mark.parametrize( |
35 | | - "stu, passes", |
| 35 | + "student_code, passes", |
36 | 36 | [ |
37 | 37 | ('print("Hi, there!")', True), |
38 | 38 | ('print("hi there!")', True), |
39 | 39 | ('print("Hello there")', False), |
40 | 40 | ], |
41 | 41 | ) |
42 | | -def test_test_output_contains(stu, passes): |
43 | | - s = setup_state(stu, "") |
| 42 | +def test_test_output_contains(student_code, passes): |
| 43 | + s = setup_state(student_code, "") |
44 | 44 | with helper.verify_sct(passes): |
45 | 45 | s.test_output_contains(r"[H|h]i,*\s+there!") |
0 commit comments