Prepare a handful of fake segments for upload.
()
| 80 | |
| 81 | |
| 82 | def prepare_multi_upload_segments(): |
| 83 | """Prepare a handful of fake segments for upload.""" |
| 84 | # The first segment is special, being explicitly passed by |
| 85 | # Postgres. |
| 86 | yield FakeWalSegment('0' * 8 * 3, explicit=True) |
| 87 | |
| 88 | # Additional segments are non-explicit, which means they will have |
| 89 | # their metadata manipulated by wal-e rather than relying on the |
| 90 | # Postgres archiver. |
| 91 | for i in range(1, 5): |
| 92 | yield FakeWalSegment(str(i) * 8 * 3, explicit=False) |
| 93 | |
| 94 | |
| 95 | def test_simple_upload(): |
no test coverage detected