re-enable notebook outputprocessor tests (#20000)

This commit is contained in:
Chris LaFreniere
2022-07-12 10:11:35 -07:00
committed by GitHub
parent 7922c38e28
commit 78b5e52bf7

View File

@@ -49,7 +49,7 @@ suite('OutputProcessor functions', function (): void {
evalue: evalue,
traceback: traceback
};
test.skip(`test for outputType:'${output.output_type}', ename:'${ename}', evalue:${evalue}, and traceback:${JSON.stringify(traceback)}`, () => {
test(`test for outputType:'${output.output_type}', ename:'${ename}', evalue:${evalue}, and traceback:${JSON.stringify(traceback)}`, () => {
verifyGetDataForErrorOutput(output);
});
}
@@ -149,7 +149,7 @@ function verifyGetDataForStreamOutput(output: nbformat.IStream): void {
function verifyGetDataForErrorOutput(output: nbformat.IError): void {
const result = op.getData(output);
const tracedata = (output.traceback === undefined || output.traceback.length > 0) ? undefined : output.traceback.join('\n');
const tracedata = (output.traceback === undefined || output.traceback.length === 0) ? undefined : output.traceback.join('\n');
// getData returns an object with single property: 'application/vnd.jupyter.stderr'
// this property is assigned to a '\n' delimited traceback data when it is present.
// when traceback is absent this property gets ename and evalue information with ': ' as delimiter unless