def test_list_metrics_no_color_smoke(print_mock): main(['--color', 'never']) assert all([ '\033' not in call[0][0] for call in print_mock.call_args_list ])
def test_list_metrics_smoke(print_mock): # This test is just to make sure that it doesn't fail catastrophically main([]) assert print_mock.called
def test_list_metrics_no_color_smoke(print_mock): main(['--color', 'never']) calls_args = [call[0][0] for call in print_mock.call_args_list] assert all(['\033' not in calls_args])
def test_list_metrics_smoke(capsys): # This test is just to make sure that it doesn't fail catastrophically main([]) assert capsys.readouterr().out
def test_list_metrics_no_color_smoke(capsys): main(['--color', 'never']) out, err = capsys.readouterr() assert '\033' not in out assert '\033' not in err