0
0
mirror of https://github.com/wagtail/wagtail.git synced 2024-11-30 01:46:24 +01:00

Add rule into upgrademodulepaths command for rewriting wagtail.tests imports

This commit is contained in:
Karl Hobley 2022-03-20 20:22:25 +00:00 committed by Matt Westcott
parent 7db4714a82
commit 2c854cc929

View File

@ -151,6 +151,7 @@ class UpdateModulePaths(Command):
"wagtail.contrib.styleguide",
),
# Added in Wagtail 3.0
(re.compile(r"\bwagtail\.tests\b"), "wagtail.test"),
(re.compile(r"\bwagtail\.core\b"), "wagtail"),
]