title: Pytest Mock AWS SecurityManager
body: <p>my project has a file called config.py which has, among others, the following code:</p>
  <pre><code>class Secret(Enum):
      DATABASE_A = 'name_of_secret_database_A'
      DATABASE_A = 'name_of_secret_database_A'
  
      def secret(self):
          if self.value:
              return get_secret(self.value)
          return {}
  
  def get_secret(secret_name):
      session = Session()
      client = session.client(
          service_name='secretsmanager',
          region_name='us-east-1',
      )
      secret_value = client.get_secret_value(SecretId=secret_name)
      return loads(secret_value.get('SecretString', &quot;{}&quot;))
  </code></pre>
  <p>I need to somehow mock <strong>get_secret</strong> in tests with pytest for all enum calls, for example <em>Secret.DATABASE_A.secret ()</em></p>