Skip to content

Commit

Permalink
Merge pull request pulp#1859 from rbarlow/pep8-client_lib
Browse files Browse the repository at this point in the history
PEP-8 client_lib.
Randy Barlow committed May 19, 2015

Verified

This commit was created on GitHub.com and signed with GitHub’s verified signature.
2 parents 0a33302 + c7c99cd commit 014b351
Showing 7 changed files with 3 additions and 116 deletions.
Original file line number Diff line number Diff line change
@@ -1,13 +0,0 @@
# -*- coding: utf-8 -*-
#
# Copyright © 2012 Red Hat, Inc.
#
# This software is licensed to you under the GNU General Public
# License as published by the Free Software Foundation; either version
# 2 of the License (GPLv2) or (at your option) any later version.
# There is NO WARRANTY for this software, express or implied,
# including the implied warranties of MERCHANTABILITY,
# NON-INFRINGEMENT, or FITNESS FOR A PARTICULAR PURPOSE. You should
# have received a copy of GPLv2 along with this software; if not, see
# http://www.gnu.org/licenses/old-licenses/gpl-2.0.txt.

Original file line number Diff line number Diff line change
@@ -1,15 +1,2 @@
# -*- coding: utf-8 -*-
#
# Copyright © 2012 Red Hat, Inc.
#
# This software is licensed to you under the GNU General Public
# License as published by the Free Software Foundation; either version
# 2 of the License (GPLv2) or (at your option) any later version.
# There is NO WARRANTY for this software, express or implied,
# including the implied warranties of MERCHANTABILITY,
# NON-INFRINGEMENT, or FITNESS FOR A PARTICULAR PURPOSE. You should
# have received a copy of GPLv2 along with this software; if not, see
# http://www.gnu.org/licenses/old-licenses/gpl-2.0.txt.

def initialize(context):
raise Exception('Testing exception from initialize')
raise Exception('Testing exception from initialize')
Original file line number Diff line number Diff line change
@@ -1,18 +1,6 @@
# -*- coding: utf-8 -*-
#
# Copyright © 2012 Red Hat, Inc.
#
# This software is licensed to you under the GNU General Public
# License as published by the Free Software Foundation; either version
# 2 of the License (GPLv2) or (at your option) any later version.
# There is NO WARRANTY for this software, express or implied,
# including the implied warranties of MERCHANTABILITY,
# NON-INFRINGEMENT, or FITNESS FOR A PARTICULAR PURPOSE. You should
# have received a copy of GPLv2 along with this software; if not, see
# http://www.gnu.org/licenses/old-licenses/gpl-2.0.txt.

from pulp.client.extensions.extensions import PulpCliSection


def initialize(context):
section = PulpCliSection('section-not-python-module', 'Section Busted')
context.cli.add_section(section)
Original file line number Diff line number Diff line change
@@ -1,13 +0,0 @@
# -*- coding: utf-8 -*-
#
# Copyright © 2012 Red Hat, Inc.
#
# This software is licensed to you under the GNU General Public
# License as published by the Free Software Foundation; either version
# 2 of the License (GPLv2) or (at your option) any later version.
# There is NO WARRANTY for this software, express or implied,
# including the implied warranties of MERCHANTABILITY,
# NON-INFRINGEMENT, or FITNESS FOR A PARTICULAR PURPOSE. You should
# have received a copy of GPLv2 along with this software; if not, see
# http://www.gnu.org/licenses/old-licenses/gpl-2.0.txt.

14 changes: 0 additions & 14 deletions client_lib/test/unit/test_commands_consumer_manage.py
Original file line number Diff line number Diff line change
@@ -1,16 +1,3 @@
# -*- coding: utf-8 -*-
#
# Copyright © 2013 Red Hat, Inc.
#
# This software is licensed to you under the GNU General Public License as
# published by the Free Software Foundation; either version 2 of the License
# (GPLv2) or (at your option) any later version.
# There is NO WARRANTY for this software, express or implied, including the
# implied warranties of MERCHANTABILITY, NON-INFRINGEMENT, or FITNESS FOR A
# PARTICULAR PURPOSE.
# You should have received a copy of GPLv2 along with this software; if not,
# see http://www.gnu.org/licenses/old-licenses/gpl-2.0.txt

