Skip to content

Commit

Permalink
Fix minor bug in add_empty_commit() method
Browse files Browse the repository at this point in the history
  • Loading branch information
CharlyReux committed Apr 29, 2024
1 parent 2e1149d commit 5f64854
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion osv/impact_git_test.py
Original file line number Diff line number Diff line change
Expand Up @@ -261,7 +261,7 @@ def test_introduced_limit_merge(self):
def test_introduced_limit_two_linear(self):
"""Ensures that multiple introduced commit in
the same branch are correctly handled, wrt limit."""
repo = TestRepository("test_introduced_limit_two_linear", debug=True)
repo = TestRepository("test_introduced_limit_two_linear", debug=False)

first = repo.add_empty_commit(
vulnerability=TestRepository.VulnerabilityType.INTRODUCED)
Expand Down
2 changes: 1 addition & 1 deletion osv/test_tools/test_repository.py
Original file line number Diff line number Diff line change
Expand Up @@ -74,7 +74,7 @@ def add_empty_commit(
[self._initial_commit])

self.repo.branches.delete('branch_temp')
self.create_branch('branch_{commit.hex}', commit)
self.create_branch(f'branch_{commit.hex}', commit)

else:
self.repo.create_branch('branch_temp',
Expand Down

0 comments on commit 5f64854

Please sign in to comment.