Skip to content

Commit

Permalink
more printouts
Browse files Browse the repository at this point in the history
  • Loading branch information
trevorcampbell committed Aug 23, 2023
1 parent 10de656 commit cb4b30b
Showing 1 changed file with 15 additions and 1 deletion.
16 changes: 15 additions & 1 deletion nbgrader/tests/ui-tests/assignment_list.spec.ts
Original file line number Diff line number Diff line change
Expand Up @@ -101,23 +101,37 @@ test.afterEach(async ({ request, tmpPath }) => {

console.log(getFiles(testDir))


if (!isWindows) {
fs.rmSync(exchange_dir, { recursive: true, force: true });
fs.rmSync(cache_dir, { recursive: true, force: true });
}

console.log(`AFTER REMOVING EXCH/CACHE`)
console.log(getFiles(testDir))

if (request === undefined) throw new Error("Request is undefined.");
const contents = galata.newContentsHelper(request);
await contents.deleteDirectory(tmpPath);

console.log(`AFTER DELETE TMPPATH`)
console.log(getFiles(testDir))

if (await contents.fileExists("nbgrader_config.py"))
contents.deleteFile("nbgrader_config.py");

console.log(`AFTER DELETE NBGRADER CONFIG`)
console.log(getFiles(testDir))


contents.uploadFile(
path.resolve(__dirname, "./files/nbgrader_config.py"),
"nbgrader_config.py"
);

console.log(`AFTER RESTORE NBGRADER CONFIG`)
console.log(getFiles(testDir))


console.log(`AFTER EACH END`);
console.log(`AFTER EACH END`);
console.log(`AFTER EACH END`);
Expand Down

0 comments on commit cb4b30b

Please sign in to comment.