old_contents: import pytest
  from zope.testbrowser.wsgi import Browser
  
  import config
  from skylines import create_frontend_app
  from tests import setup_dirs
  
  
  @pytest.yield_fixture(scope="session")
  def app():
      """Set up global front-end app for functional tests
  
      Initialized once per test-run
      """
      app = create_frontend_app(config.TESTING_CONF_PATH)
      with app.app_context():
          setup_dirs(app)
          yield app
  
  
  @pytest.yield_fixture(scope="function")
  def browser(app):
      """
      A ``zope.testbrowser.wsgi.Browser`` instance for integration testing.
      """
      yield Browser('http://localhost/', wsgi_app=app.wsgi_app)
  
new_contents: import pytest
  from zope.testbrowser.wsgi import Browser
  
  import config
  from skylines import create_frontend_app
  from tests import setup_dirs
  
  
  @pytest.fixture(scope="session")
  def app():
      """Set up global front-end app for functional tests
  
      Initialized once per test-run
      """
      app = create_frontend_app(config.TESTING_CONF_PATH)
      setup_dirs(app)
      return app
  
  
  @pytest.yield_fixture(scope="function")
  def browser(app):
      """
      A ``zope.testbrowser.wsgi.Browser`` instance for integration testing.
      """
      yield Browser('http://localhost/', wsgi_app=app.wsgi_app)
  
subject: Simplify 'app' fixture