def METHOD_NAME(self):
    super().METHOD_NAME()
    # Patch in a memory-based user service instead of using the persistent version
    course_tag_api = MemoryCourseTagAPI()
    self.user_service_patcher = patch(
        'openedx.core.djangoapps.user_api.partition_schemes.course_tag_api', course_tag_api
    )
    self.user_service_patcher.start()
    self.addCleanup(self.user_service_patcher.stop)
    # Create a test user
    self.user = UserFactory.create()