diff --git a/analytics/fuel_analytics/test/api/resources/utils/inst_structure_test.py b/analytics/fuel_analytics/test/api/resources/utils/inst_structure_test.py old mode 100644 new mode 100755 index cda6807..e9d9c9f --- a/analytics/fuel_analytics/test/api/resources/utils/inst_structure_test.py +++ b/analytics/fuel_analytics/test/api/resources/utils/inst_structure_test.py @@ -18,6 +18,7 @@ from datetime import datetime from datetime import timedelta import random import six +from six.moves import xrange import uuid from fuel_analytics.test.base import BaseTest diff --git a/collector/collector/api/common/util.py b/collector/collector/api/common/util.py old mode 100644 new mode 100755 index a48770a..83ae938 --- a/collector/collector/api/common/util.py +++ b/collector/collector/api/common/util.py @@ -19,6 +19,7 @@ from functools import wraps import jsonschema import math import six +from six.moves import xrange from sqlalchemy import and_ from sqlalchemy import or_ diff --git a/collector/collector/test/common/test_util.py b/collector/collector/test/common/test_util.py old mode 100644 new mode 100755 index 7d82c8e..f27ad35 --- a/collector/collector/test/common/test_util.py +++ b/collector/collector/test/common/test_util.py @@ -17,6 +17,7 @@ from collector.test.base import BaseTest from collector.api.common.util import build_index from collector.api.common.util import get_index from collector.api.common.util import split_collection +from six.moves import xrange class Indexed(object): diff --git a/collector/collector/test/resources/test_action_logs.py b/collector/collector/test/resources/test_action_logs.py old mode 100644 new mode 100755 index 8d0b284..75b975a --- a/collector/collector/test/resources/test_action_logs.py +++ b/collector/collector/test/resources/test_action_logs.py @@ -20,6 +20,7 @@ from collector.test.base import DbTest from collector.api.app import db from collector.api.common import consts from collector.api.db.model import ActionLog +from six.moves import xrange class TestActionLogs(DbTest): diff --git a/collector/collector/test/resources/test_oswl_stats.py b/collector/collector/test/resources/test_oswl_stats.py old mode 100644 new mode 100755 index 78ff346..17ed91f --- a/collector/collector/test/resources/test_oswl_stats.py +++ b/collector/collector/test/resources/test_oswl_stats.py @@ -22,6 +22,7 @@ from collector.api.app import db from collector.api.common import consts from collector.api.common import util from collector.api.db.model import OpenStackWorkloadStats as OSWL +from six.moves import xrange class TestOswlStats(DbTest): diff --git a/collector/collector/test/templates/create_bullets.py b/collector/collector/test/templates/create_bullets.py old mode 100644 new mode 100755 index bb18e55..2fd5c03 --- a/collector/collector/test/templates/create_bullets.py +++ b/collector/collector/test/templates/create_bullets.py @@ -20,6 +20,7 @@ import sys from requests import ActionLogRequestTemplate from requests import InstallationRequestTemplate from requests import OSwLRequestTemplate +from six.moves import xrange class Settings(object): diff --git a/collector/collector/test/templates/requests.py b/collector/collector/test/templates/requests.py old mode 100644 new mode 100755 index 7b03193..016024d --- a/collector/collector/test/templates/requests.py +++ b/collector/collector/test/templates/requests.py @@ -17,6 +17,7 @@ import json import random from bisect import bisect +from six.moves import xrange class BaseRequestTemplate(object): diff --git a/migration/migration/test/base.py b/migration/migration/test/base.py old mode 100644 new mode 100755 index 32b3416..8c79bb1 --- a/migration/migration/test/base.py +++ b/migration/migration/test/base.py @@ -30,6 +30,7 @@ from migration.db import engine from migration.migrator import Migrator from migration.model import ActionLog from migration.model import InstallationStructure +from six.moves import xrange class BaseTest(TestCase): diff --git a/migration/migration/test/test_migrator.py b/migration/migration/test/test_migrator.py old mode 100644 new mode 100755 index 757cb03..deaf42f --- a/migration/migration/test/test_migrator.py +++ b/migration/migration/test/test_migrator.py @@ -22,6 +22,7 @@ from migration.test.base import MigrationTest from migration.migrator import Migrator from migration.model import ActionLog as AL from migration.model import InstallationStructure as IS +from six.moves import xrange class MigratorTest(MigrationTest):