From 5f648543a74f2e843108d3bbfa529926a87e0186 Mon Sep 17 00:00:00 2001 From: charly reux Date: Mon, 29 Apr 2024 09:13:43 +0200 Subject: [PATCH] Fix minor bug in add_empty_commit() method --- osv/impact_git_test.py | 2 +- osv/test_tools/test_repository.py | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/osv/impact_git_test.py b/osv/impact_git_test.py index e3c125f2485..910707cc6a0 100644 --- a/osv/impact_git_test.py +++ b/osv/impact_git_test.py @@ -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) diff --git a/osv/test_tools/test_repository.py b/osv/test_tools/test_repository.py index 962e20e080a..fad8b21495c 100644 --- a/osv/test_tools/test_repository.py +++ b/osv/test_tools/test_repository.py @@ -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',