File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -175,8 +175,41 @@ def test_get_env_vars_with_org_and_repo_specific_exemptions(self):
175175 )
176176 def test_get_env_vars_repo_specific_exemptions_trims_whitespace (self ):
177177 """Test that REPO_SPECIFIC_EXEMPTIONS trims whitespace in ecosystems."""
178+ expected_result = (
179+ "my_organization" ,
180+ [],
181+ "" , # search_query
182+ None ,
183+ None ,
184+ b"" ,
185+ False ,
186+ "my_token" ,
187+ "" ,
188+ ["repo4" , "repo5" ],
189+ "issue" ,
190+ "Dependabot Alert custom title" ,
191+ "Dependabot custom body" ,
192+ "2020-01-01" ,
193+ False ,
194+ "Create dependabot configuration" ,
195+ "123" ,
196+ False ,
197+ ["internal" , "private" , "public" ],
198+ None , # batch_size
199+ True , # enable_security_updates
200+ [], # exempt_ecosystems
201+ False , # update_existing
202+ {
203+ "repo1" : ["gomod" , "docker" ],
204+ }, # repo_specific_exemptions
205+ "weekly" , # schedule
206+ "" , # schedule_day
207+ None , # team_name
208+ [], # labels
209+ None ,
210+ )
178211 result = get_env_vars (True )
179- self .assertEqual (result [ 23 ], { "repo1" : [ "gomod" , "docker" ]} )
212+ self .assertEqual (result , expected_result )
180213
181214 @patch .dict (
182215 os .environ ,
You can’t perform that action at this time.
0 commit comments