From 23e124721c17f94a452617af3c246baffd08df5c Mon Sep 17 00:00:00 2001 From: Cayo Puigdefabregas Date: Thu, 26 Nov 2020 19:21:35 +0100 Subject: [PATCH] fixing metrics --- tests/test_metrics.py | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/tests/test_metrics.py b/tests/test_metrics.py index 99020641..882c1d8c 100644 --- a/tests/test_metrics.py +++ b/tests/test_metrics.py @@ -16,7 +16,7 @@ def test_simple_metrics(user: UserClient): user.post(lenovo, res=ma.Snapshot) snapshot, _ = user.post(acer, res=ma.Snapshot) device_id = snapshot['device']['id'] - post_request = {"Transaction": "ccc", "name": "John", "end_users": 1, + post_request = {"transaction": "ccc", "name": "John", "end_users": 1, "devices": [device_id], "description": "aaa", "start_time": "2020-11-01T02:00:00+00:00", "end_time": "2020-12-01T02:00:00+00:00" @@ -58,7 +58,7 @@ def test_second_hdd_metrics(user: UserClient): acer = file('acer.happy.battery.snapshot') snapshot, _ = user.post(acer, res=ma.Snapshot) device_id = snapshot['device']['id'] - post_request = {"Transaction": "ccc", "name": "John", "end_users": 1, + post_request = {"transaction": "ccc", "name": "John", "end_users": 1, "devices": [device_id], "description": "aaa", "start_time": "2020-11-01T02:00:00+00:00", "end_time": "2020-12-01T02:00:00+00:00" @@ -99,7 +99,7 @@ def test_metrics_with_live_null(user: UserClient): acer = file('acer.happy.battery.snapshot') snapshot, _ = user.post(acer, res=ma.Snapshot) device_id = snapshot['device']['id'] - post_request = {"Transaction": "ccc", "name": "John", "end_users": 1, + post_request = {"transaction": "ccc", "name": "John", "end_users": 1, "devices": [device_id], "description": "aaa", "start_time": "2020-11-01T02:00:00+00:00", "end_time": "2020-12-01T02:00:00+00:00"