def test_append_to_history_noop(): with mock_history(initial=['aaa']) as releases: append_to_history('aaa') assert releases == ['aaa']
def test_append_to_history(): with mock_history(initial=['aaa']) as releases: append_to_history('bbb') assert releases == ['aaa', 'bbb']