
    h                         S SK r SSKJrJrJrJr   " S S5      r " S S5      r " S S	5      r " S
 S5      r	 " S S5      r
g)    N   )
round_tripdedentround_trip_loadround_trip_dumpc                       \ rS rSr\R
                  R                  SS9S 5       rS r\R
                  R                  SS9S 5       r	S r
Srg	)
TestCommentFailures   Tstrictc                     [        S5        g )N
        # the beginning
        !!set
        # or this one?
        ? a
        # next one is B (lowercase)
        ? b  #  You see? Promised you.
        ? c
        # this is the end
        r   selfs    [/home/james-whalen/.local/lib/python3.13/site-packages/srsly/tests/ruamel_yaml/test_fail.pytest_set_comment_before_tag/TestCommentFailures.test_set_comment_before_tag   s     			
    c                 N    Sn[        [        U5      5      [        S5      :X  d   eg )Nr   z
        !!set
        # or this one?
        ? a
        # next one is B (lowercase)
        ? b  #  You see? Promised you.
        ? c
        # this is the end
        r   r   r   r   inps     r   #test_set_comment_before_tag_no_fail7TestCommentFailures.test_set_comment_before_tag_no_fail   s3    	 s34
9
 

 
	
 

r   c                     [        S5        g )N9
        - # abc
           a: 1
           b: 2
        r   r   s    r   test_comment_dash_line*TestCommentFailures.test_comment_dash_line7   s    	
r   c                 R    Sn[        U5      n[        U5      [        S5      :X  d   eg )Nr   z7
          # abc
        - a: 1
          b: 2
        )r   r   r   )r   xdatas      r   test_comment_dash_line_fail/TestCommentFailures.test_comment_dash_line_failA   s8    
 q!t$)
 
 	
 
r    N)__name__
__module____qualname____firstlineno__pytestmarkxfailr   r   r   r#   __static_attributes__r%   r   r   r	   r	      sV    [[d#
 $

0 [[d#
 $

r   r	   c                   ^    \ rS rSr\R
                  R                  SS9S 5       rS rS r	Sr
g)	TestIndentFailuresR   Tr   c                     [        S5        g )N9  
        verbosity: 1                  # 0 is minimal output, -1 none
        base_url: http://gopher.net
        special_indices: [1, 5, 8]
        also_special:
        - a
        - 19
        - 32
        asia and europe: &asia_europe
            Turkey: Ankara
            Russia: Moscow
        countries:
            Asia:
                <<: *asia_europe
                Japan: Tokyo # 東京
            Europe:
                <<: *asia_europe
                Spain: Madrid
                Italy: Rome
            Antarctica:
            -   too cold
        r   r   s    r   test_indent_not_retained+TestIndentFailures.test_indent_not_retainedS   s    	
r   c                 L    Sn[        [        U5      SS9[        S5      :X  d   eg )Nr2      indentu?  
        verbosity: 1                  # 0 is minimal output, -1 none
        base_url: http://gopher.net
        special_indices: [1, 5, 8]
        also_special:
        -   a
        -   19
        -   32
        asia and europe: &asia_europe
            Turkey: Ankara
            Russia: Moscow
        countries:
            Asia:
                <<: *asia_europe
                Japan: Tokyo # 東京
            Europe:
                <<: *asia_europe
                Spain: Madrid
                Italy: Rome
            Antarctica:
            -   too cold
        r   r   s     r    test_indent_not_retained_no_fail3TestIndentFailures.test_indent_not_retained_no_failn   s6    , s3A>&C
 
 	
 
r   c                     Sn[        USS9  g )Nz(
        -   a:
            - b
        r6   r7   r   r   s     r   Xtest_indent_top_level_no_fail1TestIndentFailures.Xtest_indent_top_level_no_fail   s     	3q!r   r%   N)r&   r'   r(   r)   r*   r+   r,   r3   r9   r<   r-   r%   r   r   r/   r/   R   s1    [[d#
 $
4.
`"r   r/   c                   X    \ rS rSr\R
                  R                  SS9S 5       rS rSr	g)TestTagFailures   Tr   c                     [        S5        g )Nz^        !!map
        name: Anthon
        location: Germany
        language: python
        r   r   s    r   test_standard_short_tag'TestTagFailures.test_standard_short_tag   s    	
r   c                 R    SnSn[        [        U5      5      [        U5      :X  d   eg )Nz_
        !!map
        name: Anthon
        location: Germany
        language: python
        zQ
        name: Anthon
        location: Germany
        language: python
        r   )r   r   exps      r   test_standard_short_tag_no_fail/TestTagFailures.test_standard_short_tag_no_fail   s.    
 s34sCCCr   r%   N)
r&   r'   r(   r)   r*   r+   r,   rB   rF   r-   r%   r   r   r?   r?      s,    [[d#
 $
Dr   r?   c                        \ rS rSrS rS rSrg)TestFlowValues   c                     Sn[        U5        g )Nz        {a: bcd:efg}
        r   r   s     r   test_flow_value_with_colon)TestFlowValues.test_flow_value_with_colon   s     	3r   c                     Sn[        USS9  g )Nz        {a: 'bcd:efg'}
        Tpreserve_quotesr   r   s     r   !test_flow_value_with_colon_quoted0TestFlowValues.test_flow_value_with_colon_quoted   s     	3-r   r%   N)r&   r'   r(   r)   rL   rQ   r-   r%   r   r   rI   rI      s    .r   rI   c                   ,    \ rS rSrS rS rS rS rSrg)TestMappingKey   c                     Sn[        USSS9  g )N*        {a: 1, b: 2}: hello world
        TF)rP   	dump_datar   r   s     r   test_simple_mapping_key&TestMappingKey.test_simple_mapping_key   s     	3>r   c                 `    SSK Jn  U" SS/5      S0n[        S5      n[        U5      U:X  d   eg )Nr   CommentedKeyMapar   b   zhello worldrW   )srsly.ruamel_yaml.commentsr]   r   r   )r   r]   drE   s       r   test_set_simple_mapping_key*TestMappingKey.test_set_simple_mapping_key   s=    >h12MB

 q!S(((r   c                     SSK Jn  Sn[        USS9nUR                  U" SS/5      5      X1" SS	/5      '   [	        S
5      n[        U5      U:X  d   eg )Nr   r\   rW   TrO   r^   r`   )ra   r   )r_   rb   z*        {b: 1, a: 2}: hello world
        )rc   r]   r   popr   r   r   r]   r   rd   rE   s        r   "test_change_key_simple_mapping_key1TestMappingKey.test_change_key_simple_mapping_key   sj    > C63455Xx014
/8X.
/0 

 q!S(((r   c                 x    SSK Jn  Sn[        USS9nU" SS/5      S0n[        S	5      n[	        U5      U:X  d   eg )
Nr   r\   rW   TrO   r^   r`   goodbyez&        {a: 1, b: 2}: goodbye
        )rc   r]   r   r   r   ri   s        r   $test_change_value_simple_mapping_key3TestMappingKey.test_change_value_simple_mapping_key   sR    > C6h12I>

 q!S(((r   r%   N)	r&   r'   r(   r)   rY   re   rj   rn   r-   r%   r   r   rT   rT      s    ?	))")r   rT   )r*   	roundtripr   r   r   r   r	   r/   r?   rI   rT   r%   r   r   <module>rq      sJ     K KA
 A
HQ" Q"hD D6. .0) 0)r   