Commit dfd959ba authored by Aurélien Campéas's avatar Aurélien Campéas
Browse files

log: have a better test with names + stripped arguments

This highlight an issue: we don't have the name of the series of the
stripped changesets.
parent 01807fb7d616
......@@ -1191,15 +1191,19 @@ insertion_date value_date
assert [l['author'] for l in log
] == ['babar', 'celeste', 'babar', 'celeste', 'celeste', 'celeste']
log = tsh.log(engine, stripped=True, names=['xserie', 'yserie'])
alllogs = tsh.log(engine, stripped=True, names=['xserie', 'yserie'])
log = [rev for rev in alllogs
if rev['meta']
and rev['meta'].get('tshistory.info', '').startswith('got')]
assert len(log) == 2 # 2 stripped csets
for l in log:
if l['meta']:
meta = l['meta']
stripinfo = meta.get('tshistory.info')
if stripinfo:
assert (stripinfo.startswith('got stripped from') or
# see how this test is silly ?
stripinfo.startswith('belonged to'))
assert l['names'] == [] # not good
meta = l['meta']
stripinfo = meta.get('tshistory.info')
assert (stripinfo.startswith('got stripped from') or
# see how this test is silly ?
stripinfo.startswith('belonged to'))
def test_long_name(engine, tsh):
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment