title: Package-scoped fixtures in pytest 2.3
body: <p>In the latest release of pytest, it is easy to create fixtures that are function, class, module or session-scoped like this:</p>
  
  <pre><code>@pytest.fixture(scope="module") 
  def db():
       return DB()
  </code></pre>
  
  <p>That creates a fixture that is going to be called only once for each python module in which it is used.</p>
  
  <p>But what about fixtures that need to be called once per python package ? 
  (With nose, it can be done using setUp/tearDown methods in the <code>__init__.py</code> of the package)</p>