diff --git a/awx/fact/tests/models/fact/fact_get_single_facts.py b/awx/fact/tests/models/fact/fact_get_single_facts.py index f305dc7c51..9329f0d653 100644 --- a/awx/fact/tests/models/fact/fact_get_single_facts.py +++ b/awx/fact/tests/models/fact/fact_get_single_facts.py @@ -55,7 +55,7 @@ class FactGetSingleFactsTest(BaseFactTest): self.fact_data = [] self.fact_objs = [] self.hostnames = [] - for i in range(1, host_count+1): + for i in range(1, host_count + 1): fact_data = deepcopy(TEST_FACT_DATA) fact_data['hostname'] = fact_data['hostname'] % (i) fact_data['add_fact_data']['timestamp'] = datetime.now().replace(year=2015 - i) diff --git a/awx/fact/tests/models/fact/fact_simple.py b/awx/fact/tests/models/fact/fact_simple.py index e61a613cca..9103416c22 100644 --- a/awx/fact/tests/models/fact/fact_simple.py +++ b/awx/fact/tests/models/fact/fact_simple.py @@ -10,7 +10,6 @@ from copy import deepcopy # AWX from awx.fact.models.fact import * # noqa -from awx.main.tests.base import BaseTest, MongoDBRequired from .base import BaseFactTest __all__ = ['FactHostTest', 'FactTest', 'FactGetHostVersionTest', 'FactGetHostTimelineTest'] diff --git a/awx/main/management/commands/cleanup_jobs.py b/awx/main/management/commands/cleanup_jobs.py index 574f3c0069..e76d72109d 100644 --- a/awx/main/management/commands/cleanup_jobs.py +++ b/awx/main/management/commands/cleanup_jobs.py @@ -66,8 +66,8 @@ class Command(NoArgsCommand): def cleanup_ad_hoc_commands(self): for ad_hoc_command in AdHocCommand.objects.all(): ad_hoc_command_display = '"%s" (started %s, %d events)' % \ - (unicode(ad_hoc_command), unicode(ad_hoc_command.created), - ad_hoc_command.ad_hoc_command_events.count()) + (unicode(ad_hoc_command), unicode(ad_hoc_command.created), + ad_hoc_command.ad_hoc_command_events.count()) if ad_hoc_command.status in ('pending', 'waiting', 'running'): action_text = 'would skip' if self.dry_run else 'skipping' self.logger.debug('%s %s ad hoc command %s', action_text, ad_hoc_command.status, ad_hoc_command_display)