facebook/TestSlide

Validate that contexts are not async defs

Open

#143 opened on Apr 7, 2020

 (1 comment) (0 reactions) (0 assignees)Python (58 forks)auto 404
TestSlide DSLeasyenhancementgood first issuehelp wanted

Repository metrics

Stars
 (147 stars)
PR merge metrics
 (PR metrics pending)

Description

This should yield a failure:

@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