1414@pytest .mark .rpc
1515class TestBackupMnemonicAndRestore :
1616
17- await_signals = [
18- SignalType .MEDIASERVER_STARTED .value ,
19- SignalType .NODE_STARTED .value ,
20- SignalType .NODE_READY .value ,
21- SignalType .NODE_LOGIN .value ,
22- SignalType .NODE_STOPPED .value ,
23- ]
24-
2517 @pytest .fixture (autouse = True )
2618 def setup_cleanup (self , close_status_backend_containers ):
2719 """Automatically cleanup containers after each test"""
2820 yield
2921
3022 def test_profile_creation_and_mnemonics_backup (self ):
3123 # Create a new account container and initialize
32- account = StatusBackend (self . await_signals )
24+ account = StatusBackend ()
3325 account .init_status_backend ()
3426 account .create_account_and_login ()
3527 account .wait_for_login ()
@@ -43,7 +35,7 @@ def test_profile_creation_and_mnemonics_backup(self):
4335
4436 def test_backup_account_and_restore_it_via_mnemonics (self ):
4537 # Create original account and backup mnemonic
46- original_account = StatusBackend (self . await_signals )
38+ original_account = StatusBackend ()
4739 original_account .init_status_backend ()
4840 original_account .create_account_and_login ()
4941 original_account .wait_for_login ()
@@ -56,7 +48,7 @@ def test_backup_account_and_restore_it_via_mnemonics(self):
5648 user .passphrase = mnemonic
5749
5850 # Restore account in a new container
59- restored_account = StatusBackend (self . await_signals )
51+ restored_account = StatusBackend ()
6052 restored_account .init_status_backend ()
6153 restored_account .restore_account_and_login (user = user )
6254 restored_account .wait_for_login ()
@@ -90,7 +82,7 @@ def test_backup_account_and_restore_it_via_mnemonics(self):
9082 )
9183 def test_restore_app_different_valid_size_mnemonics (self , user_mnemonic ):
9284 # Initialize backend client and restore account using user_mnemonic.
93- restored_account = StatusBackend (self . await_signals )
85+ restored_account = StatusBackend ()
9486 restored_account .init_status_backend ()
9587 restored_account .restore_account_and_login (user = user_mnemonic )
9688 restored_account .wait_for_login ()
@@ -116,7 +108,7 @@ def test_restore_with_arbitrary_size_mnemonics(self, mnemonic_size):
116108 user = copy .deepcopy (user_mnemonic_12 )
117109 user .passphrase = " " .join ("" .join (random .choice (string .ascii_lowercase ) for _ in range (random .randint (2 , 10 ))) for _ in range (mnemonic_size ))
118110
119- restored_account = StatusBackend (self . await_signals )
111+ restored_account = StatusBackend ()
120112 restored_account .init_status_backend ()
121113 restored_account .restore_account_and_login (user = user )
122114 restored_account .wait_for_login ()
@@ -131,7 +123,7 @@ def test_restore_with_mnemonic_with_special_chars(self):
131123 user = copy .deepcopy (user_mnemonic_12 )
132124 user .passphrase = "<>?`~!@#$%^&*()_+1 $fgdg ^&*()"
133125
134- restored_account = StatusBackend (self . await_signals )
126+ restored_account = StatusBackend ()
135127 restored_account .init_status_backend ()
136128 restored_account .restore_account_and_login (user = user )
137129 restored_account .wait_for_login ()
@@ -144,7 +136,7 @@ def test_restore_with_empty_mnemonic(self):
144136 # Restore with empty mnemonic isn't allowed
145137 user = copy .deepcopy (user_mnemonic_12 )
146138
147- restored_account = StatusBackend (self . await_signals )
139+ restored_account = StatusBackend ()
148140 restored_account .init_status_backend ()
149141 restored_account ._set_display_name ()
150142 data = restored_account ._create_account_request (user )
@@ -155,7 +147,7 @@ def test_restore_with_empty_mnemonic(self):
155147 def test_restore_with_both_mnemonic_and_keycard (self ):
156148 # Restore with both keycard and mnemonic isn't allowed
157149 user = copy .deepcopy (user_mnemonic_12 )
158- restored_account = StatusBackend (self . await_signals )
150+ restored_account = StatusBackend ()
159151 restored_account .init_status_backend ()
160152 restored_account ._set_display_name ()
161153 data = restored_account ._create_account_request (user )
@@ -166,7 +158,7 @@ def test_restore_with_both_mnemonic_and_keycard(self):
166158
167159 def test_restored_on_existing_restored_account_fails (self ):
168160 user = copy .deepcopy (user_mnemonic_12 )
169- restored_account = StatusBackend (self . await_signals )
161+ restored_account = StatusBackend ()
170162 restored_account .init_status_backend ()
171163 restored_account .restore_account_and_login (user = user )
172164 restored_account .wait_for_login ()
0 commit comments