old_contents: import argparse
  import os
  import pytest
  
  
  def run(**kwargs):
      app = kwargs['app']
      parser = argparse.ArgumentParser()
      parser.add_argument(
          '--q', help='config file path', required=False,
          default=os.path.join(app.config['BASE_DIR'], 'tests'))
      args, extra_params = parser.parse_known_args()
      pytest.main(['-s', args.q])
  
new_contents: import argparse
  import os
  import pytest
  
  
  def run(**kwargs):
      app = kwargs['app']
      parser = argparse.ArgumentParser()
      parser.add_argument(
          '--q', help='config file path', required=False,
          default=os.path.join(app.config['BASE_DIR'], 'tests'))
      args, extra_params = parser.parse_known_args()
      exit(pytest.main(['-s', args.q]))
  
subject: return status msg when executing unit tests