+
    5mjw  c                  J   ^ RI Ht ^ RIt^ RIHu Ht ^ RIt^ RI	H
t
 ]P                  P                  ^ ]! ]
! ]4      P                  4       P                   ^,          4      4       ^ RIHtHt ^ RIHt R R ltR R	 ltR
 R 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)SettingsDialog_FallbackGtk)Settingsc               $    V ^8  d   QhRRRRRR/# )   settingsr   savedzlist[Settings]returnr    )formats   "h/home/user/overdeck-private-tests/workstation-ai-broad2/modules/systray/tests/test_ui_settings_dialog.py__annotate__r      s)     K KK-KK    c                8    \        WP                  \        R 7      # ))
gtk_module)r   appendr   )r	   r
   s   &&r   _dialogr      s     (LL\JJr   c                   V ^8  d   QhRR/# r   r   Noner   )r   s   "r   r   r      s          r   c                 &   \        \        R ^x^RRR7      . 4      p V P                  qP                  q"! 4       pR qCVJ qU'       g   \        P
                  ! RV3RW43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      R	\        P                  ! V4      /,          pR
RV/,          p\        \        P                  ! V4      4      hR;p;p;p;rTV P                  qP                  q"! 4       p^xqCV8H  qU'       g   \        P
                  ! RV3RW43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      R	\        P                  ! V4      /,          pR
RV/,          p\        \        P                  ! V4      4      hR;p;p;p;rTV P                  qP                  q"! 4       p^qCV8H  qU'       g   \        P
                  ! RV3RW43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      R	\        P                  ! V4      /,          pR
RV/,          p\        \        P                  ! V4      4      hR;p;p;p;rTV P                  qP                   q"! 4       pRqCV8H  qU'       g   \        P
                  ! RV3RW43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      R	\        P                  ! V4      /,          pR
RV/,          p\        \        P                  ! V4      4      hR;p;p;p;rTV P"                  pRqVJ 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      R\        P                  ! V4      /,          p	RRV	/,          p
\        \        P                  ! V
4      4      hR;p;r(R# )Tgrokdark
auto_closerefresh_interval_secondswarning_threshold_pctlast_tabthemepy0dialogpy2py4py6py9assert %(py11)spy11Npy5assert %(py7)spy7is)zp%(py6)s
{%(py6)s = %(py4)s
{%(py4)s = %(py2)s
{%(py2)s = %(py0)s.auto_close_switch
}.get_active
}()
} is %(py9)s==zj%(py6)s
{%(py6)s = %(py4)s
{%(py4)s = %(py2)s
{%(py2)s = %(py0)s.refresh_spin
}.get_value
}()
} == %(py9)szl%(py6)s
{%(py6)s = %(py4)s
{%(py4)s = %(py2)s
{%(py2)s = %(py0)s.threshold_spin
}.get_value
}()
} == %(py9)szm%(py6)s
{%(py6)s = %(py4)s
{%(py4)s = %(py2)s
{%(py2)s = %(py0)s.theme_combo
}.get_active_id
}()
} == %(py9)sz-%(py2)s
{%(py2)s = %(py0)s.saved
} is %(py5)s)r   r   auto_close_switch
get_active
@pytest_ar_call_reprcompare@py_builtinslocals_should_repr_global_name	_safereprAssertionError_format_explanationrefresh_spin	get_valuethreshold_spintheme_comboget_active_idr
   )r"   @py_assert1@py_assert3@py_assert5@py_assert8@py_assert7@py_format10@py_format12@py_assert4@py_format6@py_format8s              r   test_controls_reflect_settingsrM      s   %("$	
 		F ##8..8.08D8D888880888888688886888#888.8880888D888888881((1(*1c1c11111*111111611116111111(111*111c11111111  2**2*,2222222,222222622226222 222*222,222222222227++7+-7777777-777777677776777777+777-77777777777<<44<66<4r   c                   V ^8  d   QhRR/# r   r   )r   s   "r   r   r   $   s     $ $ $r   c            
     F   . p \        \        R R7      V 4      pVP                  \        RR^
