|
7 | 7 | from grader_service.convert.converters import Autograde |
8 | 8 | from grader_service.tests.convert.converters import ( |
9 | 9 | _create_input_output_dirs, |
10 | | - _generate_test_assignment, |
| 10 | + _generate_test_submission, |
11 | 11 | ) |
12 | 12 |
|
13 | 13 |
|
14 | 14 | def test_autograde(tmp_path): |
15 | 15 | input_dir, output_dir = _create_input_output_dirs(tmp_path, ["simple.ipynb"]) |
16 | 16 |
|
17 | | - _generate_test_assignment(input_dir, output_dir) |
| 17 | + _generate_test_submission(input_dir, output_dir) |
18 | 18 |
|
19 | 19 | assert (output_dir / "simple.ipynb").exists() |
20 | 20 | assert (output_dir / "gradebook.json").exists() |
@@ -43,7 +43,7 @@ def test_autograde(tmp_path): |
43 | 43 | def test_autograde_copy_with_all_files(tmp_path): |
44 | 44 | input_dir, output_dir = _create_input_output_dirs(tmp_path, ["simple.ipynb"]) |
45 | 45 |
|
46 | | - _generate_test_assignment( |
| 46 | + _generate_test_submission( |
47 | 47 | input_dir, output_dir, assignment_settings_kwargs={"allowed_files": ["*"]} |
48 | 48 | ) |
49 | 49 |
|
@@ -79,7 +79,7 @@ def test_autograde_copy_with_dirs(tmp_path): |
79 | 79 | test_file = dir_3 / "test.txt" |
80 | 80 | test_file.touch() |
81 | 81 |
|
82 | | - _generate_test_assignment( |
| 82 | + _generate_test_submission( |
83 | 83 | input_dir, output_dir, assignment_settings_kwargs={"allowed_files": ["*"]} |
84 | 84 | ) |
85 | 85 |
|
@@ -113,7 +113,7 @@ def test_autograde_with_student_notebooks_copied_over(tmp_path): |
113 | 113 | by the student should also be copied over.""" |
114 | 114 | input_dir, output_dir = _create_input_output_dirs(tmp_path, ["simple.ipynb"]) |
115 | 115 |
|
116 | | - _generate_test_assignment(input_dir, output_dir) |
| 116 | + _generate_test_submission(input_dir, output_dir) |
117 | 117 |
|
118 | 118 | student_nb = output_dir / "student.ipynb" |
119 | 119 | student_nb.touch() |
|
0 commit comments