Skip to content

Commit df0a268

Browse files
committed
test: partially fix JATS test
1 parent 9dc505a commit df0a268

File tree

1 file changed

+93
-68
lines changed

1 file changed

+93
-68
lines changed

packages/myst-to-jats/tests/notebooks.yml

Lines changed: 93 additions & 68 deletions
Original file line numberDiff line numberDiff line change
@@ -18,16 +18,20 @@ cases:
1818
identifier: nb-cell-0-code
1919
enumerator: 1
2020
html_id: nb-cell-0-code
21-
- type: output
21+
- type: outputs
2222
id: T7FMDqDm8dM2bOT1tKeeM
23-
identifier: nb-cell-0-output
24-
html_id: nb-cell-0-output
25-
data:
26-
- name: stdout
27-
output_type: stream
28-
text: abc\n...
29-
hash: a
30-
path: files/a.txt
23+
identifier: nb-cell-0-outputs
24+
html_id: nb-cell-0-outputs
25+
children:
26+
- type: output
27+
identifier: nb-cell-0-outputs-0
28+
html_id: nb-cell-0-outputs-0
29+
jupyter_data:
30+
name: stdout
31+
output_type: stream
32+
text: abc\n...
33+
hash: a
34+
path: files/a.txt
3135
- type: block
3236
kind: notebook-code
3337
data:
@@ -43,23 +47,27 @@ cases:
4347
identifier: nb-cell-1-code
4448
enumerator: 2
4549
html_id: nb-cell-1-code
46-
- type: output
50+
- type: outputs
4751
id: uE4mPgSow0oyo0dvEH9Lc
48-
identifier: nb-cell-1-output
49-
html_id: nb-cell-1-output
50-
data:
51-
- output_type: execute_result
52-
execution_count: 3
53-
metadata: {}
54-
data:
55-
text/plain:
56-
content_type: text/plain
57-
hash: b
58-
path: files/b.txt
59-
text/html:
60-
content_type: text/html
61-
hash: b
62-
path: files/b.html
52+
identifier: nb-cell-1-outputs
53+
html_id: nb-cell-1-outputs
54+
children:
55+
- type: output
56+
identifier: nb-cell-1-outputs-0
57+
html_id: nb-cell-1-outputs-0
58+
jupyter_data:
59+
output_type: execute_result
60+
execution_count: 3
61+
metadata: {}
62+
data:
63+
text/plain:
64+
content_type: text/plain
65+
hash: b
66+
path: files/b.txt
67+
text/html:
68+
content_type: text/html
69+
hash: b
70+
path: files/b.html
6371
- type: block
6472
kind: notebook-code
6573
data:
@@ -75,17 +83,21 @@ cases:
7583
identifier: nb-cell-2-code
7684
enumerator: 3
7785
html_id: nb-cell-2-code
78-
- type: output
86+
- type: outputs
7987
id: 7Qrwdo-_oq5US1Du2KCLU
80-
identifier: nb-cell-2-output
81-
html_id: nb-cell-2-output
82-
data:
83-
- ename: NameError
84-
evalue: name 'a' is not defined
85-
output_type: error
86-
traceback: \u001b[0;31m------------------------------------------------------...
87-
hash: c
88-
path: files/c.txt
88+
identifier: nb-cell-2-outputs
89+
html_id: nb-cell-2-outputs
90+
children:
91+
- type: output
92+
identifier: nb-cell-2-outputs-0
93+
html_id: nb-cell-2-outputs-0
94+
jupyter_data:
95+
ename: NameError
96+
evalue: name 'a' is not defined
97+
output_type: error
98+
traceback: \u001b[0;31m------------------------------------------------------...
99+
hash: c
100+
path: files/c.txt
89101
jats: |-
90102
<?xml version="1.0" encoding="UTF-8"?>
91103
<!DOCTYPE article PUBLIC "-//NLM//DTD JATS (Z39.96) Journal Archiving and Interchange DTD with MathML3 v1.3 20210610//EN" "http://jats.nlm.nih.gov/publishing/1.3/JATS-archivearticle1-3-mathml3.dtd">
@@ -101,15 +113,15 @@ cases:
101113
<body>
102114
<sec id="sec-1" sec-type="notebook-code">
103115
<code id="nb-cell-0-code" language="python" executable="yes">print('abc')</code>
104-
<sec sec-type="notebook-output" id="nb-cell-0-output-0">
116+
<sec sec-type="notebook-output" id="nb-cell-0-outputs-0">
105117
<alternatives>
106118
<media specific-use="stream" mimetype="text" mime-subtype="plain" xlink:href="files/a.txt"/>
107119
</alternatives>
108120
</sec>
109121
</sec>
110122
<sec id="sec-2" sec-type="notebook-code">
111123
<code id="nb-cell-1-code" language="python" executable="yes">'abc'</code>
112-
<sec sec-type="notebook-output" id="nb-cell-1-output-0">
124+
<sec sec-type="notebook-output" id="nb-cell-1-outputs-0">
113125
<alternatives>
114126
<media specific-use="text" mimetype="text" mime-subtype="plain" xlink:href="files/b.txt"/>
115127
<media specific-use="web" mimetype="text" mime-subtype="html" xlink:href="files/b.html"/>
@@ -118,7 +130,7 @@ cases:
118130
</sec>
119131
<sec id="sec-3" sec-type="notebook-code">
120132
<code id="nb-cell-2-code" language="python" executable="yes">a</code>
121-
<sec sec-type="notebook-output" id="nb-cell-2-output-0">
133+
<sec sec-type="notebook-output" id="nb-cell-2-outputs-0">
122134
<alternatives>
123135
<media specific-use="error" mimetype="text" mime-subtype="plain" xlink:href="files/c.txt">
124136
<caption>
@@ -151,16 +163,20 @@ cases:
151163
identifier: nb-cell-0-code
152164
enumerator: 1
153165
html_id: nb-cell-0-code
154-
- type: output
166+
- type: outputs
155167
id: T7FMDqDm8dM2bOT1tKeeM
156-
identifier: nb-cell-0-output
157-
html_id: nb-cell-0-output
158-
data:
159-
- name: stdout
160-
output_type: stream
161-
text: abc\n...
162-
hash: a
163-
path: files/a.txt
168+
identifier: nb-cell-0-outputs
169+
html_id: nb-cell-0-outputs
170+
children:
171+
- type: output
172+
identifier: nb-cell-0-outputs-0
173+
html_id: nb-cell-0-outputs-0
174+
jupyter_data:
175+
name: stdout
176+
output_type: stream
177+
text: abc\n...
178+
hash: a
179+
path: files/a.txt
164180
- type: block
165181
kind: notebook-content
166182
data:
@@ -212,7 +228,7 @@ cases:
212228
<body>
213229
<sec id="sec-3" sec-type="notebook-code">
214230
<code id="nb-cell-0-code" language="python" executable="yes">print('abc')</code>
215-
<sec sec-type="notebook-output" id="nb-cell-0-output-0">
231+
<sec sec-type="notebook-output" id="nb-cell-0-outputs-0">
216232
<alternatives>
217233
<media specific-use="stream" mimetype="text" mime-subtype="plain" xlink:href="files/a.txt"/>
218234
</alternatives>
@@ -251,16 +267,21 @@ cases:
251267
identifier: nb-cell-0-code
252268
enumerator: 1
253269
html_id: nb-cell-0-code
254-
- type: output
270+
- type: outputs
255271
id: T7FMDqDm8dM2bOT1tKeeM
256-
identifier: nb-cell-0-output
257-
html_id: nb-cell-0-output
258-
data:
259-
- name: stdout
260-
output_type: stream
261-
text: abc\n...
262-
hash: a
263-
path: files/a.txt
272+
identifier: nb-cell-0-outputs
273+
html_id: nb-cell-0-outputs
274+
children:
275+
- type: output
276+
identifier: nb-cell-0-outputs-0
277+
html_id: nb-cell-0-outputs-0
278+
279+
jupyter_data:
280+
name: stdout
281+
output_type: stream
282+
text: abc\n...
283+
hash: a
284+
path: files/a.txt
264285
jats: |-
265286
<?xml version="1.0" encoding="UTF-8"?>
266287
<!DOCTYPE article PUBLIC "-//NLM//DTD JATS (Z39.96) Journal Archiving and Interchange DTD with MathML3 v1.3 20210610//EN" "http://jats.nlm.nih.gov/publishing/1.3/JATS-archivearticle1-3-mathml3.dtd">
@@ -285,7 +306,7 @@ cases:
285306
<body>
286307
<sec id="sec-2" sec-type="notebook-code">
287308
<code id="nb-cell-0-code" language="python" executable="yes">print('abc')</code>
288-
<sec sec-type="notebook-output" id="nb-cell-0-output-0">
309+
<sec sec-type="notebook-output" id="nb-cell-0-outputs-0">
289310
<alternatives>
290311
<media specific-use="stream" mimetype="text" mime-subtype="plain" xlink:href="files/a.txt"/>
291312
</alternatives>
@@ -313,16 +334,20 @@ cases:
313334
identifier: nb-cell-0-code
314335
enumerator: 1
315336
html_id: nb-cell-0-code
316-
- type: output
337+
- type: outputs
317338
id: T7FMDqDm8dM2bOT1tKeeM
318-
identifier: nb-cell-0-output
319-
html_id: nb-cell-0-output
320-
data:
321-
- name: stdout
322-
output_type: stream
323-
text: abc\n...
324-
hash: a
325-
path: files/a.txt
339+
identifier: nb-cell-0-outputs
340+
html_id: nb-cell-0-outputs
341+
children:
342+
- type: output
343+
identifier: nb-cell-0-outputs-0
344+
html_id: nb-cell-0-outputs-0
345+
jupyter_data:
346+
name: stdout
347+
output_type: stream
348+
text: abc\n...
349+
hash: a
350+
path: files/a.txt
326351
- type: block
327352
data:
328353
part: abstract
@@ -373,7 +398,7 @@ cases:
373398
<body>
374399
<sec id="sec-2" sec-type="notebook-code">
375400
<code id="nb-cell-0-code" language="python" executable="yes">print('abc')</code>
376-
<sec sec-type="notebook-output" id="nb-cell-0-output-0">
401+
<sec sec-type="notebook-output" id="nb-cell-0-outputs-0">
377402
<alternatives>
378403
<media specific-use="stream" mimetype="text" mime-subtype="plain" xlink:href="files/a.txt"/>
379404
</alternatives>

0 commit comments

Comments
 (0)