linux – Modify sudoers to bypass password requirements but it’s not taking effect

I need to run a script with sudo without entering my password. I’m editing /etc/sudoers (using sudo visudo) and on the last line, I’m adding:

MY-USER-NAME ALL=(ALL) NOPASSWD:ALL

I just want to make sure that it works before specifying a script to disable sudo access. However whatever sudo command I run still needs me to enter a password. What am I doing wrong here? Could it be that /etc/sudoers is being overwritten somewhere else I’m not aware about?