import zipfile


def create_a_valid_zip(tmp_path):
    """Prepare a simple zip file."""
    zip_file = tmp_path / "foobar.charm"
    with zipfile.ZipFile(str(zip_file), "w") as zf:
        zf.writestr("fake_file", b"fake content")
    return zip_file