A reactive notebook for Python — run reproducible experiments, query with SQL, execute as a script, deploy as an app, and version with git. Stored as pure Python. All in a modern, AI-native editor.
Python artificial-intelligencedagdata-sciencedata-visualizationdataflowdeveloper-toolsmachine-learningnotebookspipelinepythonreactivesqlweb-app
tests: mock http request (#10122)
Myles Scolnick05c129e251d5
diff --git a/tests/_cli/test_file_path.py b/tests/_cli/test_file_path.pyindex e5ab64c22d..7c1f4cd748 100644--- a/tests/_cli/test_file_path.py+++ b/tests/_cli/test_file_path.py@@ -242,9 +242,15 @@ def test_validate_name_with_markdown_file():def test_validate_name_with_markdown_file_remote() -> None:markdown_tutorial = "https://github.com/marimo-team/marimo/blob/main/marimo/_tutorials/markdown_format.md"- assert validate_name(- markdown_tutorial, allow_new_file=True, allow_directory=False- )[0].endswith("markdown_format.md")+ with patch("marimo._utils.requests.get") as mock_get:+ mock_get.return_value = Response(+ 200,+ b"# Markdown tutorial\n",+ {},+ )+ assert validate_name(+ markdown_tutorial, allow_new_file=True, allow_directory=False+ )[0].endswith("markdown_format.md")def test_validate_name_with_jupyter_notebook():