Skip to content

Commit

Permalink
test fixes
Browse files Browse the repository at this point in the history
  • Loading branch information
YuvHayun committed Feb 25, 2025
1 parent 6d96f6f commit de04f95
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 5 deletions.
2 changes: 1 addition & 1 deletion demisto_sdk/commands/validate/tests/PA_validators_test.py
Original file line number Diff line number Diff line change
Expand Up @@ -1555,7 +1555,7 @@ def test_IsValidUseCasesValidator_fix():
[],
1,
[
"The Pack HelloWorld should be deprecated, as all its content items are deprecated.\nThe name of the pack in the pack_metadata.json should end with (Deprecated).\nThe description of the pack in the pack_metadata.json should be one of the following formats:\n1. 'Deprecated. Use <PACK_NAME> instead.'\n2. 'Deprecated. <REASON> No available replacement.'"
"The Pack HelloWorld should be deprecated, as all its content items are deprecated.\nThe name of the pack in the pack_metadata.json should end with (Deprecated).\nThe description of the pack in the pack_metadata.json should be one of the following formats:\n1. 'Deprecated. Use PACK_NAME instead.'\n2. 'Deprecated. REASON No available replacement.'"
],
),
(
Expand Down
8 changes: 4 additions & 4 deletions demisto_sdk/commands/validate/tests/PB_validators_test.py
Original file line number Diff line number Diff line change
Expand Up @@ -277,14 +277,14 @@ def test_is_no_rolename(content_item, expected_result):
(
create_playbook_object(
paths=["deprecated", "description"],
values=[True, "Deprecated. Use <PLAYBOOK_NAME> instead."],
values=[True, "Deprecated. Use PLAYBOOK_NAME instead."],
),
[],
),
(
create_playbook_object(
paths=["deprecated", "description"],
values=[True, "Deprecated. <REASON> No available replacement."],
values=[True, "Deprecated. REASON No available replacement."],
),
[],
),
Expand All @@ -294,8 +294,8 @@ def test_is_no_rolename(content_item, expected_result):
values=[True, "Not a valid description"],
),
"The deprecated playbook 'Detonate File - JoeSecurity V2' has invalid description.\nThe description of "
'all deprecated playbooks should follow one of the formats:\n1. "Deprecated. Use <PLAYBOOK_NAME> '
'instead."\n2. "Deprecated. <REASON> No available replacement."',
'all deprecated playbooks should follow one of the formats:\n1. "Deprecated. Use PLAYBOOK_NAME '
'instead."\n2. "Deprecated. REASON No available replacement."',
),
],
)
Expand Down

0 comments on commit de04f95

Please sign in to comment.