def test_list_time_series_reduce(capsys, write_time_series): snippets.list_time_series_reduce(PROJECT_ID) out, _ = capsys.readouterr() assert 'points' in out assert 'interval' in out assert 'start_time' in out assert 'end_time' in out
def test_list_time_series_reduce(capsys, write_time_series): snippets.list_time_series_reduce(PROJECT_ID) out, _ = capsys.readouterr() assert "points" in out assert "interval" in out assert "start_time" in out assert "end_time" in out
def test_time_series(capsys): snippets.write_time_series() snippets.list_time_series() out, _ = capsys.readouterr() assert 'TimeSeries with' in out snippets.list_time_series_header() out, _ = capsys.readouterr() assert 'TimeSeries with' in out snippets.list_time_series_aggregate() out, _ = capsys.readouterr() assert 'TimeSeries with' in out snippets.list_time_series_reduce() out, _ = capsys.readouterr() assert 'TimeSeries with' in out
def test_time_series(capsys): snippets.write_time_series(snippets.project_id()) snippets.list_time_series(snippets.project_id()) out, _ = capsys.readouterr() assert 'gce_instance' in out snippets.list_time_series_header(snippets.project_id()) out, _ = capsys.readouterr() assert 'gce_instance' in out snippets.list_time_series_aggregate(snippets.project_id()) out, _ = capsys.readouterr() assert 'points' in out assert 'interval' in out assert 'start_time' in out assert 'end_time' in out snippets.list_time_series_reduce(snippets.project_id()) out, _ = capsys.readouterr() assert 'points' in out assert 'interval' in out assert 'start_time' in out assert 'end_time' in out