def get_key_value(self, key_path: str, subkey_name: str) -> Any:
        """Mocks getting the value of a key."""
        return self._keys.get(f"HKEY_CURRENT_USER\\{key_path}", {}).get(
            subkey_name, None
        )
Mocks getting the value of a key.
context_menu/pytest_plugin.py