Try `@patch('lib.l10n_utils.dotlang.settings.DEV', False)`