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:
11
test/tasks/test_base.py
Normal file
11
test/tasks/test_base.py
Normal 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
|
Reference in New Issue
Block a user