This commit is contained in:
Daniel Ternyak 2019-01-29 16:43:04 -06:00
parent 2deb8c8cfa
commit 25c622360d
No known key found for this signature in database
GPG Key ID: DF212D2DC5D0E245
2 changed files with 2 additions and 3 deletions

View File

@ -143,6 +143,4 @@ class BaseProposalCreatorConfig(BaseUserConfig):
def make_proposal_reminder_task(self):
proposal_reminder = ProposalReminder(self.proposal.id)
proposal_reminder.make_task()
from grant.task.models import Task
print(Task.query.all()[0].__dict__)
proposal_reminder.make_task()

View File

@ -11,6 +11,7 @@ class TestTaskAPI(BaseProposalCreatorConfig):
tasks = Task.query.filter(Task.execute_after <= datetime.now()).filter_by(completed=False).all()
self.assertEqual(tasks, [])
self.make_proposal_reminder_task()
tasks = Task.query.filter(Task.execute_after <= datetime.now()).filter_by(completed=False).all()
self.assertEqual(len(tasks), 1)
def test_proposal_reminder_task_is_marked_completed_after_call(self):