From 7cc01b838d6332fea3e392c80236138845d61502 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=C3=81rni=20Dagur?= Date: Mon, 18 Jul 2022 00:28:30 +0200 Subject: Add aliases argument to Engine.add_resource Co-Authored-By: Albert Kim --- tests/test_exceptions.py | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) (limited to 'tests') 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(): # } # xOO6ww== => base64.b64encode('你好'.encode('gbk')) engine.add_resource( - name="aa", content_type="application/javascript", content="xOO6ww==" + name="aa", + content_type="application/javascript", + content="xOO6ww==", + aliases=[], ) assert "invalid utf content" in str(exc.value) -- cgit v1.2.3