From a86230d9e7b66580a2e2c5d553acfc2e53361abc Mon Sep 17 00:00:00 2001 From: oscgonfer Date: Wed, 27 Nov 2024 13:19:04 +0100 Subject: [PATCH] Remove resp.text on all tests --- tests/all/devices/test_csv_device_all.py | 6 +++--- tests/all/test/test_sc_test_all.py | 2 +- tests/cross-version/devices/test_csv_device.py | 6 +++--- tests/cross-version/devices/test_sc_device.py | 8 ++++---- tests/cross-version/test/test_sc_test.py | 2 +- 5 files changed, 12 insertions(+), 12 deletions(-) diff --git a/tests/all/devices/test_csv_device_all.py b/tests/all/devices/test_csv_device_all.py index a80aeb7..45eb815 100644 --- a/tests/all/devices/test_csv_device_all.py +++ b/tests/all/devices/test_csv_device_all.py @@ -33,7 +33,7 @@ def test_csv_device_all(): m = d.data.index[0].tz_convert('UTC').strftime('%Y-%m-%dT%H:%M:%SZ') process_status = d.process() - assert d.blueprint == blueprint, resp.text - assert load_status == True, resp.text - assert process_status == True, resp.text + assert d.blueprint == blueprint + assert load_status == True + assert process_status == True assert m == min_date diff --git a/tests/all/test/test_sc_test_all.py b/tests/all/test/test_sc_test_all.py index 38a7677..d88cc6a 100644 --- a/tests/all/test/test_sc_test_all.py +++ b/tests/all/test/test_sc_test_all.py @@ -51,6 +51,6 @@ def test_sc_test_all(): assert t.loaded == True assert metric_in_df == True for device in t.devices: - assert (localise_date(min_date, 'UTC') < device.data.index[0]), resp.text + assert (localise_date(min_date, 'UTC') < device.data.index[0]) assert figure_mpl is not None # assert figure_uplot is not None \ No newline at end of file diff --git a/tests/cross-version/devices/test_csv_device.py b/tests/cross-version/devices/test_csv_device.py index 80e6fdb..ce7e51b 100644 --- a/tests/cross-version/devices/test_csv_device.py +++ b/tests/cross-version/devices/test_csv_device.py @@ -33,7 +33,7 @@ def test_csv_device(): m = d.data.index[0].tz_convert('UTC').strftime('%Y-%m-%dT%H:%M:%SZ') process_status = d.process() - assert d.blueprint == blueprint, resp.text - assert load_status == True, resp.text - assert process_status == True, resp.text + assert d.blueprint == blueprint + assert load_status == True + assert process_status == True assert m == min_date diff --git a/tests/cross-version/devices/test_sc_device.py b/tests/cross-version/devices/test_sc_device.py index 5abb6fa..5983b58 100644 --- a/tests/cross-version/devices/test_sc_device.py +++ b/tests/cross-version/devices/test_sc_device.py @@ -26,8 +26,8 @@ def test_sc_device(): m = d.data.index[0].tz_convert('UTC').strftime('%Y-%m-%dT%H:%M:%SZ') process_status = d.process() - assert d.blueprint == blueprint, resp.text - assert load_status == True, resp.text - assert process_status == True, resp.text - assert j.uuid == uuid, resp.text + assert d.blueprint == blueprint + assert load_status == True + assert process_status == True + assert j.uuid == uuid assert m == min_date diff --git a/tests/cross-version/test/test_sc_test.py b/tests/cross-version/test/test_sc_test.py index 1078438..d25ace4 100644 --- a/tests/cross-version/test/test_sc_test.py +++ b/tests/cross-version/test/test_sc_test.py @@ -36,4 +36,4 @@ def test_sc_test(): assert t.loaded == True assert metric_in_df == True for device in t.devices: - assert (localise_date(min_date, 'UTC') < device.data.index[0]), resp.text \ No newline at end of file + assert (localise_date(min_date, 'UTC') < device.data.index[0]) \ No newline at end of file