Skip to content

Commit

Permalink
Remove resp.text on all tests
Browse files Browse the repository at this point in the history
  • Loading branch information
oscgonfer committed Nov 27, 2024
1 parent 62b02da commit a86230d
Show file tree
Hide file tree
Showing 5 changed files with 12 additions and 12 deletions.
6 changes: 3 additions & 3 deletions tests/all/devices/test_csv_device_all.py
Original file line number Diff line number Diff line change
Expand Up @@ -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
2 changes: 1 addition & 1 deletion tests/all/test/test_sc_test_all.py
Original file line number Diff line number Diff line change
Expand Up @@ -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
6 changes: 3 additions & 3 deletions tests/cross-version/devices/test_csv_device.py
Original file line number Diff line number Diff line change
Expand Up @@ -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
8 changes: 4 additions & 4 deletions tests/cross-version/devices/test_sc_device.py
Original file line number Diff line number Diff line change
Expand Up @@ -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
2 changes: 1 addition & 1 deletion tests/cross-version/test/test_sc_test.py
Original file line number Diff line number Diff line change
Expand Up @@ -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
assert (localise_date(min_date, 'UTC') < device.data.index[0])

0 comments on commit a86230d

Please sign in to comment.