My gf has a 08 mazda 3 and one of her fog lights is cracked. THe dealership failed inspection for that. told her not to go to dealerships

.. they slapped a rejection sticker on it and she doesnt have $120 for a replacement fog light assembly right now. If i put black tape as a cover on both fog lights, will it pass inspection at another shop? i am guessing so because they are covered and not in use... Taking them off is quiet a hassle...damn new cars. thanks for the help