1
0
mirror of https://github.com/bspeice/metrik synced 2026-06-11 07:41:40 -04:00

And make sure that we return a schedule

Rather than just create it.
This commit is contained in:
Bradlee Speice
2016-08-23 22:47:13 -04:00
parent 53407dad5c
commit 0eb0966729
4 changed files with 18 additions and 2 deletions
+13
View File
@@ -0,0 +1,13 @@
from unittest import TestCase
from datetime import datetime
from metrik.batch import flows
class BatchTest(TestCase):
def test_flows_return_schedule(self):
present = datetime.now()
live = False
for flow_name, flow_class in flows.items():
assert flow_class(present=present,
live=live).get_schedule() is not None