Changeset View
Changeset View
Standalone View
Standalone View
swh/journal/tests/test_cli.py
Show First 20 Lines • Show All 79 Lines • ▼ Show 20 Lines | result = invoke(False, [ | ||||
'--max-messages', '1', | '--max-messages', '1', | ||||
]) | ]) | ||||
expected = r'Done.\n' | expected = r'Done.\n' | ||||
assert result.exit_code == 0, result.output | assert result.exit_code == 0, result.output | ||||
assert re.fullmatch(expected, result.output, re.MULTILINE), result.output | assert re.fullmatch(expected, result.output, re.MULTILINE), result.output | ||||
assert storage.snapshot_get(snapshot['id']) == { | assert storage.snapshot_get(snapshot['id']) == { | ||||
**snapshot, 'next_branch': None} | **snapshot, 'next_branch': None} | ||||
# TODO: write a test for the content-replay command |