summaryrefslogtreecommitdiff
path: root/tests
diff options
context:
space:
mode:
authorÁrni Dagur <arni@dagur.eu>2022-07-18 00:28:30 +0200
committerÁrni Dagur <arni@dagur.eu>2022-07-18 00:42:08 +0200
commit7cc01b838d6332fea3e392c80236138845d61502 (patch)
tree9413b7d50d428508c2eb0255b761177365429630 /tests
parent3fcd327a63ae331e641565db0e178a9a64b4b0dd (diff)
Add aliases argument to Engine.add_resource
Co-Authored-By: Albert Kim <alkim@alkim.org>
Diffstat (limited to 'tests')
-rw-r--r--tests/test_exceptions.py5
1 files changed, 4 insertions, 1 deletions
diff --git a/tests/test_exceptions.py b/tests/test_exceptions.py
index e1c357c..6832c65 100644
--- a/tests/test_exceptions.py
+++ b/tests/test_exceptions.py
@@ -30,6 +30,9 @@ def test_add_resource_error():
30 # } 30 # }
31 # xOO6ww== => base64.b64encode('你好'.encode('gbk')) 31 # xOO6ww== => base64.b64encode('你好'.encode('gbk'))
32 engine.add_resource( 32 engine.add_resource(
33 name="aa", content_type="application/javascript", content="xOO6ww==" 33 name="aa",
34 content_type="application/javascript",
35 content="xOO6ww==",
36 aliases=[],
34 ) 37 )
35 assert "invalid utf content" in str(exc.value) 38 assert "invalid utf content" in str(exc.value)