
    Mh/1                        S r SSKJr  SSKJr  SSKrSSKJr  SSKJ	r	J
r
  SSKJrJr  S r\R                  R!                  S\" 5       \" 5       /5      S	 5       r " S
 S5      r " S S5      rg)z@
Tests for the following offsets:
- BQuarterBegin
- BQuarterEnd
    )annotations)datetimeN)assert_is_on_offsetassert_offset_equal)BQuarterBeginBQuarterEndc                     [        SSSSS5      n [        [        4nU H0  nX" 5       -   nUR                  5       U R                  5       :X  a  M0   e   g )Ni              )r   r   r   time)dateoffsetsklassresults       d/var/www/html/env/lib/python3.13/site-packages/pandas/tests/tseries/offsets/test_business_quarter.pytest_quarterly_dont_normalizer      sM    D!RB'DM*G{{}		+++     offsetc           
         S VVs/ s H'  nS  H  nUS:X  a  US:X  a  M  [        SX5      PM     M)     nnnU H%  nU R                  U5      nXDU -   U -
  :H  nXV:X  a  M%   e   g s  snnf )N)
         )      r
         r   r   r   r   i  )r   is_on_offset)r   mddatesr   resslow_versions          r   test_on_offsetr%   "   s     A*ARAG 	q* 	 
  !!$'v77""" s
   A#A#c            %      :	   \ rS rSrS rS rS r/ r\R                  \	" SS9\