import unittest

import mock
@@ -114,4 +101,3 @@ def test_update(self):
self.assertEqual(body['delta']['display_name'], 'Test Consumer')
self.assertEqual(body['delta']['description'], 'Consumer for testing')
self.assertEqual(body['delta']['notes'], {'a': 'a', 'b': 'b'})

15 changes: 0 additions & 15 deletions client_lib/test/unit/test_commands_consumer_query.py
Original file line number Diff line number Diff line change
@@ -1,16 +1,3 @@
# -*- coding: utf-8 -*-
#
# Copyright © 2013 Red Hat, Inc.
#
# This software is licensed to you under the GNU General Public License as
# published by the Free Software Foundation; either version 2 of the License
# (GPLv2) or (at your option) any later version.
# There is NO WARRANTY for this software, express or implied, including the
# implied warranties of MERCHANTABILITY, NON-INFRINGEMENT, or FITNESS FOR A
# PARTICULAR PURPOSE.
# You should have received a copy of GPLv2 along with this software; if not,
# see http://www.gnu.org/licenses/old-licenses/gpl-2.0.txt

import unittest

import mock
@@ -171,5 +158,3 @@ def test_history(self):
self.assertTrue(url.find('sort') < 0)
self.assertTrue(url.find('start_date=2013-02-14') > 0)
self.assertTrue(url.find('end_date') < 0)


35 changes: 1 addition & 34 deletions run-tests.py
Original file line number Diff line number Diff line change
@@ -15,40 +15,7 @@
paths_to_check = [
'agent',
'bindings',
'client_lib/pulp/',
'client_lib/test/data/extensions_loader_tests/individual_fail_extensions/init_error/'
'pulp_cli.py',
'client_lib/test/data/extensions_loader_tests/individual_fail_extensions/no_init_function/'
'pulp_cli.py',
'client_lib/test/data/extensions_loader_tests/valid_set/ext1/pulp_cli.py',
'client_lib/test/data/extensions_loader_tests/valid_set/ext2/__init__.py',
'client_lib/test/data/extensions_loader_tests/valid_set/ext2/pulp_cli.py',
'client_lib/test/data/extensions_loader_tests/valid_set/ext3/pulp_cli.py',
'client_lib/test/data/extensions_loader_tests/partial_fail_set/z_ext/pulp_cli.py',
'client_lib/test/unit/client/commands/consumer/test_bind.py',
'client_lib/test/unit/client/commands/repo/test_cudl.py',
'client_lib/test/unit/client/commands/repo/test_status.py',
'client_lib/test/unit/client/commands/repo/test_sync_publish.py',
'client_lib/test/unit/client/commands/repo/test_upload.py',
'client_lib/test/unit/client/commands/test_polling.py',
'client_lib/test/unit/client/commands/test_unit.py',
'client_lib/test/unit/client/extensions/test_exceptions.py',
'client_lib/test/unit/client/test_launcher.py',
'client_lib/test/unit/test_client_arg_utils.py',
'client_lib/test/unit/test_client_framework_core.py',
'client_lib/test/unit/test_client_upload_manager.py',
'client_lib/test/unit/test_commands_consumer_content.py',
'client_lib/test/unit/test_commands_consumer_content_schedule.py',
'client_lib/test/unit/test_commands_criteria.py',
'client_lib/test/unit/test_commands_history.py',
'client_lib/test/unit/test_commands_importer_config.py',
'client_lib/test/unit/test_commands_remove.py',
'client_lib/test/unit/test_commands_repo_group.py',
'client_lib/test/unit/test_commands_repo_query.py',
'client_lib/test/unit/test_commands_schedule.py',
'client_lib/test/unit/test_extensions_loader.py',
'client_lib/test/unit/test_parsers.py',
'client_lib/test/unit/test_validators.py',
'client_lib',
'repoauth/',
'server/pulp/plugins',
'server/pulp/server/agent/',

0 comments on commit 014b351

Please sign in to comment.