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'])

import unittest


if __name__ == '__main__':
    unittest.main(module='flask_api.tests')

Simplify test execution to restore coverage measurement
Simplify test execution to restore coverage measurement
