# Path: tests/compat.py



from ..compat import mock


def test_loop_aborts_without_checks(app, settings):
    assert app.run() == 1


def test_main_executes_all_checks_before_loop(app, settings):

# Path: tests/compat.py



# Path: tests/unit/test_app.py
from ..compat import mock



def test_loop_aborts_without_checks(app, settings):
    assert app.run() == 1


def test_main_executes_all_checks_before_loop(app, settings):

    with mock.patch.object(app, "check_forever", side_effect=app.on_interrupt) as the_loop: