Esempio n. 1
0
    def test_create_remote_digest_error(self, dummy_plugin, connection_settings, caplog):
        dummy_plugin.error_create_remote_digest = True
        syncing._start('connection', connection_settings)

        expected = 'Error from dummyplugin plugin: Could not create remote digest, skipping this file'
        record = caplog.records[-1]
        assert record.message == expected
Esempio n. 2
0
    def test_list_path_error(self, dummy_plugin, connection_settings, caplog):
        dummy_plugin.error_list_path = True
        syncing._start('connection', connection_settings)

        expected = 'Error from dummyplugin plugin: Could not list path, skipping this subject'
        record = caplog.records[-1]
        assert record.message == expected