()
| 171 | |
| 172 | |
| 173 | def test_run_custom_solution_dir(): |
| 174 | code = 'from pathlib import Path; c = Path("c").read_text(encoding="utf-8")' |
| 175 | |
| 176 | file_dir = "a/b" |
| 177 | file_path = "a/b/c" |
| 178 | custom_solution_location = "custom/solution/folder" |
| 179 | |
| 180 | with in_temp_dir(): |
| 181 | write_file(file_dir, "c", code) |
| 182 | |
| 183 | os.makedirs(custom_solution_location) |
| 184 | with ChDir(custom_solution_location): |
| 185 | write_file(file_dir, "c", code) |
| 186 | |
| 187 | chain = setup_state("", "", pec="") |
| 188 | |
| 189 | child = chain.check_file(file_path, solution_code=code) |
| 190 | |
| 191 | child.run(file_dir, solution_dir=custom_solution_location).check_object("c") |
| 192 | child.run(solution_dir=custom_solution_location).check_object("c") |
nothing calls this directly
no test coverage detected