Beispiel #1
0
def test_query_data_with_int(capsys):
    snippets.query_data_with_int(INSTANCE_ID, DATABASE_ID)
    out, _ = capsys.readouterr()
    assert 'VenueId: 19, VenueName: Venue 19, Capacity: 6300' in out
    assert 'VenueId: 42, VenueName: Venue 42, Capacity: 3000' in out
Beispiel #2
0
def test_query_data_with_int(capsys, instance_id, sample_database):
    snippets.query_data_with_int(instance_id, sample_database.database_id)
    out, _ = capsys.readouterr()
    assert "VenueId: 19, VenueName: Venue 19, Capacity: 6300" in out
    assert "VenueId: 42, VenueName: Venue 42, Capacity: 3000" in out