def test_north_manage_migrations(mocker, settings, manage):
    if manage is not None:
        settings.NORTH_MANAGE_DB = manage
    if manage is None and hasattr(settings, 'NORTH_MANAGE_DB'):
        del settings.NORTH_MANAGE_DB

    mock = mocker.patch('septentrion.show_migrations', return_value=b'')

    call_command('showmigrations')

    assert mock.called == bool(manage)