- Sort Score
- Result 10 results
- Languages All
Results 1 - 2 of 2 for write_text (0.04 sec)
-
tests/test_tutorial/test_request_forms_and_files/test_tutorial001.py
}, ] } def test_post_files_and_token(tmp_path, app: FastAPI): patha = tmp_path / "test.txt" pathb = tmp_path / "testb.txt" patha.write_text("<file content>") pathb.write_text("<file b content>") client = TestClient(app) with patha.open("rb") as filea, pathb.open("rb") as fileb: response = client.post( "/files/",Registered: Sun Dec 28 07:19:09 UTC 2025 - Last Modified: Sat Dec 27 18:19:10 UTC 2025 - 7.3K bytes - Viewed (0) -
scripts/translate.py
print(f"Running agent for {out_path}") result = agent.run_sync(prompt) out_content = f"{result.output.strip()}\n" print(f"Saving translation to {out_path}") out_path.write_text(out_content, encoding="utf-8", newline="\n") def iter_all_en_paths() -> Iterable[Path]: """ Iterate on the markdown files to translate in order of priority. """ first_dirs = [
Registered: Sun Dec 28 07:19:09 UTC 2025 - Last Modified: Sat Dec 27 19:05:53 UTC 2025 - 34.1K bytes - Viewed (0)