1
0
mirror of https://github.com/bspeice/metrik synced 2025-07-01 22:07:03 -04:00

Switch live to a BoolParameter

Instead of constructor argument
This commit is contained in:
Bradlee Speice
2016-08-23 19:01:09 -04:00
parent 495a491096
commit 49953e9da4
2 changed files with 17 additions and 5 deletions

11
test/tasks/test_base.py Normal file
View File

@ -0,0 +1,11 @@
from unittest import TestCase
from datetime import datetime
from metrik.tasks.base import MongoNoBackCreateTask
class BaseTaskTest(TestCase):
def test_mongo_no_back_live_false(self):
task = MongoNoBackCreateTask(current_datetime=datetime.now())
assert not task.live