+
    5mj  c                  ^   ^ RI Ht ^ RIt^ RIHu Ht ^ RIt^ RI	H
t
 ^ RIHt ]P                  P                  ^ ]! ]
! ]4      P#                  4       P$                  ^,          4      4       ^ RIHtHt ^ RIHtHt ^ RIHt R R	 ltRR
 R lltR R ltR R ltR R ltR R lt R R lt!R# )    )annotationsN)Path)Any)make_account_vmmake_callbacks)ProviderTab_FallbackGtk)ProviderTabVMc                    V ^8  d   QhRRRR/# )   accountsr   returnr	    )formats   "d/home/user/overdeck-private-tests/workstation-ai-broad/modules/systray/tests/test_ui_provider_tab.py__annotate__r      s      3 =     c                 0    \        R \        V 4      RR7      # )codexu   ＋ Add Codex account)toolr   	add_label)r	   tuple)r   s   *r   _vmr      s    uX:Q r   c               $    V ^8  d   QhRRRRRR/# )r   vmr	   callszlist[tuple[Any, ...]] | Noner   r   r   )r   s   "r   r   r      s"      ] #? ; r   c                D    \        T \        Ve   TM. 4      \        R7      # )N)
gtk_module)r   r   r   )r   r   s   &&r   _tabr      s"    
NE$552>< r   c                   V ^8  d   QhRR/# r   r   Noner   )r   s   "r   r   r      s       r   c                 &	   \        \        \        R RR7      \        RRR7      4      4      p V P                  p\	        V4      pR R0q2V8H  qD'       Eg3   \
        P                  ! RV3RW#34      RR\        P                  ! 4       9   g!   \
        P                  ! \        4      '       d   \
        P                  ! \        4      MRRR\        P                  ! 4       9   g   \
        P                  ! V 4      '       d   \
        P                  ! V 4      MRR	\
        P                  ! V4      R
\
        P                  ! V4      R\
        P                  ! V4      /,          pRRV/,          p\        \
        P                  ! V4      4      hR;p;p;rCV P                  R ,          qwP                  qP                  pRq2V8H  qD'       g   \
        P                  ! RV3RW#34      R\
        P                  ! V4      R	\
        P                  ! V4      R
\
        P                  ! V4      R\
        P                  ! V4      /,          pRRV/,          p\        \
        P                  ! V4      4      hR;p;p;p;rCV P                  R,          qwP                  qP                  pRq2V8H  qD'       g   \
        P                  ! RV3RW#34      R\
        P                  ! V4      R	\
        P                  ! V4      R
\
        P                  ! V4      R\
        P                  ! V4      /,          pRRV/,          p\        \
        P                  ! V4      4      hR;p;p;p;rCV P                  qP                   p	V P                  R ,          P                  V P                  R,          P                  .qIV8H  q'       g   \
        P                  ! RV
