[IMP] forwardport: test read_tree() v read_tree(recursive=True)

This commit is contained in:
Xavier Morel 2024-12-16 09:00:56 +01:00
parent 594f5988b8
commit 991cae1af0

View File

@ -355,6 +355,11 @@ def test_conflict_deleted_deep(env, config, make_repo):
prod.make_ref("heads/a", a)
prod.make_ref("heads/b", b)
assert prod.read_tree(prod.commit('b')).keys() == {"foo"}
assert prod.read_tree(prod.commit('b'), recursive=True) == {
"foo/bar/qux": "2",
}
project = env['runbot_merge.project'].create({
'name': "test",
'github_token': config['github']['token'],