I'm building a small Flask app the runs a job every so often, say once a month. I'm using apschduler
for this. Is there a way to set up a test for this? I'm using py.test.
Something like:
def test_cron(self, app):
wait(months=1)
assert cron_has_run
Any suggestions?
Aucun commentaire:
Enregistrer un commentaire