Covid testing when giving birth

Okay so I just looked up on my hospital website and it says that me and my significant other will have to get tested when coming in to deliver. And my thing is I understand why. But I absolutely do not want anything shoved up my nose if I’m not having symptoms. I’m already going to be in a lot of pain coming in and I’m not trying to be any more uncomfortable. So if I refuse to get the test done. Can they deny me service?