Skip to content

Commit a9311ff

Browse files
committed
⚡👇
1 parent 33aeae2 commit a9311ff

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

ImageCharts.test.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -41,7 +41,7 @@ def test__rejects_if_a_chs_is_not_defined(self):
4141

4242

4343
def test__rejects_if_a_icac_is_defined_without_ichm(self):
44-
with self.assertRaisesRegex(Exception, 'IC_MISSING_ENT_PARAMETER'):
44+
with self.assertRaisesRegex(Exception, 'HMAC-SHA256 request signature'):
4545
ImageCharts().cht('p').chd('t:1,2,3').chs('100x100').icac('test_fixture').to_binary()
4646

4747
def test__rejects_if_timeout_is_reached(self):
@@ -66,7 +66,7 @@ def test__forwards_package_name_version_icac_as_user_agent(self):
6666
self.assertEqual(chart.request_headers['user-agent'], 'python-image-charts/latest (MY_ACCOUNT_ID)')
6767

6868
def test__throw_error_if_account_not_found(self):
69-
with self.assertRaisesRegex(Exception, 'IC_ACCOUNT_ID_NOT_FOUND'):
69+
with self.assertRaisesRegex(Exception, 'ACCOUND_ID not found, you must be an Image-Charts subscriber'):
7070
ImageCharts({'secret' : 'plop'}).cht('p').chd('t:1,2,3').chs('10x10').icac('MY_ACCOUNT_ID').to_binary()
7171

7272
def test__rejects_if_there_was_an_error(self):

0 commit comments

Comments
 (0)
pFad - Phonifier reborn

Pfad - The Proxy pFad of © 2024 Garber Painting. All rights reserved.

Note: This service is not intended for secure transactions such as banking, social media, email, or purchasing. Use at your own risk. We assume no liability whatsoever for broken pages.


Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy