import platform
import pytest


@pytest.mark.skipif(platform.system().lower() == 'windows',
                    reason='celery service test won\'t run in windows')
def test_run(scheduler, django_schedule):
    scheduler.set_task()
    scheduler.celery_task.delay(django_schedule.id)


def test_add_schedule(scheduler, django_schedule):
    assert(not scheduler.jobs)
    scheduler.add_schedule(django_schedule)
    assert(scheduler.jobs)


def test_remove_schedule(scheduler, django_schedule):
    scheduler.add_schedule(django_schedule)
    assert(scheduler.jobs)
    scheduler.remove_schedule(django_schedule)
    assert(not scheduler.jobs)

@@ -4,164 +4,16 @@
 ort 
-platform%0Aimport pytest%0A%0A%0A@pytest.mark.skipif(platform.system().lower() == 'windows',%0A                    reason='celery service test won%5C't run in windows')
+celery%0A%0A
 %0Adef
@@ -76,24 +76,42 @@
 _task()%0A    
+assert(isinstance(
 scheduler.ce
@@ -123,33 +123,22 @@
 task
-.delay(django_schedule.id
+, celery.Task)
 )%0A%0A%0A

remove celery runtime dependency from tests