Skip to content

Commit

Permalink
fixed import issues
Browse files Browse the repository at this point in the history
  • Loading branch information
josephmancuso committed Nov 29, 2019
1 parent 4d9afb8 commit 271d9ff
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 10 deletions.
7 changes: 4 additions & 3 deletions src/scheduler/commands/ScheduleRunCommand.py
Original file line number Diff line number Diff line change
@@ -1,7 +1,8 @@
""" A ScheduleRunCommand Command """
from cleo import Command
from scheduler.Task import Task
import pendulum
from cleo import Command

from ..Task import Task


class ScheduleRunCommand(Command):
Expand All @@ -15,7 +16,7 @@ class ScheduleRunCommand(Command):
def handle(self):
from wsgi import container as app
tasks = app.collect(Task)

for task_key, task_class in tasks.items():
# Resolve the task with the container
if self.option('task') != 'None':
Expand Down
6 changes: 0 additions & 6 deletions tests/test_basic.py

This file was deleted.

2 changes: 1 addition & 1 deletion tests/test_scheduler.py
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
import pytest
import pendulum
from scheduler.Task import Task
from src.scheduler.Task import Task

class MockTask(Task):
run_every = '5 minutes'
Expand Down

0 comments on commit 271d9ff

Please sign in to comment.