From e92f64d88dd8056b31b0d63ac2fb4dddcf9da2e5 Mon Sep 17 00:00:00 2001 From: JNadeu Date: Thu, 11 Oct 2018 18:19:33 +0200 Subject: [PATCH] Add test_reports file --- tests/test_reports.py | 16 ++++++++++++++++ 1 file changed, 16 insertions(+) create mode 100644 tests/test_reports.py diff --git a/tests/test_reports.py b/tests/test_reports.py new file mode 100644 index 00000000..832df0be --- /dev/null +++ b/tests/test_reports.py @@ -0,0 +1,16 @@ +from ereuse_devicehub.client import UserClient +from ereuse_devicehub.resources.device.models import Device +from ereuse_devicehub.resources.event.models import Snapshot +from tests.conftest import file + + +def test_export(user: UserClient): + snapshot, _ = user.post(file('basic.snapshot'), res=Snapshot) + device_id = snapshot['device']['id'] + + + + spreadsheet, _ = user.get(res=Device, accept='text/csv') + csv.reader() + assert + # import csv mirar com la lib python treballa