def set_key_value(self, key_path: str, subkey_name: str, value: str | int) -> None:
        """Mocks changing the value of a key."""
        self._keys.setdefault(f"HKEY_CURRENT_USER\\{key_path}", {"": ""})[
            subkey_name
        ] = value
Mocks changing the value of a key.
context_menu/pytest_plugin.py