def METHOD_NAME(self):
    """Set up the temp directory to use for the tests."""
    self.stdout = sys.stdout
    sys.stdout = StringIO()
    self.dir = tempfile.mkdtemp()
    self.old_path = migrator.MIGRATIONS_PATH
    migrator.MIGRATIONS_PATH = Path(self.dir)