def test_unit():
 os.environ['SECUREDROP_ENV'] = 'test'
 import config
 _start_test_rqworker(config)
 test_rc = int(subprocess.call(['py.test', '--cov']))
 _stop_test_rqworker()
 sys.exit(test_rc)

def test_unit ( ) : os . environ [ 'SECUREDROP_ENV' ] = 'test' import config _start_test_rqworker ( config ) test_rc = int ( subprocess . call ( [ 'py.test' , '--cov' ] ) ) _stop_test_rqworker ( ) sys . exit ( test_rc )
runs the unit tests .