def test_query_data_with_query_options(capsys, instance_id, sample_database): snippets.query_data_with_query_options(instance_id, sample_database.database_id) out, _ = capsys.readouterr() assert "VenueId: 4, VenueName: Venue 4, LastUpdateTime:" in out assert "VenueId: 19, VenueName: Venue 19, LastUpdateTime:" in out assert "VenueId: 42, VenueName: Venue 42, LastUpdateTime:" in out
def test_query_data_with_query_options(capsys): snippets.query_data_with_query_options(INSTANCE_ID, DATABASE_ID) out, _ = capsys.readouterr() assert 'VenueId: 4, VenueName: Venue 4, LastUpdateTime:' in out assert 'VenueId: 19, VenueName: Venue 19, LastUpdateTime:' in out assert 'VenueId: 42, VenueName: Venue 42, LastUpdateTime:' in out