v0.3.0 #15

Merged
pptx704 merged 64 commits from dev into main 2026-06-25 22:11:26 +00:00
17 changed files with 2678 additions and 3718 deletions
Showing only changes of commit f5e510868b - Show all commits

View File

@ -428,15 +428,12 @@ class TestCodeRunnerMimeTypes:
assert "array([0, 1, 2, 3, 4])" in ex.text
def test_requests_status_code(self):
ex = self.capsule.run_code(
ex = self._run(
"import requests\n"
"r = requests.get('https://httpbin.org/status/204', timeout=10)\n"
"r.status_code\n",
timeout=60,
"r = requests.get('http://httpbingo.org/status/418', timeout=10)\n"
"r.status_code\n"
)
if ex.error is not None:
pytest.skip(f"network unavailable: {ex.error.name}: {ex.error.value}")
assert ex.text == "204"
assert ex.text == "418"
class TestCodeRunnerIsolation: