Ejemplo n.º 1
0
def test_query_data_with_parameter(capsys):
    snippets.query_data_with_parameter(INSTANCE_ID, DATABASE_ID)
    out, _ = capsys.readouterr()
    assert 'SingerId: 12, FirstName: Melissa, LastName: Garcia' in out
Ejemplo n.º 2
0
def test_query_data_with_parameter(capsys, instance_id, sample_database):
    snippets.query_data_with_parameter(instance_id,
                                       sample_database.database_id)
    out, _ = capsys.readouterr()
    assert "SingerId: 12, FirstName: Melissa, LastName: Garcia" in out