Example #1
0
    def _():
        snippets.write_struct_data(
            SPANNER_INSTANCE,
            temporary_database.database_id)
        snippets.query_with_struct(
            SPANNER_INSTANCE,
            temporary_database.database_id)
        out, _ = capsys.readouterr()

        assert 'SingerId: 6' in out
    def _():
        snippets.write_struct_data(
            SPANNER_INSTANCE,
            temporary_database.database_id)
        snippets.query_with_struct(
            SPANNER_INSTANCE,
            temporary_database.database_id)
        out, _ = capsys.readouterr()

        assert 'SingerId: 6' in out
Example #3
0
def test_query_with_struct(capsys):
    snippets.query_with_struct(INSTANCE_ID, DATABASE_ID)
    out, _ = capsys.readouterr()
    assert 'SingerId: 6' in out
Example #4
0
def test_query_with_struct(capsys, instance_id, sample_database):
    snippets.query_with_struct(instance_id, sample_database.database_id)
    out, _ = capsys.readouterr()
    assert "SingerId: 6" in out
def test_query_with_struct(capsys):
    snippets.query_with_struct(INSTANCE_ID, DATABASE_ID)
    out, _ = capsys.readouterr()
    assert 'SingerId: Elena'