feat: add support for Wutta <-> Wutta import/export
This commit is contained in:
parent
bfc45bd0f0
commit
ae282ab468
25 changed files with 719 additions and 21 deletions
|
|
@ -5,6 +5,7 @@ from wuttjamaican.testing import ConfigTestCase
|
|||
from wuttasync import emails as mod
|
||||
from wuttasync.importing import ImportHandler
|
||||
from wuttasync.testing import ImportExportWarningTestCase
|
||||
from wuttasync.conf import WuttaSyncConfig
|
||||
|
||||
|
||||
class FromFooToWutta(ImportHandler):
|
||||
|
|
@ -74,8 +75,21 @@ class TestImportExportWarning(ConfigTestCase):
|
|||
|
||||
class TestEmailSettings(ImportExportWarningTestCase):
|
||||
|
||||
def make_config(self, files=None, **kwargs):
|
||||
config = super().make_config(files, **kwargs)
|
||||
|
||||
# need this to ensure default import/export handlers. since
|
||||
# behavior can vary depending on what packages are installed.
|
||||
ext = WuttaSyncConfig()
|
||||
ext.configure(config)
|
||||
|
||||
return config
|
||||
|
||||
def test_import_to_versions_from_wutta_warning(self):
|
||||
self.do_test_preview("import_to_versions_from_wutta_warning")
|
||||
|
||||
def test_import_to_wutta_from_csv_warning(self):
|
||||
self.do_test_preview("import_to_wutta_from_csv_warning")
|
||||
|
||||
def test_import_to_wutta_from_wutta_warning(self):
|
||||
self.do_test_preview("import_to_wutta_from_wutta_warning")
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue