mirror of
https://github.com/ckaczor/azuredatastudio.git
synced 2026-02-16 10:58:30 -05:00
re-enable notebook outputprocessor tests (#20000)
This commit is contained in:
@@ -49,7 +49,7 @@ suite('OutputProcessor functions', function (): void {
|
|||||||
evalue: evalue,
|
evalue: evalue,
|
||||||
traceback: traceback
|
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);
|
verifyGetDataForErrorOutput(output);
|
||||||
});
|
});
|
||||||
}
|
}
|
||||||
@@ -149,7 +149,7 @@ function verifyGetDataForStreamOutput(output: nbformat.IStream): void {
|
|||||||
|
|
||||||
function verifyGetDataForErrorOutput(output: nbformat.IError): void {
|
function verifyGetDataForErrorOutput(output: nbformat.IError): void {
|
||||||
const result = op.getData(output);
|
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'
|
// 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.
|
// 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
|
// when traceback is absent this property gets ename and evalue information with ': ' as delimiter unless
|
||||||
|
|||||||
Reference in New Issue
Block a user