@@ -255,14 +255,13 @@ def test_from_github_pr_flat_topic_normalizes_suffix(self, mock_matcher):
255255 """Flat topic: suffix from webhook action (+ merged when closed); else open."""
256256 mock_matcher .return_value = "JIRA-1"
257257 flat = "github.pull_request"
258- _omit_action = object ()
259258 cases = (
260259 ("closed with merge" , {"merged" : True }, "closed" , "merged" ),
261260 ("closed without merge" , {"merged" : False }, "closed" , "closed" ),
262261 ("reopened" , {}, "reopened" , "reopened" ),
263262 ("opened" , {}, "opened" , "open" ),
264263 ("edited maps to open" , {}, "edited" , "open" ),
265- ("missing action" , {}, _omit_action , "open" ),
264+ ("missing action" , {}, None , "open" ),
266265 )
267266 for name , pr_extra , action , expected in cases :
268267 with self .subTest (name ):
@@ -273,7 +272,7 @@ def test_from_github_pr_flat_topic_normalizes_suffix(self, mock_matcher):
273272 suffix = flat ,
274273 config = self .mock_config ,
275274 )
276- if action is not _omit_action :
275+ if action is not None :
277276 base_kw ["action" ] = action
278277 response = i .PR .from_github (** base_kw )
279278 self .assertEqual (response .suffix , expected )
0 commit comments