diff options
author | Caroline Tice <cmtice@google.com> | 2016-04-14 09:19:02 -0700 |
---|---|---|
committer | chrome-bot <chrome-bot@chromium.org> | 2016-04-14 19:01:50 +0000 |
commit | eddb06396dc17fcec418c3aadc234f737b63c876 (patch) | |
tree | 73cc836f4d6faf44b3a682fc5dec45599605d0ee /crosperf/settings_factory_unittest.py | |
parent | eabfd367c30c20ecdf0adb1f0281fc02dca10102 (diff) | |
download | toolchain-utils-eddb06396dc17fcec418c3aadc234f737b63c876.tar.gz |
[crosperf] Fix more lint errors.
BUG=chromium:567921
Test=Tested in my directory.
Change-Id: Ibe128dd030887e0372380fb8f95a5e37ee63feeb
Reviewed-on: https://chrome-internal-review.googlesource.com/255303
Commit-Ready: Caroline Tice <cmtice@google.com>
Tested-by: Caroline Tice <cmtice@google.com>
Reviewed-by: Yunlian Jiang <yunlian@google.com>
Diffstat (limited to 'crosperf/settings_factory_unittest.py')
-rwxr-xr-x | crosperf/settings_factory_unittest.py | 14 |
1 files changed, 7 insertions, 7 deletions
diff --git a/crosperf/settings_factory_unittest.py b/crosperf/settings_factory_unittest.py index 5538e8cc..5df5fd68 100755 --- a/crosperf/settings_factory_unittest.py +++ b/crosperf/settings_factory_unittest.py @@ -1,20 +1,17 @@ -#!/usr/bin/python +#!/usr/bin/python2 # # Copyright 2014 Google Inc. All Rights Reserved. """Unittest for crosperf.""" -import os -import mock +from __future__ import print_function + import unittest import settings_factory -import settings - -from cros_utils import command_executer -from cros_utils import logger class BenchmarkSettingsTest(unittest.TestCase): + """Class to test benchmark settings.""" def test_init(self): res = settings_factory.BenchmarkSettings('b_settings') @@ -27,6 +24,7 @@ class BenchmarkSettingsTest(unittest.TestCase): class LabelSettingsTest(unittest.TestCase): + """Class to test label settings.""" def test_init(self): res = settings_factory.LabelSettings('l_settings') @@ -42,6 +40,7 @@ class LabelSettingsTest(unittest.TestCase): class GlobalSettingsTest(unittest.TestCase): + """Class to test global settings.""" def test_init(self): res = settings_factory.GlobalSettings('g_settings') @@ -71,6 +70,7 @@ class GlobalSettingsTest(unittest.TestCase): class SettingsFactoryTest(unittest.TestCase): + """Class to test SettingsFactory.""" def test_get_settings(self): self.assertRaises(Exception, settings_factory.SettingsFactory.GetSettings, |