old_contents: from flask import Flask
  from logging.handlers import RotatingFileHandler
  
  from sponge.config import config
  from sponge.version import __version__
  
  
  app = Flask(__name__)
  
  app.config['SQLALCHEMY_DATABASE_URI'] = config.get('db', 'uri')
  app.config['VERSION'] = __version__
  
  if config.getboolean('main', 'propagate_exceptions'):
      app.config['PROPAGATE_EXCEPTIONS'] = True
  
  if config.getboolean('logging', 'debug'):
      app.debug = True
  app.logger.debug('Debug enabled')
  
  logfile = config.get('logging', 'file')
  if logfile != 'disabled':
      handler = RotatingFileHandler(
          logfile,
          maxBytes=10000,
          backupCount=1,
      )
      app.logger.addHandler(handler)
  
  # Must be imported last
  import sponge.views
  
new_contents: from flask import Flask
  from logging.handlers import RotatingFileHandler
  
  from sponge.config import config
  
  app = Flask(__name__)
  
  app.config['SQLALCHEMY_DATABASE_URI'] = config.get('db', 'uri')
  
  if config.getboolean('main', 'propagate_exceptions'):
      app.config['PROPAGATE_EXCEPTIONS'] = True
  
  if config.getboolean('logging', 'debug'):
      app.debug = True
  app.logger.debug('Debug enabled')
  
  logfile = config.get('logging', 'file')
  if logfile != 'disabled':
      handler = RotatingFileHandler(
          logfile,
          maxBytes=10000,
          backupCount=1,
      )
      app.logger.addHandler(handler)
  
  # Must be imported last
  import sponge.views
  
subject: Fix tests