Fix some bugs

Signed-off-by: Václav Valíček <valicek1994@gmail.com>
This commit is contained in:
2022-08-04 14:44:58 +02:00
parent f75702439c
commit cb0d8681ae
3 changed files with 20 additions and 4 deletions

View File

@@ -360,6 +360,11 @@ def test_run(tmp_path, caplog):
assert "Branch doctrine removed in source, removing from detector" in caplog.text
assert "Tag test-testu removed in source, removing from detector" in caplog.text
"""
for x in executed:
print(x.dict)
"""
assert len(executed) == 24
assert sum(ex.is_tag for ex in executed) == 3
assert sum(ex.is_branch for ex in executed) == 2
@@ -377,4 +382,3 @@ def test_run(tmp_path, caplog):
refs = DiskStoredRefs(cache_dir.joinpath("detector", "tags"))
for tag, commit in tags_new.items():
assert commit == refs.get(tag)