Skip to content

Commit

Permalink
fix: updates formatting to make tests pass
Browse files Browse the repository at this point in the history
Signed-off-by: Jennifer Power <barnabei.jennifer@gmail.com>
  • Loading branch information
jpower432 committed Sep 10, 2024
1 parent cfe3358 commit 660c811
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
4 changes: 2 additions & 2 deletions tests/trestle/core/commands/author/component_test.py
Original file line number Diff line number Diff line change
Expand Up @@ -219,11 +219,11 @@ def test_component_workflow_no_rules(tmp_trestle_dir: pathlib.Path, monkeypatch:
# Check that the example md file looks correct
_, tree = MarkdownProcessor().process_markdown(ac1_path)

imp_req_md = """## What is the solution and how is it implemented?
imp_req_md = """## What is the solution and how is it implemented?
<!-- For implementation status enter one of: implemented, partial, planned, alternative, not-applicable -->
<!-- Note that the list of rules under ### Rules: is read-only and changes will not be captured after assembly to JSON -->
<!-- Note that the list of rules under ### Rules: is read-only and changes will not be captured after assembly to JSON -->
imp req prose for ac-1 from comp cc
Expand Down
2 changes: 1 addition & 1 deletion trestle/core/control_writer.py
Original file line number Diff line number Diff line change
Expand Up @@ -282,7 +282,7 @@ def _skip_part(self, context: ControlContext, part_label: str, comp_dict: CompDi
Check if a part should be skipped based on rules and context.
Notes: The default logic is to conditionally add control parts based
on whether the component has rules or existing prose associated with that part. This can be
on whether the component has rules or existing prose associated with that part. This can be
changed using the control context for SSP markdown.
"""
if context.purpose == ContextPurpose.SSP and context.include_all_parts:
Expand Down

0 comments on commit 660c811

Please sign in to comment.