()
| 70 | |
| 71 | @pytest.fixture(scope="module") |
| 72 | def empty_gar(): |
| 73 | path = os.path.join( |
| 74 | "/", |
| 75 | tempfile.gettempprefix(), |
| 76 | "{}.gar".format(str(datetime.datetime.now().strftime("%Y-%m-%d-%H-%M-%S-%f"))), |
| 77 | ) |
| 78 | empty_zip_data = b"PK\x05\x06\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00" |
| 79 | with open(path, "wb") as f: |
| 80 | f.write(empty_zip_data) |
| 81 | yield path |
| 82 | os.remove(path) |
| 83 | |
| 84 | |
| 85 | def invalid_configfile_gar(): |