def test_gold_update_sets_last_update_run(self): number_to_update = 10 now = datetime.datetime.utcnow().isoformat() tiids = updater.gold_update(number_to_update, self.r) item_obj = item_module.Item.query.get(tiids[0]) # can use this method because don't need metrics print now print item_obj.last_update_run assert_greater(item_obj.last_update_run.isoformat(), now)
def test_gold_update(self): number_to_update = 10 tiids = updater.gold_update(number_to_update, self.r) print tiids assert_equals(sorted(tiids), sorted(['tiid2', 'tiid4']))