title: python patch on all tests with
body: <p>I want to set a single patch for all my tests, and I use <code>patch</code> for it.</p>
  
  <p>ie:</p>
  
  <pre><code> def setUp(self):
      self.patcher = patch('src.FetchFunction.caching.get_dynamo')
      self.addCleanup(self.patcher.stop)
      self.mock_foo = self.patcher.start()
  </code></pre>
  
  <p>now this <code>src.FetchFunction.caching.get_dynamo</code> is the path for my module I wanna patch.</p>
  
  <p>But where I use this module in the past and I wanted to patch in my tests I did:</p>
  
  <pre><code>patch('path.to.tested.module.get_dynamo')
  </code></pre>
  
  <p>now if I do the first example my <code>get_dynamo</code> is not patched</p>
  
  <p>BUT if I copy the same path as the same example, the <code>get_dynamo</code> is patched.</p>
  
  <p>BUT that means I need to patch it for each single use of <code>get_dynamo</code> in my code.</p>
  
  <p>I mean if I use it from <code>file1</code> so</p>
  
  <pre><code>patch('path.to.file1.get_dynamo')
  </code></pre>
  
  <p>and if I wanna patch at <code>file2</code> so</p>
  
  <pre><code>patch('path.to.file2.get_dynamo')
  </code></pre>
  
  <p>any ideas how to set it up properly?</p>
  
  <p>Thanks</p>