@pytest.fixture
def small_push_dir(tmpdir):
 contents = ('abcdefghijlmnopqrstuvwxyz\n' * 10000)
 push_dir = tmpdir.join('push-from').ensure(dir=True)
 push_dir.join('arbitrary-file').write(contents)
 push_dir.join('pg_xlog').mksymlinkto('/tmp/wal-e-test-must-not-exist')
 push_dir.join('holy-smokes').ensure()
 return push_dir

@ pytest . fixture def small_push_dir ( tmpdir ) : contents = ( 'abcdefghijlmnopqrstuvwxyz\n' * 10000 ) push_dir = tmpdir . join ( 'push-from' ) . ensure ( dir = True ) push_dir . join ( 'arbitrary-file' ) . write ( contents ) push_dir . join ( 'pg_xlog' ) . mksymlinkto ( '/tmp/wal-e-test-must-not-exist' ) push_dir . join ( 'holy-smokes' ) . ensure ( ) return push_dir
create a small pg data directory-alike .