()
| 45 | |
| 46 | |
| 47 | def test_pathlib_in_file_tuple() -> None: |
| 48 | result = to_httpx_files({"file": ("custom.md", readme_path)}) |
| 49 | assert result == IsDict({"file": IsTuple("custom.md", readme_path.read_bytes())}) |
| 50 | |
| 51 | result = to_httpx_files({"file": ("custom.md", readme_path, "text/markdown", {"X-Custom": "1"})}) |
| 52 | assert result == IsDict({"file": IsTuple("custom.md", IsBytes(), "text/markdown", {"X-Custom": "1"})}) |
| 53 | |
| 54 | |
| 55 | @pytest.mark.asyncio |
nothing calls this directly
no test coverage detected