RRR7      4       \        RR^
R RR7      pV.q0V8H  qD'       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;rCVP                  qDV8H  qw'       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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;rGR# )claude)r   Ti,  IGNOREDlightr   r!   r
   py3assert %(py5)sr)   Nr"   r#   r$   expectedzassert %(py6)sr%   r.   z%(py0)s == %(py3)s)z-%(py2)s
{%(py2)s = %(py0)s.saved
} == %(py4)s)r   r   simulate_saver6   r7   r8   r9   r:   r;   r<   r=   r
   )
r
   r"   rU   @py_assert2rC   @py_format4rK   rD   @py_format5@py_format7s
             r   >test_save_calls_on_save_with_new_values_and_preserves_last_tabr\   $   s>   EXx0%8F
%("$	
 !$ H JJ555J<<#8#####<######6####6###<######8####8########r   c                   V ^8  d   QhRR/# r   r   )r   s   "r   r   r   ;   s     : :t :r   c                 x   \        \        4       . 4      p V P                  qP                  q"! 4       pR qCV8H  qU'       g   \        P
                  ! R
V3RW43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      R\        P                  ! V4      /,          pRRV/,          p\        \        P                  ! V4      4      hR	;p;p;p;rTR	# )systemr!   r"   r#   r$   r%   r&   r'   r(   Nr.   r2   )r   r   rA   rB   r6   r7   r8   r9   r:   r;   r<   r=   )r"   rC   rD   rE   rF   rG   rH   rI   s           r   test_theme_defaults_to_systemr`   ;   s    XZ$F9++9+-9999999-999999699996999999+999-999999999999r   c                   V ^8  d   QhRR/# r   r   )r   s   "r   r   r   @   s     
3 
3 
3r   c                    . p \        \        4       V 4      pVP                  \        R ^R7      4       V R,          q"P                  pRqCV8H  qU'       g   \        P
                  ! RV3RW43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;rTVP                  P                  ^4       VP                  P                  ^c4       VP                  qP                  q! 4       p^qV
8H  q'       g   \        P
                  ! RV3RWJ3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      R\        P                  ! V
4      /,          pRRV/,          p\        \        P                  ! V4      4      hR;p;p	;p;rVP                  qP                  q! 4       p^2qV
8H  q'       g   \        P
                  ! RV3RWJ3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      R\        P                  ! V
4      /,          pRRV/,          p\        \        P                  ! V4      4      hR;p;p	;p;rR# )i?B )r   r   i  py1rS   r%   zassert %(py8)spy8Nr!   r"   r#   r$   r&   r'   r(   r.   )z@%(py3)s
{%(py3)s = %(py1)s.refresh_interval_seconds
} == %(py6)sr0   r1   )r   r   rW   r   r6   r7   r;   r<   r=   r>   	set_valuer@   r?   r8   r9   r:   )r
   r"   @py_assert0rX   rE   rJ   r[   @py_format9rC   rD   rF   rG   rH   rI   s                 r   'test_spin_controls_clamp_to_spec_rangesri   @   s    EXZ'F
'K 95--5555555-5559555-55555555555
!!!$
##B'0((0(*0b0b00000*000000600006000000(000*000b00000000  2**2*,2222222,222222622226222 222*222,222222222222r   c                   V ^8  d   QhRR/# r   r   )r   s   "r   r   r   M   s     + +4 +r   c                    . p \        \        R R7      V 4      pVP                  4        . q V8H  q3'       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;r2VP                  pRqcVJ qw'       g   \        P                  ! RV3RW634      RR\
        P                  ! 4       9   g   \        P                  ! V4      '       d   \        P                  ! V4      MRR	\        P                  ! V4      R\        P                  ! V4      /,          pR