3RW34      RR\        P                  ! 4       9   g   \
        P                  ! V 4      '       d   \
        P                  ! V 4      MRR\
        P                  ! V4      R\
        P                  ! V	4      R\
        P                  ! V4      /,          pRRV/,          p\        \
        P                  ! V4      4      hR;p;p	;rR# )workWorkslugaliaspersonalPersonalpy0setpy1tabpy3py5py8assert %(py10)spy10Npy2py4py7assert %(py9)spy9==zK%(py5)s
{%(py5)s = %(py0)s(%(py3)s
{%(py3)s = %(py1)s.cards
})
} == %(py8)szM%(py5)s
{%(py5)s = %(py3)s
{%(py3)s = %(py1)s.alias_label
}.text
} == %(py8)szL%(py4)s
{%(py4)s = %(py2)s
{%(py2)s = %(py0)s.widget
}.children
} == %(py7)s)r   r   r   cardsr+   
@pytest_ar_call_reprcompare@py_builtinslocals_should_repr_global_name	_safereprAssertionError_format_explanationalias_labeltextwidgetchildren)r-   @py_assert2@py_assert4@py_assert7@py_assert6@py_format9@py_format11@py_assert0@py_assert1@py_assert3@py_assert5@py_format8@py_format10s                r   'test_one_card_per_account_keyed_by_slugrV      s   
v6:>	
C yy13y>1fj11111111>1111113111131111111s1111s111y111>11111111111199V7((7--7777777-777777(777-7777777777799Z ?,,?11?Z?Z?????1??? ???,???1???Z????????::  		&  		*$$#  #         3   3   :       #        r   c                   V ^8  d   QhRR/# r    r   )r   s   "r   r   r   +   s     ; ;4 ;r   c                 	   \        \        \        R RR7      \        RRR7      4      4      p \        V P                  4      p\        V P                  P                  4      pV P                  \        \        R RRR7      \        RRR7      4      4       V P                  R ,          q1R ,          qCVJ qU'       gy   \        P                  ! RV3RW434      R\        P                  ! V4      R	\        P                  ! V4      /,          pR
RV/,          p\        \        P                  ! V4      4      hR;p;rTV P                  R,          q1R,          qCVJ qU'       gy   \        P                  ! RV3RW434      R\        P                  ! V4      R	\        P                  ! V4      /,          pR
RV/,          p\        \        P                  ! V4      4      hR;p;rTV P                  qP                  qDV8H  q'       Eg   \        P                  ! RV	3RWB34      RR\        P                  ! 4       9   g   \        P                   ! V 4      '       d   \        P                  ! V 4      MRR\        P                  ! V4      R	\        P                  ! V4      RR\        P                  ! 4       9   g   \        P                   ! V4      '       d   \        P                  ! V4      MR/,          pRRV/,          p
\        \        P                  ! V
4      4      hR;p;rIV P                  R ,          q3P"                  qUP$                  pRqV8H  q'       g   \        P                  ! RV3RW34      R\        P                  ! V4      R\        P                  ! V4      R\        P                  ! V4      R\        P                  ! V4      /,          p
RRV
/,          p\        \        P                  ! V4      4      hR;p;p;p;rV P                  R ,          q3P&                  qUP(                  pRqVJ q'       g   \        P                  ! RV3RW34      R\        P                  ! V4      R\        P                  ! V4      R\        P                  ! V4      R\        P                  ! V4      /,          p
RRV
/,          p\        \        P                  ! V4      4      hR;p;p;p;rR# )r#   r$   r%   r(   r)   RenamedT)r&   r'   
is_defaultr,   r4   assert %(py6)spy6Nr*   r-   r3   widget_childrenzassert %(py8)sr0   r.   r/   r1   r2   )is)z%(py1)s is %(py4)sr8   )zL%(py4)s
{%(py4)s = %(py2)s
{%(py2)s = %(py0)s.widget
}.children
} == %(py6)sr;   )zR%(py5)s
{%(py5)s = %(py3)s
{%(py3)s = %(py1)s.default_badge
}.visible
} is %(py8)s)r   r   r   dictr=   listrH   rI   updater>   r?   rC   rD   rE   r@   rA   rB   rF   rG   default_badgevisible)r-   beforer]   rP   rR   rJ   @py_format5@py_format7rQ   rS   rN   rK   rL   rM   rO   s                  r   1test_update_with_same_slugs_reuses_cards_in_placerg   +   s   
v6:>	
C #))_F3::../OJJyTJ:>	
 99V.v....................99Z 6:$66$666666 666 666$666666666::11/11111111111311113111:111111111/1111/1111111199V:((:--:::::::-::::::(:::-:::::::::::99V:**:22:d:d:::::2::::::*:::2:::d:::::::::r   c                   V ^8  d   QhRR/# r    r   )r   s   "r   r   r   C   s     ) )4 )r   c                    \        \        \        R R7      4      4      p \        V P                  4      pV P                  \        \        R R7      \        RRR7      4      4       V P                  p\        V4      pR R0qCV8H  qU'       Eg3   \        P                  ! RV3RW434      RR\        P                  ! 4       9   g!   \        P                  ! \        4      '       d   \        P                  ! \        4      MRRR\        P                  ! 4       9   g   \        P                  ! V 4      '       d   \        P                  ! V 4      MRR	\        P                  ! V4      R
\        P                  ! V4      R\        P                  ! V4      /,          pRRV/,          p\        \        P                  ! V4      4      hR;p;p;rTV P                  R ,          qR ,          qV	Jq"'       gy   \        P                  ! RV3RW34      R\        P                  ! V4      R\        P                  ! V	4      /,          p
RRV
/,          p\        \        P                  ! V4      4      hR;p;r)V P                  q"P                   p\#        V4      p^qV8H  q'       EgI   \        P                  ! RV3RW\34      RR\        P                  ! 4       9   g!   \        P                  ! \"        4      '       d   \        P                  ! \"        4      MRRR\        P                  ! 4       9   g   \        P                  ! V 4      '       d   \        P                  ! V 4      MRR	\        P                  ! V4      R
\        P                  ! V4      R\        P                  ! V4      R\        P                  ! V4      /,          pRRV/,          p\        \        P                  ! V4      4      hR;p;p;p;rR# )r#   r&   r(   r)   r%   r*   r+   r,   r-   r.   r/   r0   r1   r2   Nr4   r[   r\   lenr5   zassert %(py12)spy12r8   r:   )is not)z%(py1)s is not %(py4)s)zk%(py7)s
{%(py7)s = %(py0)s(%(py5)s
{%(py5)s = %(py3)s
{%(py3)s = %(py1)s.widget
}.children
})
} == %(py10)s)r   r   r   r_   r=   ra   r+   r>   r?   r@   rA   rB   rC   rD   rE   rH   rI   rk   )r-   rd   rJ   rK   rL   rM   rN   rO   rP   rR   re   rf   @py_assert9@py_assert8@py_format13s                  r   !test_added_account_rebuilds_cardsrq   C   s   
s?/0
1C#))_FJJ(:>	
 yy13y>1fj11111111>1111113111131111111s1111s111y111>11111111111199V26N2N22222222222N22222222zz(""(3"#(q(q(((((#((((((3((((3(((((((s((((s(((z((("(((#(((q(((((((((r   c                   V ^8  d   QhRR/# r    r   )r   s   "r   r   r   S   s     A AT Ar   c                    \        \        \        R R7      \        RRR7      4      4      p V P                  \        \        RRR7      4      4       V P                  p\        V4      pR0q2V8H  qD'       Eg3   \        P                  ! RV3RW#34      RR\        P                  ! 4       9   g!   \        P                  ! \
        4      '       d   \        P                  ! \
        4      MRRR\        P                  ! 4       9   g   \        P                  ! V 4      '       d   \        P                  ! V 4      MRR	\        P                  ! V4      R
\        P                  ! V4      R\        P                  ! V4      /,          pRRV/,          p\        \        P                  ! V4      4      hR;p;p;rCV P                  qwP                  qP                  R,          P                  .qHV8H  q'       g   \        P                  ! RV	3RW34      RR\        P                  ! 4       9   g   \        P                  ! V 4      '       d   \        P                  ! V 4      MRR\        P                  ! V4      R\        P                  ! V4      R\        P                  ! V4      /,          p
RRV
/,          p\        \        P                  ! V4      4      hR;p;p;rR# )r#   rj   r(   r)   r%   r*   r+   r,   r-   r.   r/   r0   r1   r2   Nr3   r4   r5   r6   r7   r8   r:   r<   )r   r   r   ra   r=   r+   r>   r?   r@   rA   rB   rC   rD   rE   rH   rI   )r-   rJ   rK   rL   rM   rN   rO   rQ   rR   rS   rT   rU   s               r   #test_removed_account_rebuilds_cardsrt   S   s   
(:>	
C JJs?
*EFGyy)3y>)j\)\)))))>))))))3))))3)))))))s))))s)))y)))>)))\))))))))::@@99Z#8#?#?"@@"@@@@@@@@@@@@3@@@@3@@@:@@@@@@"@@@@@@@@@r   c                   V ^8  d   QhRR/# r    r   )r   s   "r   r   r   a   s     	T 	T$ 	Tr   c            	         . p \        \        \        R RR7      4      V 4      pVP                  R,          P                   UUu. uF  w  r#VNK	  	  pppV^ ,          pRqeV8H  qw'       gy   \
        P                  ! RV3RWV34      R\
        P                  ! V4      R\
        P                  ! V4      /,          pRRV/,          p	\        \
        P                  ! V	4      4      hR;p;rvVP                  R,          P                  ^ ,          ^,          ! 4        VP                  R,          P                  ^,          ^,          ! 4        RR.qpV8H  q'       g   \
        P                  ! RV
