Fix bug in RepoTool.repo_fingerprint
Signed-off-by: Václav Valíček <valicek1994@gmail.com>
This commit is contained in:
@@ -213,7 +213,7 @@ def test_initialize_caches(tmp_path):
|
||||
|
||||
def test_check_fingerprint(tmp_path):
|
||||
mocks = {
|
||||
'repo_fingerprint': PropertyMock(return_value = "FingerPrint"),
|
||||
'repo_fingerprint': MagicMock(return_value = "FingerPrint"),
|
||||
}
|
||||
|
||||
repo = tmp_path.joinpath("repo.git")
|
||||
@@ -236,7 +236,7 @@ def test_check_fingerprint(tmp_path):
|
||||
|
||||
def test_persist_fingerprint(tmp_path):
|
||||
mocks = {
|
||||
'repo_fingerprint': PropertyMock(return_value = "FingerPrint"),
|
||||
'repo_fingerprint': MagicMock(return_value = "FingerPrint"),
|
||||
}
|
||||
|
||||
repo = tmp_path.joinpath("repo.git")
|
||||
@@ -340,7 +340,7 @@ def test_run(tmp_path, caplog):
|
||||
'list_commits': MagicMock(return_value = commits_named_new),
|
||||
'list_branches': MagicMock(return_value = branches_new),
|
||||
'list_tags': MagicMock(return_value = tags_new),
|
||||
'repo_fingerprint': PropertyMock(return_value = "some-fingerprint"),
|
||||
'repo_fingerprint': MagicMock(return_value = "some-fingerprint"),
|
||||
}
|
||||
|
||||
repo = tmp_path.joinpath("repo.git")
|
||||
|
||||
Reference in New Issue
Block a user