From 0ad7905fc2ed8769ba23f8de761724456d58dbee Mon Sep 17 00:00:00 2001 From: Jonathan Sick Date: Wed, 3 Jan 2024 17:27:13 -0500 Subject: [PATCH] fix: resources is already parsed from json --- src/noteburst/jupyterclient/jupyterlab.py | 2 +- tests/handlers/v1_test.py | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/src/noteburst/jupyterclient/jupyterlab.py b/src/noteburst/jupyterclient/jupyterlab.py index 13faddd..7d0a5f0 100644 --- a/src/noteburst/jupyterclient/jupyterlab.py +++ b/src/noteburst/jupyterclient/jupyterlab.py @@ -377,7 +377,7 @@ class NotebookExecutionResult(BaseModel): description="The notebook that was executed, as a JSON string." ) - resources: str = Field( + resources: dict[str, Any] = Field( description=( "The resources used to execute the notebook, as a JSON string." ) diff --git a/tests/handlers/v1_test.py b/tests/handlers/v1_test.py index 19c2a8d..4b51b1f 100644 --- a/tests/handlers/v1_test.py +++ b/tests/handlers/v1_test.py @@ -70,7 +70,7 @@ async def test_post_nbexec( result = json.dumps( { "notebook": sample_ipynb_executed, - "resources": "{}", + "resources": {}, "error": None, } )