# Path: kibitzr/timeline.py
# class Timeline(object):
#     RE_TIME = re.compile(r'\d?\d:\d\d')
#     def __init__(self, scheduler=None):
#     def parse_check(cls, check):
#     def _clean_single_schedule(cls, check, schedule_dict):
#     def _clean_unit(check, unit):
#     def _clean_at(cls, check, at):
#     def schedule_checks(self, checkers):
# def parse_check(check):
# def run_pending():
# def schedule_checks(checkers):


import pytest
from freezegun import freeze_time
from kibitzr.timeline import Timeline, TimelineRule
from kibitzr.exceptions import ConfigurationError



def test_dummy_schedule(app, settings, check_noop):
    check_noop.side_effect = interrupt_on_nth_call(app, 2)
    settings.checks.append({
        'name': 'A',
        'script': {'python': 'ok, content = True, "ok"'},

# Path: kibitzr/timeline.py
# class Timeline(object):
#     RE_TIME = re.compile(r'\d?\d:\d\d')
#     def __init__(self, scheduler=None):
#     def parse_check(cls, check):
#     def _clean_single_schedule(cls, check, schedule_dict):
#     def _clean_unit(check, unit):
#     def _clean_at(cls, check, at):
#     def schedule_checks(self, checkers):
# def parse_check(check):
# def run_pending():
# def schedule_checks(checkers):


# Path: tests/unit/test_timeline.py
import pytest
from freezegun import freeze_time
from kibitzr.timeline import Timeline, TimelineRule
from kibitzr.exceptions import ConfigurationError




def test_dummy_schedule(app, settings, check_noop):
    check_noop.side_effect = interrupt_on_nth_call(app, 2)
    settings.checks.append({
        'name': 'A',
        'script': {'python': 'ok, content = True, "ok"'},

        'schedule': [TimelineRule(interval=0, unit='seconds', at=None)],