Esempio n. 1
0
def test_query_data_with_float(capsys):
    snippets.query_data_with_float(INSTANCE_ID, DATABASE_ID)
    out, _ = capsys.readouterr()
    assert 'VenueId: 4, VenueName: Venue 4, PopularityScore: 0.8' in out
    assert 'VenueId: 19, VenueName: Venue 19, PopularityScore: 0.9' in out
Esempio n. 2
0
def test_query_data_with_float(capsys, instance_id, sample_database):
    snippets.query_data_with_float(instance_id, sample_database.database_id)
    out, _ = capsys.readouterr()
    assert "VenueId: 4, VenueName: Venue 4, PopularityScore: 0.8" in out
    assert "VenueId: 19, VenueName: Venue 19, PopularityScore: 0.9" in out