Skip to content

Commit

Permalink
Slightly change the fix for making subproject_id a json string
Browse files Browse the repository at this point in the history
  • Loading branch information
ewjoachim committed Aug 10, 2023
1 parent a00d656 commit d176344
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions tests/end_to_end/conftest.py
Original file line number Diff line number Diff line change
Expand Up @@ -213,7 +213,7 @@ def git_repo(cd, git, action_ref, code_path, subproject_id):
file.read_text()
.replace("__ACTION_REF__", action_ref)
.replace("__ACTION_COVERAGE_PATH__", str(code_path))
.replace("__ACTION_SUBPROJECT_ID__", str(subproject_id))
.replace("__ACTION_SUBPROJECT_ID__", json_module.dumps(subproject_id))
)
file.write_text(content)

Expand Down Expand Up @@ -243,7 +243,7 @@ def code_path(request):
@pytest.fixture
def subproject_id(request):
mark = request.node.get_closest_marker("subproject_id")
return mark.args[0] if mark else "null"
return mark.args[0] if mark else None


@pytest.fixture
Expand Down

0 comments on commit d176344

Please sign in to comment.