def _(): snippets.query_data_with_timestamp(SPANNER_INSTANCE, temporary_database.database_id) out, _ = capsys.readouterr() assert 'Go, Go, Go' in out
def _(): snippets.query_data_with_timestamp( SPANNER_INSTANCE, temporary_database.database_id) out, _ = capsys.readouterr() assert 'Go, Go, Go' in out
def test_query_data_with_timestamp(capsys): snippets.query_data_with_timestamp(INSTANCE_ID, DATABASE_ID) out, _ = capsys.readouterr() assert 'SingerId: 1, AlbumId: 1, MarketingBudget: 1000000' in out assert 'SingerId: 2, AlbumId: 2, MarketingBudget: 750000' in out
def test_query_data_with_timestamp(capsys, instance_id, sample_database): snippets.query_data_with_timestamp(instance_id, sample_database.database_id) out, _ = capsys.readouterr() assert "SingerId: 1, AlbumId: 1, MarketingBudget: 1000000" in out assert "SingerId: 2, AlbumId: 2, MarketingBudget: 750000" in out
def test_query_data_with_timestamp(capsys): snippets.query_data_with_timestamp(INSTANCE_ID, DATABASE_ID) out, _ = capsys.readouterr() assert 'SingerId: 1, AlbumId: 1, MarketingBudget: 1000000' in out assert 'SingerId: 2, AlbumId: 2, MarketingBudget: 750000' in out