Source

anyvc / tests / test_client.py

Full commit
import py
from anyvc.client import output_state, list_colors

items = list(list_colors)


class MockState:
    relpath = '.'
    def __init__(self, state):
        self.state = state

@py.test.mark.parametrize('state', items, ids=items)
def test_output_state(state):
    tw = py.io.TerminalWriter()
    tw.hasmarkup = True

    output_state(tw, MockState(state))