Skip to content

Commit

Permalink
The id of test_platform_from_text_complex_expression is not stable
Browse files Browse the repository at this point in the history
Is is not stable and worth testing
  • Loading branch information
Mab879 committed Jun 27, 2024
1 parent c3e7d7c commit 45f6e79
Showing 1 changed file with 0 additions and 1 deletion.
1 change: 0 additions & 1 deletion tests/unit/ssg-module/test_build_yaml.py
Original file line number Diff line number Diff line change
Expand Up @@ -339,7 +339,6 @@ def test_platform_from_text_complex_expression(product_cpes):
assert platform.get_remediation_conditional("ansible") == "( \"systemd\" in ansible_facts.packages and ( \"chrony\" in ansible_facts.packages or \"ntp\" in ansible_facts.packages ) and not ( \"yum\" in ansible_facts.packages ) )"
platform_el = platform.to_xml_element()
assert platform_el.tag == "{%s}platform" % cpe_language_namespace
assert platform_el.get("id") == "systemd_and_chrony_or_ntp_and_not_yum"
logical_tests = platform_el.findall(
"{%s}logical-test" % cpe_language_namespace)
assert len(logical_tests) == 1
Expand Down

0 comments on commit 45f6e79

Please sign in to comment.