Testing notebooks: Inject query parameters into embedded app? #5814
Unanswered
liquidcarbon
asked this question in
Q&A
Replies: 0 comments
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
-
Suppose I have a notebook that accepts query params ([live here])(https://liquidcarbon-puppy-hf-marimo.hf.space/?file=notebooks%2Fmultiplier.py)
And I made up a test for it using
app.embed
(it passes):Is there a way to inject query params into
app
?I was poking around the objects under
app._execution_context._kernel
and it seems like it should be possible to construct mock execution context with desired query params? But so far I failed to modify theresult
.Why?
Being able to do this would unlock automated testing of notebooks with different user inputs (if they're coupled to query params).
Beta Was this translation helpful? Give feedback.
All reactions