MCPcopy Create free account
hub / github.com/dchevell/flask-executor / test_invalid_executor_init

Function test_invalid_executor_init

tests/test_executor.py:66–73  ·  view source on GitHub ↗
(default_app)

Source from the content-addressed store, hash-verified

64 assert isinstance(executor._self, concurrent.futures.ThreadPoolExecutor)
65
66def test_invalid_executor_init(default_app):
67 default_app.config['EXECUTOR_TYPE'] = 'invalid_value'
68 try:
69 executor = Executor(default_app)
70 except ValueError:
71 assert True
72 else:
73 assert False
74
75def test_default_workers(app):
76 executor_type = app.config['EXECUTOR_TYPE']

Callers

nothing calls this directly

Calls 1

ExecutorClass · 0.90

Tested by

no test coverage detected