Ë
    ]jñ	  ã                   ó&   — d dl mZ  G d„ de«      Zy)é    )ÚScriptExtensionTestBasec                   ó0   — e Zd Zd„ Zd„ Zd„ Zd„ Zd„ Zd„ Zy)ÚTestJinjaExtensionc                 óJ   — d}d} | j                   | j                  ||«      Ž  y )Nza
            {% script %}
                var hello='world';
            {% endscript %}
        z.<script nonce="{}">var hello='world';</script>©Úassert_template_eqÚprocess_templates©ÚselfÚtplÚexpecteds      úH/root/env/lib/python3.12/site-packages/csp/tests/test_jinja_extension.pyÚtest_script_tag_injects_noncez0TestJinjaExtension.test_script_tag_injects_nonce   s.   € ðˆð IˆØˆ×Ñ ×!7Ñ!7¸¸XÓ!FÒGó    c                 óJ   — d}d} | j                   | j                  ||«      Ž  y )Nzk
            {% script src="foo" %}
                var hello='world';
            {% endscript %}
        z&<script nonce="{}" src="foo"></script>r   r
   s      r   Ú!test_script_with_src_ignores_bodyz4TestJinjaExtension.test_script_with_src_ignores_body   s.   € ðˆð @ˆàˆ×Ñ ×!7Ñ!7¸¸XÓ!FÒGr   c                 óJ   — d}d} | j                   | j                  ||«      Ž  y )Nzz
            {% script id='jeff' defer=True %}
                var hello='world';
            {% endscript %}
            zi
            <script nonce="{}" id="jeff" defer>
                var hello='world';
            </script>r   r
   s      r   Ú$test_script_tag_sets_attrs_correctlyz7TestJinjaExtension.test_script_tag_sets_attrs_correctly   s/   € ðˆð
ˆð
 	 ˆ×Ñ ×!7Ñ!7¸¸XÓ!FÒGr   c                 óJ   — d}d} | j                   | j                  ||«      Ž  y )Nzn
            {% script id="jeff" async=False %}
                var hello='world';
            {% endscript %}zD<script nonce="{}" id="jeff" async=false>var hello='world';</script>r   r
   s      r   Ú test_async_attribute_with_falseyz3TestJinjaExtension.test_async_attribute_with_falsey(   ó/   € ðˆð
 ˆð 	 ˆ×Ñ ×!7Ñ!7¸¸XÓ!FÒGr   c                 óJ   — d}d} | j                   | j                  ||«      Ž  y )Nzm
            {% script id="jeff" async=True %}
                var hello='world';
            {% endscript %}z><script nonce="{}" id="jeff" async>var hello='world';</script>r   r
   s      r   Ú test_async_attribute_with_truthyz3TestJinjaExtension.test_async_attribute_with_truthy4   r   r   c                 óJ   — d}d} | j                   | j                  ||«      Ž  y)zaLet users wrap their code in script tags for the sake of their
           development environmentzÔ
            {% script type="application/javascript" id="jeff" defer=True%}
                <script type="text/javascript">
                var hello='world';
                </script>
            {% endscript %}z\<script nonce="{}" id="jeff" type="application/javascript" defer>var hello='world';</script>Nr   r
   s      r   Ú#test_nested_script_tags_are_removedz6TestJinjaExtension.test_nested_script_tags_are_removed@   s2   € ðˆð,ð 	ð
 	 ˆ×Ñ ×!7Ñ!7¸¸XÓ!FÒGr   N)	Ú__name__Ú
__module__Ú__qualname__r   r   r   r   r   r   © r   r   r   r      s&   „ òHò	HòHò
Hò
HóHr   r   N)Úcsp.tests.utilsr   r   r   r   r   ú<module>r!      s   ðÝ 3ôKHÐ0õ KHr   