fix save code

This commit is contained in:
yzlin 2024-02-06 14:13:02 +08:00
parent 9b72370cbe
commit 0fe854fa7f

View file

@ -41,4 +41,4 @@ async def test_save_code_file_notebook():
notebook = nbformat.read(file_path, as_version=4)
assert len(notebook.cells) > 0, "Notebook should have at least one cell"
first_cell_source = notebook.cells[0].source
assert "print('Hello, World!')" in first_cell_source, "Notebook cell content does not match"
assert "print" in first_cell_source, "Notebook cell content does not match"