mirror of
https://github.com/ckaczor/azuredatastudio.git
synced 2026-01-18 17:22:45 -05:00
re-enable notebook outputprocessor tests (#20000)
This commit is contained in:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user