예제 #1
0
def test_write_with_dml_transaction(capsys, instance_id, sample_database):
    snippets.write_with_dml_transaction(instance_id,
                                        sample_database.database_id)
    out, _ = capsys.readouterr()
    assert "Transferred 200000 from Album2's budget to Album1's" in out
예제 #2
0
def test_write_with_dml_transaction(capsys):
    snippets.write_with_dml_transaction(INSTANCE_ID, DATABASE_ID)
    out, _ = capsys.readouterr()
    assert "Transferred 200000 from Album2's budget to Album1's" in out
def test_write_with_dml_transaction(capsys):
    snippets.write_with_dml_transaction(INSTANCE_ID, DATABASE_ID)
    out, _ = capsys.readouterr()
    assert "Transferred 300000 from Album1's budget to Album2's" in out