@@ -31,27 +31,24 @@ def test_add_second_address(acfactory) -> None:
3131 account .delete_transport (second_addr )
3232 assert len (account .list_transports ()) == 2
3333
34- # Enabling mvbox_move or only_fetch_mvbox
34+ # Enabling only_fetch_mvbox
3535 # is not allowed when multi-transport is enabled.
36- for option in ["mvbox_move" , "only_fetch_mvbox" ]:
37- with pytest .raises (JsonRpcError ):
38- account .set_config (option , "1" )
36+ with pytest .raises (JsonRpcError ):
37+ account .set_config ("only_fetch_mvbox" , "1" )
3938
4039 with pytest .raises (JsonRpcError ):
4140 account .set_config ("show_emails" , "0" )
4241
4342
44- @pytest .mark .parametrize ("key" , ["mvbox_move" , "only_fetch_mvbox" ])
45- def test_no_second_transport_with_mvbox (acfactory , key ) -> None :
43+ def test_no_second_transport_with_mvbox (acfactory ) -> None :
4644 """Test that second transport cannot be configured if mvbox is used."""
4745 account = acfactory .new_configured_account ()
4846 assert len (account .list_transports ()) == 1
4947
50- assert account .get_config ("mvbox_move" ) == "0"
5148 assert account .get_config ("only_fetch_mvbox" ) == "0"
5249
5350 qr = acfactory .get_account_qr ()
54- account .set_config (key , "1" )
51+ account .set_config ("only_fetch_mvbox" , "1" )
5552
5653 with pytest .raises (JsonRpcError ):
5754 account .add_transport_from_qr (qr )
@@ -120,30 +117,6 @@ def test_change_address(acfactory) -> None:
120117 assert sender_addr2 == new_alice_addr
121118
122119
123- @pytest .mark .parametrize ("is_chatmail" , ["0" , "1" ])
124- def test_mvbox_move_first_transport (acfactory , is_chatmail ) -> None :
125- """Test that mvbox_move is disabled by default even for non-chatmail accounts.
126- Disabling mvbox_move is required to be able to setup a second transport.
127- """
128- account = acfactory .get_unconfigured_account ()
129-
130- account .set_config ("fix_is_chatmail" , "1" )
131- account .set_config ("is_chatmail" , is_chatmail )
132-
133- # The default value when the setting is unset is "1".
134- # This is not changed for compatibility with old databases
135- # imported from backups.
136- assert account .get_config ("mvbox_move" ) == "1"
137-
138- qr = acfactory .get_account_qr ()
139- account .add_transport_from_qr (qr )
140-
141- # Once the first transport is set up,
142- # mvbox_move is disabled.
143- assert account .get_config ("mvbox_move" ) == "0"
144- assert account .get_config ("is_chatmail" ) == is_chatmail
145-
146-
147120def test_reconfigure_transport (acfactory ) -> None :
148121 """Test that reconfiguring the transport works
149122 even if settings not supported for multi-transport
0 commit comments