Skip to content

Commit 389006a

Browse files
committed
Add test cases for checking content decoding (#791)
1 parent 6cf0a21 commit 389006a

File tree

2 files changed

+4
-2
lines changed

2 files changed

+4
-2
lines changed
Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1 +1,2 @@
11
This is a sample evaluation report.html.
2+
Standard deviation (σ)

tests/unitary/with_extras/aqua/test_evaluation.py

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -624,9 +624,10 @@ def test_download_report(
624624
mock_dsc_model_from_id.assert_called_with(TestDataset.EVAL_ID)
625625
self.print_expected_response(response, "DOWNLOAD REPORT")
626626
self.assert_payload(response, AquaEvalReport)
627-
read_content = base64.b64decode(response.content)
627+
read_content = base64.b64decode(response.content).decode()
628628
assert (
629-
read_content == b"This is a sample evaluation report.html.\n"
629+
read_content
630+
== "This is a sample evaluation report.html.\nStandard deviation (σ)\n"
630631
), read_content
631632
assert self.app._report_cache.currsize == 1
632633

0 commit comments

Comments
 (0)