facebook / facebook/TestSlide

Validate that contexts are not async defs

Open
#143 1 comment 0 reactions 0 assignees View on GitHub
easy enhancement good first issue help wanted TestSlide DSL
Dominant language
Python
Stars
149
Forks
62
PR merge metrics
No merged PRs in 30d

Description

This should yield a failure:

```python
@context
def top(context):
@context.sub_context
async def sub(context):
...
```

But is currently being silently ignored. Let's turn this into a failure.

Check:

- `@context`
- `@context.sub_context`
- `@context.shared_context`

Contributor guide

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.