From 9c35bd061d3cec74148ce3dc79260595e07857a7 Mon Sep 17 00:00:00 2001 From: Hannah Braswell Date: Fri, 17 Jan 2025 11:25:13 -0500 Subject: [PATCH] fix: pinpointing error by not including a default for filter_by_level --- tests/trestlebot/cli/test_sync_cac_content_cmd.py | 9 +++++---- 1 file changed, 5 insertions(+), 4 deletions(-) diff --git a/tests/trestlebot/cli/test_sync_cac_content_cmd.py b/tests/trestlebot/cli/test_sync_cac_content_cmd.py index f3e574d6..e95d8444 100644 --- a/tests/trestlebot/cli/test_sync_cac_content_cmd.py +++ b/tests/trestlebot/cli/test_sync_cac_content_cmd.py @@ -259,9 +259,10 @@ def test_created_oscal_profile(tmp_repo: Tuple[str, Repo]) -> None: setup_for_catalog(repo_path, test_cat, "catalog") # test_catalog_path = repo_path.joinpath("catalogs", test_cat, "catalog.json") - tester_prof_path = ( - f"products/{test_product}/profiles/{test_policy_id}-{test_level}-profile.json" - ) + # tester_prof_path = ( + # f"products/{test_product}/profiles/{test_policy_id}-{test_level}-profile.json" + # ) + test_prof_path = f"/products/{test_product}/profiles/{test_policy_id}-{test_level}-profile.json" runner = CliRunner() result = runner.invoke( @@ -293,7 +294,7 @@ def test_created_oscal_profile(tmp_repo: Tuple[str, Repo]) -> None: # Using oscal_profile to define the path where OSCAL # Profile needs to be populated assert result.exit_code == 0 - profile = repo_path.joinpath(tester_prof_path) + profile = repo_path.joinpath(test_prof_path) assert profile.exists() # assert result.exit_code == 0 # Checking if content exists in path