@@ -105,7 +105,7 @@ def test_get_env_vars_with_github_app(self):
105105 report_title = "" ,
106106 owner = "test_owner" ,
107107 repo = "test_repo" ,
108- output_file = "" ,
108+ output_file = "innersource_report.md " ,
109109 )
110110 result = get_env_vars (True )
111111 self .assertEqual (str (result ), str (expected_result ))
@@ -136,7 +136,7 @@ def test_get_env_vars_with_token(self):
136136 report_title = "" ,
137137 owner = "test_owner" ,
138138 repo = "test_repo" ,
139- output_file = "" ,
139+ output_file = "innersource_report.md " ,
140140 )
141141 result = get_env_vars (True )
142142 self .assertEqual (str (result ), str (expected_result ))
@@ -257,17 +257,13 @@ def test_get_env_vars_output_file_default_in_prod(self):
257257 {
258258 "REPOSITORY" : "test_owner/test_repo" ,
259259 "GH_TOKEN" : "TOKEN" ,
260- "OUTPUT_FILE" : "" ,
261260 },
262261 ):
263262 # Verify the default value logic directly
264- output_file = os .getenv ("OUTPUT_FILE" , "" )
265- self .assertEqual (output_file , "" )
263+ env_vars = get_env_vars (test = True )
266264
267265 # This is the condition in get_env_vars
268- if not output_file :
269- output_file = "InnerSource_Report.md"
270- self .assertEqual (output_file , "InnerSource_Report.md" )
266+ self .assertEqual (env_vars .output_file , "innersource_report.md" )
271267
272268 @patch .dict (
273269 os .environ ,
@@ -293,7 +289,7 @@ def test_get_env_vars_optionals_are_defaulted(self):
293289 report_title = "InnerSource Report" ,
294290 owner = "test_owner" ,
295291 repo = "test_repo" ,
296- output_file = "" ,
292+ output_file = "innersource_report.md " ,
297293 rate_limit_bypass = False ,
298294 )
299295 result = get_env_vars (True )
0 commit comments