Skip to content

Commit

Permalink
fix: fix test failure in validation component
Browse files Browse the repository at this point in the history
  • Loading branch information
qduanmu committed Jan 16, 2025
1 parent 0d8adc0 commit f6f8d19
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion tests/trestlebot/cli/test_sync_cac_content_cmd.py
Original file line number Diff line number Diff line change
Expand Up @@ -168,10 +168,11 @@ def test_sync_product_create_validation_component(tmp_repo: Tuple[str, Repo]) ->
# Check the CLI sync-cac-content is successful
component_definition = repo_path.joinpath(test_comp_path)
assert result.exit_code == 0

# Check if the component definition is created
assert component_definition.exists()
compdef = ComponentDefinition.oscal_read(component_definition)
component = compdef.components[0]
assert len(component.props) == 12
assert len(component.props) == 30
assert component.title == "openscap"
assert component.type == "validation"

0 comments on commit f6f8d19

Please sign in to comment.