old_contents: import unittest
  import sys
  import subprocess
  
  
  if __name__ == '__main__':
      if len(sys.argv) > 1:
          unittest.main(module='flask_api.tests')
      else:
          subprocess.call([sys.executable, '-m', 'unittest', 'discover'])
  
new_contents: import unittest
  
  
  if __name__ == '__main__':
      unittest.main(module='flask_api.tests')
  
subject: Simplify test execution to restore coverage measurement