@@ -229,20 +229,17 @@ def test_subworkflows_lint_include_multiple_alias(self):
229229 assert len (subworkflow_lint .failed ) >= 0 , f"Linting failed with { [x .__dict__ for x in subworkflow_lint .failed ]} "
230230 assert len (subworkflow_lint .passed ) > 0
231231 assert len (subworkflow_lint .warned ) == 3
232- assert any (
233- [
234- x .message == "Included component 'SAMTOOLS_STATS_1' versions are added in main.nf"
235- for x in subworkflow_lint .passed
236- ]
237- )
238232 assert any (
239233 [x .message == "Included component 'SAMTOOLS_STATS_1' used in main.nf" for x in subworkflow_lint .passed ]
240234 )
241235 assert any (
242236 [x .message == "Included component 'SAMTOOLS_STATS_2' not used in main.nf" for x in subworkflow_lint .warned ]
243237 )
244238 assert any (
245- [x .message == "Can be ignored if the module is using topic channels" for x in subworkflow_lint .warned ]
239+ [
240+ x .message .endswith ("Can be ignored if the module is using topic channels" )
241+ for x in subworkflow_lint .warned
242+ ]
246243 )
247244
248245 # cleanup
@@ -474,7 +471,10 @@ def test_lint_clean_patch(self):
474471 assert len (subworkflow_lint .passed ) > 0
475472 assert len (subworkflow_lint .warned ) == 1 , f"Linting warned with { [x .__dict__ for x in subworkflow_lint .warned ]} "
476473 assert any (
477- [x .message == "Can be ignored if the module is using topic channels" for x in subworkflow_lint .warned ]
474+ [
475+ x .message .endswith ("Can be ignored if the module is using topic channels" )
476+ for x in subworkflow_lint .warned
477+ ]
478478 )
479479
480480 def test_lint_broken_patch (self ):
@@ -495,5 +495,8 @@ def test_lint_broken_patch(self):
495495 assert len (subworkflow_lint .passed ) > 0
496496 assert len (subworkflow_lint .warned ) == 1 , f"Linting warned with { [x .__dict__ for x in subworkflow_lint .warned ]} "
497497 assert any (
498- [x .message == "Can be ignored if the module is using topic channels" for x in subworkflow_lint .warned ]
498+ [
499+ x .message .endswith ("Can be ignored if the module is using topic channels" )
500+ for x in subworkflow_lint .warned
501+ ]
499502 )
0 commit comments