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

Function test_submit_app_context

tests/test_executor.py:146–152  ·  view source on GitHub ↗
(app)

Source from the content-addressed store, hash-verified

144 assert 0
145
146def test_submit_app_context(app):
147 test_value = random.randint(1, 101)
148 app.config['TEST_VALUE'] = test_value
149 executor = Executor(app)
150 with app.test_request_context(''):
151 future = executor.submit(app_context_test_value)
152 assert future.result() == test_value
153
154def test_submit_g_context_process(app):
155 test_value = random.randint(1, 101)

Callers

nothing calls this directly

Calls 2

submitMethod · 0.95
ExecutorClass · 0.90

Tested by

no test coverage detected