From 73c79fc827f5ec879fca68da4c32baa8ad1df076 Mon Sep 17 00:00:00 2001 From: JNadeu Date: Thu, 25 Oct 2018 12:39:33 +0200 Subject: [PATCH] Add todo in tests rate and workbench --- tests/test_rate_workbench_v1.py | 3 ++- tests/test_workbench.py | 1 + 2 files changed, 3 insertions(+), 1 deletion(-) diff --git a/tests/test_rate_workbench_v1.py b/tests/test_rate_workbench_v1.py index da4a0a09..98aac008 100644 --- a/tests/test_rate_workbench_v1.py +++ b/tests/test_rate_workbench_v1.py @@ -217,6 +217,7 @@ def test_rate_processor_with_null_cores(): processor_rate = ProcessorRate().compute(cpu, WorkbenchRate()) + # todo result is not 1 != 1.376 .. check what's wrong assert processor_rate == 1, 'ProcessorRate returns incorrect value(rate)' @@ -230,7 +231,7 @@ def test_rate_processor_with_null_speed(): processor_rate = ProcessorRate().compute(cpu, WorkbenchRate()) - assert processor_rate == 1.06, 'ProcessorRate returns incorrect value(rate)' + assert round(processor_rate, 2) == 1.06, 'ProcessorRate returns incorrect value(rate)' def test_rate_computer_rate(): diff --git a/tests/test_workbench.py b/tests/test_workbench.py index 1b1b7f2a..0cee280a 100644 --- a/tests/test_workbench.py +++ b/tests/test_workbench.py @@ -193,6 +193,7 @@ def test_snapshot_real_eee_1001pxd(user: UserClient): assert rate['type'] == 'AggregateRate' assert rate['biosRange'] == 'C' assert rate['appearance'] > 0 + # todo check why rate func is not > 0 is 0 assert rate['functionality'] > 0 assert rate['rating'] > 0 and rate['rating'] != 1 components = snapshot['components']