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()
def get_dones(ds): ns = 'roundup_load_{}_dones'.format(roundup.dataset.getDatasetId(ds)) return dones.get(ns)
def _get_dones(ns): return dones.get(ns)