A religious test is a legal requirement to swear faith to a specific religion or sect, or to renounce the same.