2727TEST_OWLBOT = Path (__file__ ).parent .parent / "resources" / "test-owlbot"
2828FIXTURES = Path (__file__ ).parent .parent / "resources" / "test-owlbot" / "fixtures"
2929TEMPLATES_PATH = Path (__file__ ).parent .parent .parent / "owlbot" / "templates"
30- TEST_CURRENT_YEAR = "2025"
30+ CURRENT_YEAR_OVERRIDE = "2025"
3131
3232SAMPLE_METADATA = """
3333<metadata>
@@ -173,7 +173,7 @@ def test_deprecate_method(self):
173173 )
174174 os .chdir (cwd )
175175
176- @mock .patch .dict (os .environ , {"TEST_CURRENT_YEAR " : TEST_CURRENT_YEAR })
176+ @mock .patch .dict (os .environ , {"CURRENT_YEAR_OVERRIDE " : CURRENT_YEAR_OVERRIDE })
177177 def test_fix_proto_license (self ):
178178 with tempfile .TemporaryDirectory () as tempdir :
179179 cwd = os .getcwd ()
@@ -190,7 +190,7 @@ def test_fix_proto_license(self):
190190 )
191191 os .chdir (cwd )
192192
193- @mock .patch .dict (os .environ , {"TEST_CURRENT_YEAR " : TEST_CURRENT_YEAR })
193+ @mock .patch .dict (os .environ , {"CURRENT_YEAR_OVERRIDE " : CURRENT_YEAR_OVERRIDE })
194194 def test_fix_proto_license_idempotent (self ):
195195 with tempfile .TemporaryDirectory () as tempdir :
196196 cwd = os .getcwd ()
@@ -209,7 +209,7 @@ def test_fix_proto_license_idempotent(self):
209209 )
210210 os .chdir (cwd )
211211
212- @mock .patch .dict (os .environ , {"TEST_CURRENT_YEAR " : TEST_CURRENT_YEAR })
212+ @mock .patch .dict (os .environ , {"CURRENT_YEAR_OVERRIDE " : CURRENT_YEAR_OVERRIDE })
213213 def test_fix_grpc_license (self ):
214214 with tempfile .TemporaryDirectory () as tempdir :
215215 cwd = os .getcwd ()
@@ -226,7 +226,7 @@ def test_fix_grpc_license(self):
226226 )
227227 os .chdir (cwd )
228228
229- @mock .patch .dict (os .environ , {"TEST_CURRENT_YEAR " : TEST_CURRENT_YEAR })
229+ @mock .patch .dict (os .environ , {"CURRENT_YEAR_OVERRIDE " : CURRENT_YEAR_OVERRIDE })
230230 def test_fix_grpc_license_idempotent (self ):
231231 with tempfile .TemporaryDirectory () as tempdir :
232232 cwd = os .getcwd ()
0 commit comments