def _(): snippets.write_struct_data( SPANNER_INSTANCE, temporary_database.database_id) snippets.query_struct_field( 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_struct_field( SPANNER_INSTANCE, temporary_database.database_id) out, _ = capsys.readouterr() assert 'SingerId: 6' in out
def test_query_struct_field(capsys): snippets.query_struct_field(INSTANCE_ID, DATABASE_ID) out, _ = capsys.readouterr() assert 'SingerId: 6' in out
def test_query_struct_field(capsys, instance_id, sample_database): snippets.query_struct_field(instance_id, sample_database.database_id) out, _ = capsys.readouterr() assert "SingerId: 6" in out
def test_query_struct_field(capsys): snippets.query_struct_field(INSTANCE_ID, DATABASE_ID) out, _ = capsys.readouterr() assert 'SingerId: 6' in out