Add tests for snippets in docs (#1264)

This commit is contained in:
Fábio Rosado
2023-03-22 15:34:23 +00:00
committed by GitHub
parent 5319bd13d5
commit 371b5eac45
2 changed files with 216 additions and 2 deletions

View File

@@ -72,7 +72,7 @@ Now that we have installed the dependencies, we need to patch the Requests libra
<py-script>
import pyodide_http
pyodide_http.patch()
pyodide_http.patch_all()
</py-script>
</body>
</html
@@ -104,7 +104,7 @@ Finally, let's make a request to the JSON Placeholder API to confirm that everyt
import pyodide_http
# Patch the Requests library so it works with Pyscript
pyodide_http.patch()
pyodide_http.patch_all()
# Make a request to the JSON Placeholder API
response = requests.get("https://jsonplaceholder.typicode.com/todos")