Skip to content

Commit

Permalink
fix: pinpointing error by not including a default for filter_by_level
Browse files Browse the repository at this point in the history
  • Loading branch information
hbraswelrh committed Jan 17, 2025
1 parent 593fc7b commit 9c35bd0
Showing 1 changed file with 5 additions and 4 deletions.
9 changes: 5 additions & 4 deletions tests/trestlebot/cli/test_sync_cac_content_cmd.py
Original file line number Diff line number Diff line change
Expand Up @@ -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(
Expand Down Expand Up @@ -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
Expand Down

0 comments on commit 9c35bd0

Please sign in to comment.