Skip to content

Commit

Permalink
fix: correcting format
Browse files Browse the repository at this point in the history
Signed-off-by: Alejandro Jose Leiva Palomo <[email protected]>
  • Loading branch information
AleJo2995 committed Sep 13, 2023
1 parent 1848902 commit 641e7d1
Showing 1 changed file with 1 addition and 9 deletions.
10 changes: 1 addition & 9 deletions tests/trestle/core/commands/author/profile_test.py
Original file line number Diff line number Diff line change
Expand Up @@ -1194,24 +1194,16 @@ def test_profile_generate_assemble_parameter_aggregation(
assert Trestle().run() == 0


def test_profile_generate_assemble_rev_5(
tmp_trestle_dir: pathlib.Path, monkeypatch: MonkeyPatch
) -> None:
def test_profile_generate_assemble_rev_5(tmp_trestle_dir: pathlib.Path, monkeypatch: MonkeyPatch) -> None:
"""Test the profile markdown generator."""
_, assembled_prof_dir, _, markdown_path = setup_profile_generate_rev5(tmp_trestle_dir, 'test_profile_rev5.json')
yaml_header_path = test_utils.YAML_TEST_DATA_PATH / 'good_simple.yaml'

# prof_a_path = ModelUtils.get_model_path_for_name_and_class(
# tmp_trestle_dir, 'test_profile_a', prof.Profile, FileContentType.JSON
# )
# catalog = ProfileResolver.get_resolved_profile_catalog(tmp_trestle_dir, prof_a_path)

# convert resolved profile catalog to markdown then assemble it after adding an item to a control
# generate, edit, assemble
test_args = f'trestle author profile-generate -n {prof_name} -o {md_name}'.split( # noqa E501
)
test_args.extend(['-y', str(yaml_header_path)])
# test_args.extend(['-s', all_sections_str])
monkeypatch.setattr(sys, 'argv', test_args)

assert Trestle().run() == 0
Expand Down

0 comments on commit 641e7d1

Please sign in to comment.