RV/,          p\        \        P                  ! V4      4      hR;p;rvVP                  q3P                  pR qV	J q'       g   \        P                  ! RV
3RWy3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# )T)r   r!   r
   rS   rT   r)   Nr"   r#   r*   r+   r$   assert %(py9)sr&   r.   rV   r,   r3   )zM%(py4)s
{%(py4)s = %(py2)s
{%(py2)s = %(py0)s.dialog
}.destroyed
} is %(py7)s)r   r   openr6   r7   r8   r9   r:   r;   r<   r=   r
   r"   	destroyed)r
   r"   rX   rC   rY   rK   rJ   rD   rL   @py_assert6rE   rH   s               r   !test_cancel_does_not_call_on_saverp   M   sx   EX.6F
KKMB;555B<<44<66<4==*""*d*d*****"******6****6***=***"***d********r   c                   V ^8  d   QhRR/# r   r   )r   s   "r   r   r   V   s      4 r   c                    \        \        4       . 4      p V P                  qP                  pR q2V8H  qD'       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      R\        P                  ! V4      R\        P                  ! V4      /,          pRRV/,          p\        \        P                  ! V4      4      hR;p;p;rCV P                  qP                  pR	q2VJ qD'       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      R\        P                  ! V4      R\        P                  ! V4      /,          pRRV/,          p\        \        P                  ! V4      4      hR;p;p;rCV P                  qP                  pR
\        P                  P                   3R\        P                  P"                  3.q2V8H  qD'       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      R\        P                  ! V4      R\        P                  ! V4      /,          pRRV/,          p\        \        P                  ! V4      4      hR;p;p;rCR# )r   r!   r"   r#   r$   r+   rl   r&   NTCancelSaver.   )zI%(py4)s
{%(py4)s = %(py2)s
{%(py2)s = %(py0)s.dialog
}.title
} == %(py7)sr,   )zI%(py4)s
{%(py4)s = %(py2)s
{%(py2)s = %(py0)s.dialog
}.modal
} is %(py7)s)zK%(py4)s
{%(py4)s = %(py2)s
{%(py2)s = %(py0)s.dialog
}.buttons
} == %(py7)s)r   r   r"   titler6   r7   r8   r9   r:   r;   r<   r=   modalbuttonsr   ResponseTypeCANCELOK)r"   rC   rD   ro   rE   rL   rH   s          r   1test_dialog_is_modal_with_cancel_and_save_buttonsr{   V   s0   XZ$F==,,*,*,,,,,,,,,,,6,,,,6,,,=,,,,,,*,,,,,,,,==&&$&$&&&&&&&&&&&6&&&&6&&&=&&&&&&$&&&&&&&&==    	<,,334	**--.%  %          6   6   =        %        r   c                   V ^8  d   QhRR/# r   r   )r   s   "r   r   r   `   s     0 0D 0r   c            	        \        \        4       R  4      p V P                  pRq!VJq3'       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      R\        P                  ! V4      /,          pRRV/,          p\        \        P                  ! V4      4      hR;p;r2R# )
c                    R # )Nr   )	_settingss   &r   <lambda>Dtest_dialog_constructs_headless_without_gtk_module.<locals>.<lambda>a   s    $r   Nr!   r"   r#   r)   r*   r+   )is not)z=%(py2)s
{%(py2)s = %(py0)s.auto_close_switch
} is not %(py5)s)r   r   r4   r6   r7   r8   r9   r:   r;   r<   r=   )r"   rC   rJ   rD   rK   rL   s         r   2test_dialog_constructs_headless_without_gtk_moduler   `   s    HJ(>?F##/4/4/////#//////6////6///#///4////////r   )
__future__r   builtinsr8   _pytest.assertion.rewrite	assertionrewriter6   syspathlibr   pathinsertstr__file__resolveparentsui.settings_dialogr   r   ui.settings_storer   r   rM   r\   r`   ri   rp   r{   r   r   r   r   <module>r      sp    "   
  3tH~--/77:; < ; &K $$.:

3+0r   