@pytest.mark.parametrize('switch', [(lambda settings: setattr(settings, 'EMAIL_ENABLED', False))])
def test_kill_switch(owl, switch, settings):
    switch(settings)
    owl.send()
    assert (len(mail.outbox) == 0)
@pytest.mark.parametrize('switch', [(lambda settings: setattr(settings, 'EMAIL_ENABLED', False))])
def test_kill_switch(owl, switch, settings):
    switch(settings)
    owl.send()
    assert (len(mail.outbox) == 0)