Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(205)

Unified Diff: tools/telemetry/telemetry/core/platform/power_monitor/monsoon_power_monitor_unittest.py

Issue 739623005: [Telemetry] Resolve errors due to new pylint checker. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: ready to land Created 6 years, 1 month ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
Index: tools/telemetry/telemetry/core/platform/power_monitor/monsoon_power_monitor_unittest.py
diff --git a/tools/telemetry/telemetry/core/platform/power_monitor/monsoon_power_monitor_unittest.py b/tools/telemetry/telemetry/core/platform/power_monitor/monsoon_power_monitor_unittest.py
index 433797efd9ea5907aebfdfbcceddccbca2375907..bec218965f8b1dceb26b3dfd1ca041cc6d1e9397 100644
--- a/tools/telemetry/telemetry/core/platform/power_monitor/monsoon_power_monitor_unittest.py
+++ b/tools/telemetry/telemetry/core/platform/power_monitor/monsoon_power_monitor_unittest.py
@@ -9,10 +9,11 @@ from telemetry.core.platform.power_monitor import monsoon_power_monitor
class MonsoonPowerMonitorTest(unittest.TestCase):
+
def testEnergyComsumption(self):
data = {
- 'duration_s': 3600.0,
- 'samples': [(1.0,1.0), (2.0,2.0), (3.0,3.0), (4.0,4.0)]
+ 'duration_s': 3600.0,
+ 'samples': [(1.0, 1.0), (2.0, 2.0), (3.0, 3.0), (4.0, 4.0)]
}
results = monsoon_power_monitor.MonsoonPowerMonitor.ParseSamplingOutput(
json.dumps(data))

Powered by Google App Engine
This is Rietveld 408576698