old_contents: from mockredis.redis import MockRedis
  
  
  class MockRedisPipeline(MockRedis):
      """
      Imitate a redis-python pipeline object
      so unit tests can run without needing a
      real Redis server.
      """
  
      def __init__(self, redis, timeouts):
          """Initialize the object."""
          self.redis = redis
          self.timeouts = timeouts
  
      def execute(self):
          """
          Return any results in the results queue and flush.
          """
          return_results = self.results_queue
          self.results_queue = []
  
          return return_results
  
      def __exit__(self, *argv, **kwargs):
          pass
  
      def __enter__(self, *argv, **kwargs):
          return self
  
new_contents: from mockredis.redis import MockRedis
  
  
  class MockRedisPipeline(MockRedis):
      """
      Imitate a redis-python pipeline object
      so unit tests can run without needing a
      real Redis server.
      """
  
      def __init__(self, redis, timeouts):
          """Initialize the object."""
          self.redis = redis
          self.timeouts = timeouts
          self.strict = False
  
      def execute(self):
          """
          Return any results in the results queue and flush.
          """
          return_results = self.results_queue
          self.results_queue = []
  
          return return_results
  
      def __exit__(self, *argv, **kwargs):
          pass
  
      def __enter__(self, *argv, **kwargs):
          return self
  
subject: Add strict property to the pipeline.