Unfortunately, the inhibitor routes didn't seem to work as advertised for me on openSUSE Tumbleweed (42.1) using GNOME. But, I had success with Systemd masking:
systemctl mask sleep.target suspend.target
To undo the mask, you can use unmask:
systemctl unmask sleep.target suspend.target