@@ -163,6 +163,39 @@ const main = async () => {
163
163
nbformat_minor : 2
164
164
} ;
165
165
166
+ const EmptyNotebook = {
167
+ cells : [
168
+ {
169
+ cell_type : "code" ,
170
+ execution_count : null ,
171
+ metadata : { } ,
172
+ outputs : [ ] ,
173
+ source : [ ]
174
+ }
175
+ ] ,
176
+ metadata : {
177
+ kernelspec : {
178
+ display_name : "dev" ,
179
+ language : "python" ,
180
+ name : "dev"
181
+ } ,
182
+ language_info : {
183
+ codemirror_mode : {
184
+ name : "ipython" ,
185
+ version : 3
186
+ } ,
187
+ file_extension : ".py" ,
188
+ mimetype : "text/x-python" ,
189
+ name : "python" ,
190
+ nbconvert_exporter : "python" ,
191
+ pygments_lexer : "ipython3" ,
192
+ version : "3.6.8"
193
+ }
194
+ } ,
195
+ nbformat : 4 ,
196
+ nbformat_minor : 2
197
+ } ;
198
+
166
199
await jupyterServer . writeNotebook (
167
200
"ci-local-writeout.ipynb" ,
168
201
originalNotebook
@@ -241,9 +274,10 @@ const main = async () => {
241
274
checkS3CloneLandingResponse ( s3CloneLandingRes , publishedPath ) ;
242
275
243
276
await jupyterServer . cloneS3Notebook ( bucketName , publishedPath ) ;
277
+ await jupyterServer . cloneFSNotebook ( "test_files/EmptyNotebook.ipynb" ) ;
244
278
// Wait for minio to have the notebook
245
279
// Future iterations of this script should poll to get the notebook
246
- await sleep ( 700 ) ;
280
+ await sleep ( 2000 ) ;
247
281
248
282
await compareS3Notebooks ( "ci-published.ipynb" , originalNotebook ) ;
249
283
await compareS3Notebooks ( "ci-local-writeout.ipynb" , originalNotebook ) ;
@@ -255,12 +289,15 @@ const main = async () => {
255
289
save : 3
256
290
}
257
291
} ) ;
292
+ await compareS3Notebooks ( "EmptyNotebook.ipynb" , EmptyNotebook ) ;
293
+
258
294
await sleep ( 700 ) ;
259
295
260
296
await jupyterServer . deleteNotebook ( "ci-published.ipynb" ) ;
261
297
await jupyterServer . deleteNotebook ( "ci-local-writeout.ipynb" ) ;
262
298
await jupyterServer . deleteNotebook ( "ci-local-writeout2.ipynb" ) ;
263
299
await jupyterServer . deleteNotebook ( "ci-local-writeout3.ipynb" ) ;
300
+ await jupyterServer . deleteNotebook ( "EmptyNotebook.ipynb" ) ;
264
301
265
302
jupyterServer . shutdown ( ) ;
266
303
0 commit comments