mirror of
https://github.com/bspeice/metrik
synced 2026-06-11 07:41:40 -04:00
Switch live to a BoolParameter
Instead of constructor argument
This commit is contained in:
@@ -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
|
||||
Reference in New Issue
Block a user