mirror of
https://github.com/odoo/runbot.git
synced 2025-03-27 13:25:47 +07:00
[IMP] forwardport: test read_tree() v read_tree(recursive=True)
This commit is contained in:
parent
594f5988b8
commit
991cae1af0
@ -355,6 +355,11 @@ def test_conflict_deleted_deep(env, config, make_repo):
|
|||||||
prod.make_ref("heads/a", a)
|
prod.make_ref("heads/a", a)
|
||||||
prod.make_ref("heads/b", b)
|
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({
|
project = env['runbot_merge.project'].create({
|
||||||
'name': "test",
|
'name': "test",
|
||||||
'github_token': config['github']['token'],
|
'github_token': config['github']['token'],
|
||||||
|
Loading…
Reference in New Issue
Block a user