(env, start_response)
| 19 | |
| 20 | |
| 21 | def application(env, start_response): |
| 22 | path = env['PATH_INFO'] |
| 23 | members = path.split('/') |
| 24 | assert members[0] == '' |
| 25 | assert len(members) >= 2 |
| 26 | root = members[1] |
| 27 | if root == 's3': |
| 28 | # See test_fs::test_uwsgi_integration |
| 29 | start_response('200 OK', [('Content-Type', 'text/html')]) |
| 30 | # flake8: noqa |
| 31 | fs = pyarrow.fs.S3FileSystem() |
| 32 | return [b"Hello World\n"] |
| 33 | else: |
| 34 | start_response('404 Not Found', [('Content-Type', 'text/html')]) |
| 35 | return [f"Path {path!r} not found\n".encode()] |
nothing calls this directly
no test coverage detected