From 081a0fc04e0ddf116f191a7355eb32b5f38a1712 Mon Sep 17 00:00:00 2001 From: AlanCoding Date: Tue, 26 Nov 2019 09:45:54 -0500 Subject: [PATCH] fix other assorted sanity failures --- awx_collection/test/awx/conftest.py | 5 +++-- awx_collection/test/awx/test_group.py | 3 +++ awx_collection/test/awx/test_inventory_source.py | 3 +++ 3 files changed, 9 insertions(+), 2 deletions(-) diff --git a/awx_collection/test/awx/conftest.py b/awx_collection/test/awx/conftest.py index 09ff9e78f1..cce48746fb 100644 --- a/awx_collection/test/awx/conftest.py +++ b/awx_collection/test/awx/conftest.py @@ -71,10 +71,11 @@ def run_module(request): resp.status_code = django_response.status_code if request.config.getoption('verbose') > 0: - logger.info('{} {} by {}, code:{}'.format( + logger.info( + '%s %s by %s, code:%s', method, '/api/' + url.split('/api/')[1], request_user.username, resp.status_code - )) + ) return resp diff --git a/awx_collection/test/awx/test_group.py b/awx_collection/test/awx/test_group.py index c5cb12c8d7..59cb68e5f8 100644 --- a/awx_collection/test/awx/test_group.py +++ b/awx_collection/test/awx/test_group.py @@ -1,3 +1,6 @@ +from __future__ import (absolute_import, division, print_function) +__metaclass__ = type + import pytest from awx.main.models import Organization, Inventory, Group diff --git a/awx_collection/test/awx/test_inventory_source.py b/awx_collection/test/awx/test_inventory_source.py index 882156a42f..0b04126a0c 100644 --- a/awx_collection/test/awx/test_inventory_source.py +++ b/awx_collection/test/awx/test_inventory_source.py @@ -1,3 +1,6 @@ +from __future__ import (absolute_import, division, print_function) +__metaclass__ = type + import pytest from awx.main.models import Organization, Inventory, InventorySource, Project