Skip to content

Commit

Permalink
fix string interpolation
Browse files Browse the repository at this point in the history
  • Loading branch information
Katie Wright authored and Katie Wright committed Jan 18, 2023
1 parent f50a017 commit 5ac7b5d
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion src/buildkite_test_collector/collector/run_env.py
Original file line number Diff line number Diff line change
Expand Up @@ -116,7 +116,7 @@ def as_json(self) -> Dict[str, str]:
"commit_sha": self.commit_sha,
"message": self.message,
"url": self.url,
"collector": 'python-{COLLECTOR_NAME}',
"collector": f"python-{COLLECTOR_NAME}",
"version": VERSION
}

Expand Down
2 changes: 1 addition & 1 deletion tests/buildkite_test_collector/collector/test_run_env.py
Original file line number Diff line number Diff line change
Expand Up @@ -121,5 +121,5 @@ def test_env_as_json(fake_env):
assert json["commit_sha"] == fake_env.commit_sha
assert json["message"] == fake_env.message
assert json["url"] == fake_env.url
assert json["collector"] == 'python-{COLLECTOR_NAME}'
assert json["collector"] == 'python-buildkite-test-collector'
assert json["version"] == VERSION

0 comments on commit 5ac7b5d

Please sign in to comment.