(filename)
| 621 | |
| 622 | |
| 623 | def read_gridfs_file(filename): |
| 624 | assert proc_client is not None |
| 625 | bucket = GridFSBucket(proc_client.perftest) |
| 626 | |
| 627 | temp = tempfile.TemporaryFile() |
| 628 | try: |
| 629 | bucket.download_to_stream_by_name(filename, temp) |
| 630 | finally: |
| 631 | temp.close() |
| 632 | |
| 633 | |
| 634 | class TestJsonMultiImport(PerformanceTest, unittest.TestCase): |
nothing calls this directly
no test coverage detected