Sha256: 1d172e705dbbc7429ca255a50f82a7ec03e362398074b74847a00e3f583a142f
Contents?: true
Size: 373 Bytes
Versions: 1
Compression:
Stored size: 373 Bytes
Contents
# -- REQUIRES: Python >= 3.5 from behave import step from behave.api.async_step import async_run_until_complete import asyncio @step('an async-step waits {duration:f} seconds') @async_run_until_complete async def step_async_step_waits_seconds_py35(context, duration): """Simple example of a coroutine as async-step (in Python 3.5)""" await asyncio.sleep(duration)
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
busser-behave-0.1.3 | vendor/behave/examples/async_step/features/steps/async_steps35.py |