@@ -153,7 +153,8 @@ def test_get_contacts_and_delete(self, acfactory):
153153
154154 def test_delete_referenced_contact_hides_contact (self , acfactory ):
155155 ac1 = acfactory .get_pseudo_configured_account ()
156- contact1 = ac1 .create_contact ("some1@example.com" , name = "some1" )
156+ ac2 = acfactory .get_pseudo_configured_account ()
157+ contact1 = ac1 .create_contact (ac2 )
157158 msg = contact1 .create_chat ().send_text ("one message" )
158159 assert ac1 .delete_contact (contact1 )
159160 assert not msg .filemime
@@ -185,8 +186,9 @@ def ac1(self, acfactory):
185186 return acfactory .get_pseudo_configured_account ()
186187
187188 @pytest .fixture ()
188- def chat1 (self , ac1 ):
189- return ac1 .create_contact ("some1@example.org" , name = "some1" ).create_chat ()
189+ def chat1 (self , ac1 , acfactory ):
190+ ac2 = acfactory .get_pseudo_configured_account ()
191+ return ac1 .create_contact (ac2 ).create_chat ()
190192
191193 def test_display (self , chat1 ):
192194 str (chat1 )
@@ -404,7 +406,7 @@ def test_create_contact(self, acfactory):
404406 contact2 = ac1 .create_contact ("display1 <x@example.org>" , "real" )
405407 assert contact2 .name == "real"
406408
407- def test_send_lots_of_offline_msgs (self , acfactory ):
409+ def test_send_lots_of_offline_msgs (self , acfactory , chat1 ):
408410 ac1 = acfactory .get_pseudo_configured_account ()
409411 ac1 .set_config ("configured_mail_server" , "example.org" )
410412 ac1 .set_config ("configured_mail_user" , "example.org" )
@@ -413,13 +415,13 @@ def test_send_lots_of_offline_msgs(self, acfactory):
413415 ac1 .set_config ("configured_send_user" , "example.org" )
414416 ac1 .set_config ("configured_send_pw" , "example.org" )
415417 ac1 .start_io ()
416- chat = ac1 .create_contact ("some1@example.org" , name = "some1" ).create_chat ()
417418 for i in range (50 ):
418- chat .send_text ("hello" )
419+ chat1 .send_text ("hello" )
419420
420421 def test_create_chat_simple (self , acfactory ):
421422 ac1 = acfactory .get_pseudo_configured_account ()
422- contact1 = ac1 .create_contact ("some1@example.org" , name = "some1" )
423+ ac2 = acfactory .get_pseudo_configured_account ()
424+ contact1 = ac1 .create_contact (ac2 )
423425 contact1 .create_chat ().send_text ("hello" )
424426
425427 def test_chat_message_distinctions (self , ac1 , chat1 ):
0 commit comments