Example #1
0
def test_html_export_release_disabled(mocker, event):
    mocker.patch('django.core.management.call_command')

    event.settings.export_html_on_schedule_release = False
    event.wip_schedule.freeze(name="ohaio means hello")

    from django.core.management import call_command
    call_command.assert_not_called()
def test_html_export_release_disabled(mocker, event):
    mocker.patch('django.core.management.call_command')

    from django.core.management import call_command  # Import here to avoid overriding mocks

    with scope(event=event):
        event.settings.export_html_on_schedule_release = False
        event.wip_schedule.freeze(name="ohaio means hello")

    call_command.assert_not_called()