3RW34      R	R
\        P                  ! 4       9   g   \
        P                  ! V 4      '       d   \
        P                  ! V 4      MR
R\
        P                  ! V4      /,          pRRV/,          p\        \
        P                  ! V4      4      hR;rR# u uppi )r   r#   )r   r&   zSet as defaultr,   r4   r[   r\   Nr*   r   r.   zassert %(py5)sr/   r8   )z%(py1)s == %(py4)s)set_defaultr   r#   )reloadr   r#   )z%(py0)s == %(py3)s)r   r   r   r=   
menu_itemsr>   r?   rC   rD   rE   r@   rA   rB   )r   r-   label_labelsrP   rR   rJ   re   rf   rQ   @py_format4@py_format6s                r   0test_cards_dispatch_callbacks_with_tool_and_slugr   a   sC   #%E
s?f=>
FC$'IIf$5$@$@A$@e$@FA!9(((((((((9(((9((((((((((((IIf  #A&(IIf  #A&(57RSSSSSSSS5SSSSSS5SSSS5SSSSSSSSSSSS Bs   H
)N)"
__future__r   builtinsr@   _pytest.assertion.rewrite	assertionrewriter>   syspathlibr   typingr   pathinsertstr__file__resolveparentstests.cards_helpersr   r   ui.provider_tabr   r   ui.view_modelr	   r   r   rV   rg   rq   rt   r   r   r   r   <module>r      sr    "   
   3tH~--/77:; < ? 5 '";0) A	Tr   