Example #1
0
def test_module_dones():

    assert not dones.get(TEST_NS).done('foo')
    dones.get(TEST_NS).mark('foo')
    assert dones.get(TEST_NS).done('foo')
    dones.get(TEST_NS).mark('foo')
    assert dones.get(TEST_NS).done('foo')
    dones.get(TEST_NS).unmark('foo')
    assert not dones.get(TEST_NS).done('foo')
    dones.get(TEST_NS).unmark('foo')
    assert not dones.get(TEST_NS).done('foo')
    dones.get(TEST_NS).mark('foo')
    assert dones.get(TEST_NS).done('foo')

    # clean up by removing the table.
    dones.get(TEST_NS).clear()
Example #2
0
def get_dones(ds):
    ns = 'roundup_load_{}_dones'.format(roundup.dataset.getDatasetId(ds))
    return dones.get(ns)
Example #3
0
def _get_dones(ns):
    return dones.get(ns)