Example #1
0
def test_delete_data(capsys, instance_id, sample_database):
    snippets.delete_data(instance_id, sample_database.database_id)
    # put it back for other tests
    snippets.insert_data(instance_id, sample_database.database_id)
    out, _ = capsys.readouterr()
    assert "Deleted data" in out
Example #2
0
def test_delete_data(capsys):
    snippets.delete_data(INSTANCE_ID, DATABASE_ID)
    snippets.insert_data(INSTANCE_ID, DATABASE_ID)
    out, _ = capsys.readouterr()
    assert 'Deleted data' in out
def test_delete_data(capsys):
    snippets.delete_data(INSTANCE_ID, DATABASE_ID)
    snippets.insert_data(INSTANCE_ID, DATABASE_ID)
    out, _ = capsys.readouterr()
    assert 'Deleted data' in out