Exemple #1
0
def test_delete_m80():
    import os
    from minus80.Tools import delete
    c = Cohort('DeleteMe')
    dbFile = c._get_dbpath('db.sqlite')
    assert os.path.exists(dbFile) == True
    delete('Cohort', 'DeleteMe', force=True)
    assert os.path.exists(dbFile) == False
Exemple #2
0
def test_delete_m80():
    import os
    from minus80.Tools import delete
    c = Cohort('DeleteMe')
    dbFile = c._get_dbpath('db.sqlite')
    assert os.path.exists(dbFile) == True
    delete('Cohort','DeleteMe',force=True)
    assert os.path.exists(dbFile) == False
Exemple #3
0
def test_delete_missing():
    import os
    from minus80.Tools import delete
    c = Cohort('DeleteMe')
    dbFile = c._get_dbpath('db.sqlite')
    assert os.path.exists(dbFile) == True
    # Giving the wrong information shouldnt do anything
    delete('Cohort','DeleteMeee',force=True)
    assert os.path.exists(dbFile) == True
    delete('Cohort','DeleteMe',force=True)
    assert os.path.exists(dbFile) == False
Exemple #4
0
def test_delete_missing():
    import os
    from minus80.Tools import delete
    c = Cohort('DeleteMe')
    dbFile = c._get_dbpath('db.sqlite')
    assert os.path.exists(dbFile) == True
    # Giving the wrong information shouldnt do anything
    delete('Cohort', 'DeleteMeee', force=True)
    assert os.path.exists(dbFile) == True
    delete('Cohort', 'DeleteMe', force=True)
    assert os.path.exists(dbFile) == False