Ejemplo n.º 1
0
def test_generate_control_chart(issues, chart):
    create_chart, render_func = chart
    generate_control_chart(issues, create_chart)

    assert render_func.call_count == 1
Ejemplo n.º 2
0
def test_generate_control_chart_errors(tickets, exception, chart):
    create_chart, render_func = chart
    with pytest.raises(exception):
        generate_control_chart(tickets, create_chart)

    assert not render_func.called
Ejemplo n.º 3
0
def test_generate_control_chart_with_no_issues(chart):
    create_chart, render_func = chart
    generate_control_chart([], create_chart)

    assert not render_func.called