#NEWLINE# def test_edit_anyway( editor ) : #NEWLINE# #INDENT# editor . panels . append ( panels . EncodingPanel ( ) , panels . EncodingPanel . Position . TOP ) #NEWLINE# editor . file . open ( PATH , encoding = 'utf_8' , use_cached_encoding = False ) #NEWLINE# editor . show ( ) #NEWLINE# QTest . qWait ( 1000 ) #NEWLINE# pnl = get_panel ( pnl ) #NEWLINE# assert ( pnl . isVisible ( ) is True ) #NEWLINE# assert ( pnl . ui . comboBoxEncodings . current_encoding == 'utf_8' ) #NEWLINE# pnl . ui . pushButtonEdit . clicked . emit ( True ) #NEWLINE# QTest . qWait ( 1000 ) #NEWLINE# assert ( pnl . isVisible ( ) is False )