(path: str)
| 43 | |
| 44 | |
| 45 | def _write_resource_zip(path: str) -> None: |
| 46 | with zipfile.ZipFile(path, 'w', compression=zipfile.ZIP_STORED) as archive: |
| 47 | archive.writestr('s2twp.json', _TEXT_ZIP_CONFIG) |
| 48 | archive.writestr('STPhrases.txt', "打印机\t印表機\n") |
| 49 | archive.writestr('STCharacters.txt', "鼠\t鼠\n标\t標\n") |
| 50 | archive.writestr('TWPhrases.txt', "鼠標\t滑鼠\n") |
| 51 | |
| 52 | |
| 53 | def test_import(): |
no outgoing calls
no test coverage detected