Skip to content

Commit

Permalink
chore: updates test_ssp.py to use os.path.join()
Browse files Browse the repository at this point in the history
Signed-off-by: Jennifer Power <[email protected]>
  • Loading branch information
jpower432 committed Dec 6, 2023
1 parent 5e79710 commit 9c91eae
Showing 1 changed file with 5 additions and 5 deletions.
10 changes: 5 additions & 5 deletions tests/trestlebot/tasks/authored/test_ssp.py
Original file line number Diff line number Diff line change
Expand Up @@ -47,7 +47,7 @@ def test_assemble(tmp_trestle_dir: str) -> None:
"""Test to test assemble functionality for SSPs"""
# Prepare the workspace and generate the markdown
trestle_root = pathlib.Path(tmp_trestle_dir)
md_path = f"{markdown_dir}/{test_ssp_output}"
md_path = os.path.join(markdown_dir, test_ssp_output)
args = testutils.setup_for_ssp(trestle_root, test_prof, [test_comp], md_path)
ssp_generate = SSPGenerate()
assert ssp_generate._run(args) == 0
Expand All @@ -72,7 +72,7 @@ def test_assemble_no_ssp_entry(tmp_trestle_dir: str) -> None:
"""Test to trigger failure for missing SSP index"""
# Prepare the workspace and generate the markdown
trestle_root = pathlib.Path(tmp_trestle_dir)
md_path = f"{markdown_dir}/{test_ssp_output}"
md_path = os.path.join(markdown_dir, test_ssp_output)
args = testutils.setup_for_ssp(trestle_root, test_prof, [test_comp], md_path)
ssp_generate = SSPGenerate()
assert ssp_generate._run(args) == 0
Expand Down Expand Up @@ -225,7 +225,7 @@ def test_create_new_with_filter(tmp_trestle_dir: str) -> None:
"""Test to create new SSP with filtering by profile"""
# Prepare the workspace and input ssp
trestle_root = pathlib.Path(tmp_trestle_dir)
md_path = f"{markdown_dir}/{test_ssp_output}"
md_path = os.path.join(markdown_dir, test_ssp_output)
args = testutils.setup_for_ssp(
trestle_root, test_prof, [test_comp, test_comp_2], md_path
)
Expand All @@ -246,7 +246,7 @@ def test_create_new_with_filter(tmp_trestle_dir: str) -> None:
_ = testutils.setup_for_profile(trestle_root, test_prof_filter, test_prof_filter)

ssp_name = "new_ssp"
new_md_path = f"{markdown_dir}/{ssp_name}"
new_md_path = os.path.join(markdown_dir, ssp_name)
input_ssp = test_ssp_output

# Call create_new_with_filter with new profile
Expand All @@ -264,7 +264,7 @@ def test_create_new_with_filter(tmp_trestle_dir: str) -> None:
assert model_path.exists()

ssp_name = "new_ssp_2"
new_md_path = f"{markdown_dir}/{ssp_name}"
new_md_path = os.path.join(markdown_dir, ssp_name)

# Call create_new_with_filter with a single compdef
authored_ssp.create_new_with_filter(
Expand Down

0 comments on commit 9c91eae

Please sign in to comment.