示例#1
0
def test_chart_states_returns_list():
    """Test the chart state function returns list."""
    jd = JobData('test')
    jd.count_states()
    assert isinstance(jd.chart_states(), list)
示例#2
0
def test_chart_states_list_lengths():
    """Test chart state function lists are same length."""
    jd = JobData('test')
    jd.count_states()
    one, two = jd.chart_states()[0], jd.chart_states()[1]
    assert len(one) == len(two)
示例#3
0
def test_chart_states_raises_error():
    """Test chart state raises error if state dict not available."""
    jd = JobData('test')
    with pytest.raises(ValueError):
        jd.chart_states()