import os
import sys
import unittest

import coverage

#from .tests import FlackTests
from .twitter import TestTwitterStream

def run():
    os.environ['FLACK_CONFIG'] = 'testing'

    # start coverage engine
    cov = coverage.Coverage(branch=True)
    cov.start()

    # run tests
    tests = unittest.TestLoader().discover('.')
    ok = unittest.TextTestRunner(verbosity=2).run(tests).wasSuccessful()

    # print coverage report
    cov.stop()
    print('')
    cov.report(omit=['manage.py', 'tests/*', 'venv*/*'])

    sys.exit(0 if ok else 1)

if __name__ == "__main__":
    unittest.main()
ee875f3fbc29e7da52dce1a7f22af61fcd1cb5f3
<mask token>

<mask token>


def run():
    os.environ['FLACK_CONFIG'] = 'testing'
    cov = coverage.Coverage(branch=True)
    cov.start()
    tests = unittest.TestLoader().discover('.')
    ok = unittest.TextTestRunner(verbosity=2).run(tests).wasSuccessful()
    cov.stop()
    print('')
    cov.report(omit=['manage.py', 'tests/*', 'venv*/*'])
    sys.exit(0 if ok else 1)


<mask token>

<mask token>


def run():
    os.environ['FLACK_CONFIG'] = 'testing'
    cov = coverage.Coverage(branch=True)
    cov.start()
    tests = unittest.TestLoader().discover('.')
    ok = unittest.TextTestRunner(verbosity=2).run(tests).wasSuccessful()
    cov.stop()
    print('')
    cov.report(omit=['manage.py', 'tests/*', 'venv*/*'])
    sys.exit(0 if ok else 1)


if __name__ == '__main__':
    unittest.main()

import os
import sys
import unittest
import coverage
from .twitter import TestTwitterStream


def run():
    os.environ['FLACK_CONFIG'] = 'testing'
    cov = coverage.Coverage(branch=True)
    cov.start()
    tests = unittest.TestLoader().discover('.')
    ok = unittest.TextTestRunner(verbosity=2).run(tests).wasSuccessful()
    cov.stop()
    print('')
    cov.report(omit=['manage.py', 'tests/*', 'venv*/*'])
    sys.exit(0 if ok else 1)


if __name__ == '__main__':
    unittest.main()

import os
import sys
import unittest

import coverage

#from .tests import FlackTests
from .twitter import TestTwitterStream

def run():
    os.environ['FLACK_CONFIG'] = 'testing'

    # start coverage engine
    cov = coverage.Coverage(branch=True)
    cov.start()

    # run tests
    tests = unittest.TestLoader().discover('.')
    ok = unittest.TextTestRunner(verbosity=2).run(tests).wasSuccessful()

    # print coverage report
    cov.stop()
    print('')
    cov.report(omit=['manage.py', 'tests/*', 'venv*/*'])

    sys.exit(0 if ok else 1)

if __name__ == "__main__":
    unittest.main()