" SSS5      \
" SSS5      \
" SSS	5      \
" SSS5      \
" SS
S5      \
" SSS5      \
" SS
S5      \
" SSS5      \
" SSS5      \
" SSS5      \
" SSS	5      \
" SSS5      \
" SSS5      \
" SSS5      \
" SSS5      \
" SSS
5      \
" SS
S5      \
" SSS
5      \
" SSS5      \
" SSS
5      \
" SSS5      \
" SSS
5      \
" SSS5      \
" SSS
5      \
" SSS5      \
" SSS
5      \
" SSS
5      \
" SSS
5      \
" SSS5      \
" SSS5      045        \R                  \	" S
S9\
" SSS5      \
" SS
S5      \
" SSS	5      \
" SS
S5      \
" SSS5      \
" SS
S5      \
" SS
S5      \
" SSS5      \
" SSS5      \
" SSS5      \
" SSS	5      \
" SSS5      \
" SSS5      \
" SSS5      \
" SSS5      \
" SSS5      \
" SSS5      \
" SSS5      \
" SSS5      \
" SSS5      \
" SSS5      \
" SSS5      045        \R                  \	" SSS9\
" SSS5      \
" SSS5      \
" SSS	5      \
" SSS5      \
" SS
S5      \
" SSS5      \
" SS
S5      \
" SSS5      \
" SSS5      \
" SSS5      \
" SS
S5      \
" SSS5      \
" SSS5      \
" SSS5      \
" SSS5      \
" SSS
5      \
" SSS
5      \
" SSS
5      \
" SSS5      \
" SSS
5      \
" SSS5      \
" SSS
5      \
" SSS
5      \
" SSS
5      045        \R                  \	" SSS9\
" SSS5      \
" SSS5      \
" SSS	5      \
" SSS5      \
" SS
S5      \
" SSS5      \
" SS
S5      \
" SSS5      \
" SSS5      \
" SSS5      \
" SSS	5      \
" SSS5      \
" SSS5      \
" SSS5      \
" SSS5      \
" SSS
5      \
" SSS5      \
" SSS
5      \
" SSS
5      \
" SSS
5      \
" SSS5      \
" SSS5      045        \R                  \	" SS
S9\
" SSS5      \
" SSS5      \
" SSS5      \
" SSS5      \
" SS
S5      \
" SSS5      \
" SSS5      \
" SSS5      \
" SSS	5      \
" SSS
5      \
" SSS5      \
" SSS5      \
" SSS5      \
" SSS5      045        \R                  R                  S\5      S 5       rSrg) TestBQuarterBegin0   c                    Sn[        [        5       5      U:X  d   eSn[        [        SS95      U:X  d   eSn[        [        SS95      U:X  d   eg )Nz'<BusinessQuarterBegin: startingMonth=3>r
   startingMonthz'<BusinessQuarterBegin: startingMonth=1>r   )reprr   selfexpecteds     r   	test_reprTestBQuarterBegin.test_repr1   sV    <MO$000<M23x???<M23x???r   c                (   Sn[         R                  " [        US9   [        SS9R	                  5       (       d   e[        5       R	                  5       (       d   e[        SSS9R	                  5       (       a   e S S S 5        g ! , (       d  f       g = f)Nz(BQuarterBegin.is_anchored is deprecated matchr   r*   r   )tmassert_produces_warningFutureWarningr   is_anchoredr.   msgs     r   test_is_anchored"TestBQuarterBegin.test_is_anchored9   st    8''SA q1==???? ?..0000$Qa8DDFFFFF BAA   AB
Bc                Z    [        SSS9n[        SSS5      U-   [        SSS5      :X  d   eg )Nr   nr+        r
   r   )r   r   r.   r   s     r   test_offset_corner_case)TestBQuarterBegin.test_offset_corner_caseA   s3    15a#f,q!0DDDDr   r   r*     rC   r   r      r   r
      rB   r   r   r      r   	   r   r+   rA   r      r?   r   casec                V    Uu  p#UR                  5        H  u  pE[        X$U5        M     g Nitemsr   r.   rN   r   casesbaser/   s         r   test_offsetTestBQuarterBegin.test_offset   %    #kkmNDh7 ,r    N)__name__
__module____qualname____firstlineno__r0   r;   rE   offset_casesappendr   r   pytestmarkparametrizerV   __static_attributes__rY   r   r   r'   r'   0   s   @GE
 L*q!$htQ&:q"%xa';q"%xa';q"%xa';q"%xa';q"%xa';q"%xa';q"%xa';q"%xa';q!$htQ&:q"%xa';q!$htQ&:q!$htQ&:q!$htQ&:q"%xa';	
. *q!$htQ&:q"%xa';q"%xa';q"%xa';q"%xa';q"%xa';q"%xa';q"%xb!'<q"%xb!'<r1%xb!'<q"%xa';	
& Q/q!$htQ&:r2&q!(<q"%xa';q"%xa';q"%xa';q"%xa';q"%xa';q!$htQ&:q!$htQ&:q!$htQ&:q"%xa';q!$htQ&:	
( R0q!$htR&;q"%xa';q"%xa';q"%xa';q"%xa';q"%xa';q"%xa';q!$htQ&:q!$htQ&:q!$htQ&:q!$htQ&:	
& Q/q!$htQ&:q"%xa';q"%xa';q"%xa';q"%xa';q"%xb!'<q"%xb!'<	
 [[V\28 38r   r'   c                   
   \ rS rSrS rS rS r/ r\R                  \	" SS9\
" SSS5      \
" SSS5      \
" SSS5      \
" SS	S
5      \
" SSS5      \
" SS	S
5      \
" SSS5      \
" SS	S
5      \
" SSS5      \
" SS	S
5      \
" SSS5      \
" SS	S
5      \
" SS	S5      \
" SS	S
5      \
" SS	S
5      \
" SSS5      045        \R                  \	" SS9\
" SSS5      \
" SSS5      \
" SSS5      \
" SSS5      \
" SSS5      \
" SSS5      \
" SSS5      \
" SSS
5      \
" SSS5      \
" SSS
5      \
" SSS5      \
" SSS
5      \
" SS	S5      \
" SSS
5      \
" SS	S
5      \
" SSS
5      045        \R                  \	" SSS9\
" SSS5      \
" SSS5      \
" SSS5      \
" SSS5      \
" SSS5      \
" SS	S
5      \
" SSS5      \
" SS	S
5      \
" SSS5      \
" SS	S
5      \
" SSS5      \
" SS	S
5      \
" SS	S5      \
" SS	S
5      \
" SS	S
5      \
" SS	S
5      045        \R                  \	" SSS9\
" SSS5      \
" SSS5      \
" SSS5      \
" SSS5      \
" SSS5      \
" SSS5      \
" SSS5      \
" SSS5      \
" SSS5      \
" SSS5      \
" SSS5      \
" SSS5      \
" SS	S5      \
" SSS5      \
" SS	S
5      \
" SSS5      045        \R                  \	" SSS9\
" SSS5      \
" SSS5      \
" SSS5      \
" SSS5      \
" SSS5      \
" SSS5      \
" SSS5      \
" SSS5      \
" SSS5      \
" SSS5      \
" SS	S5      \
" SSS5      \
" SS	S
5      \
" SSS5      045        \R                  R                  S\5      S 5       r\	" SSS9\
" SSS5      S4\	" SSS9\
" SSS5      S4\	" SSS9\
" SSS5      S4\	" SSS9\
" SSS
5      S4\	" SSS9\
" SSS5      S4\	" SSS9\
" SS	S
5      S4\	" SSS9\
" SSS
5      S4\	" SSS9\
" SSS5      S4\	" SSS9\
" SSS
5      S4\	" SSS9\
" SSS5      S4\	" SSS9\
" SSS5      S4\	" SSS9\
" SSS5      S4\	" SSS9\
" SSS
5      S4\	" SSS9\
" SSS5      S4\	" SSS9\
" SS	S
5      S4\	" SSS9\
" SSS
5      S4\	" SSS9\
" SSS5      S4\	" SSS9\
" SSS
5      S4\	" SSS9\
" SSS5      S4\	" SSS9\
" SSS5      S4\	" SSS9\
" SSS5      S4\	" SSS9\
" SSS
5      S4\	" SSS9\
" SSS5      S4\	" SSS9\
" SS	S
5      S4\	" SSS9\
" SSS
5      S4\	" SSS9\
" SSS5      S4\	" SSS9\
" SSS
5      S4/r\R                  R                  S\5      S 5       rSrg)TestBQuarterEnd   c                    Sn[        [        5       5      U:X  d   eSn[        [        SS95      U:X  d   eSn[        [        SS95      U:X  d   eg )Nz%<BusinessQuarterEnd: startingMonth=3>r
   r*   z%<BusinessQuarterEnd: startingMonth=1>r   )r,   r   r-   s     r   r0   TestBQuarterEnd.test_repr   sV    :KM"h...:Ka01X===:Ka01X===r   c                (   Sn[         R                  " [        US9   [        SS9R	                  5       (       d   e[        5       R	                  5       (       d   e[        SSS9R	                  5       (       a   e S S S 5        g ! , (       d  f       g = f)Nz&BQuarterEnd.is_anchored is deprecated r3   r   r*   r   )r5   r6   r7   r   r8   r9   s     r   r;    TestBQuarterEnd.test_is_anchored   st    6''SAQ/;;=====,,...."1A6BBDDDDD BAAr=   c                Z    [        SSS9n[        SSS5      U-   [        SSS5      :X  d   eg )Nr?   r   r@   i  r   r   )r   r   rD   s     r   rE   'TestBQuarterEnd.test_offset_corner_case   s3    r3a$v-$21FFFFr   r   r*   rG   r   rC   r   r   rH   r   r
   rI   r   r   rL   r?   rB   r   rN   c                V    Uu  p#UR                  5        H  u  pE[        X$U5        M     g rP   rQ   rS   s         r   rV   TestBQuarterEnd.test_offset  rX   r   Tr   F   c                &    Uu  p#n[        X#U5        g rP   )r   )r.   rN   r   dtr/   s        r   test_is_on_offset!TestBQuarterEnd.test_is_on_offset8  s    #HF1r   rY   N)rZ   r[   r\   r]   r0   r;   rE   r^   r_   r   r   r`   ra   rb   rV   on_offset_casesrr   rc   rY   r   r   re   re      sZ   >EG
 La(q!$htQ&;q"%xa'<q"%xa'<q"%xa'<q"%xa'<q"%xa'<q"%xa'<q"%xa'<		
  a(q!$htQ&;q"%xa'<q"%xa'<q"%xa'<q"%xa'<q"%xa'<q"%xa'<q"%xa'<		
  a1-q!$htQ&;q"%xa'<q"%xa'<q"%xa'<q"%xa'<q"%xa'<q"%xa'<q"%xa'<		
  a2.q!$htR&<q"%xb"'=q"%xa'<q"%xa'<q"%xa'<q"%xa'<q"%xa'<q"%xa'<		
  a1-q"%xa'<q"%xa'<q"%xa'<q"%xa'<q"%xa'<q"%xa'<q"%xb"'=	
 [[V\28 38 
Qa	((4B*?F	Qa	((4R*@%H	Qa	((4B*?G	Qa	((4B*?G	Qa	((4B*?G	Qa	((4B*?F	Qa	((4B*?G	Qa	((4B*?G	Qa	((4B*?G	Qa	((4B*?G	Qa	((4R*@%H	Qa	((4B*?F	Qa	((4B*?G	Qa	((4B*?G	Qa	((4B*?G	Qa	((4B*?F	Qa	((4B*?G	Qa	((4B*?G	Qa	((4B*?G	Qa	((4R*@$G	Qa	((4B*?G	Qa	((4B*?F	Qa	((4B*?G	Qa	((4B*?G	Qa	((4B*?G	Qa	((4B*?F	Qa	((4B*?G7O< [[V_52 62r   re   )__doc__
__future__r   r   r`   pandas._testing_testingr5   #pandas.tests.tseries.offsets.commonr   r   pandas.tseries.offsetsr   r   r   ra   rb   r%   r'   re   rY   r   r   <module>r{      so   
 #   
, MO[]#CD
# E
#{8 {8|M2 M2r   