old_contents: import pytest
  
  from snakeeyes.app import create_app
  
  
  @pytest.yield_fixture(scope='session')
  def app():
      """
      Setup our flask test app, this only gets executed once.
  
      :return: Flask app
      """
      params = {
          'DEBUG': False,
          'TESTING': True,
          'WTF_CSRF_ENABLED': False
      }
  
      _app = create_app(settings_override=params)
  
      # Establish an application context before running the tests.
      ctx = _app.app_context()
      ctx.push()
  
      yield _app
  
      ctx.pop()
  
  
  @pytest.yield_fixture(scope='function')
  def client(app):
      """
      Setup an app client, this gets executed for each test function.
  
      :param app: Pytest fixture
      :return: Flask app client
      """
      yield app.test_client()
  
new_contents: import pytest
  
  from snakeeyes.app import create_app
  
  
  @pytest.fixture(scope='session')
  def app():
      """
      Setup our flask test app, this only gets executed once.
  
      :return: Flask app
      """
      params = {
          'DEBUG': False,
          'TESTING': True,
          'WTF_CSRF_ENABLED': False
      }
  
      _app = create_app(settings_override=params)
  
      # Establish an application context before running the tests.
      ctx = _app.app_context()
      ctx.push()
  
      yield _app
  
      ctx.pop()
  
  
  @pytest.fixture(scope='function')
  def client(app):
      """
      Setup an app client, this gets executed for each test function.
  
      :param app: Pytest fixture
      :return: Flask app client
      """
      yield app.test_client()
  
subject: Fix deprecration warnings for pytest