fix(gapic-generator): add pragma to constants.py to resolve coverage failure and correct if block
#17268
+2
−2