original_docstring: Test the configuration of a plugin.
docstring: Test the configuration of a plugin.
docstring_tokens: Test the configuration of a plugin .
code: def test(ctx):
      """Test the configuration of a plugin."""
      invoker = ctx.obj["invoker"]
      if not invoker:
          raise CliError("Testing of the Meltano project configuration is not supported")
  
      session = ctx.obj["session"]
  
      async def _validate():  # noqa: WPS430
          async with invoker.prepared(session):
              plugin_test_service = PluginTestServiceFactory(invoker).get_test_service()
              return await plugin_test_service.validate()
  
      is_valid, detail = run_async(_validate())
  
      if not is_valid:
          raise CliError("\n".join(("Plugin configuration is invalid", detail)))
  
      click.secho("Plugin configuration is valid", fg="green")
code_tokens: def test ( ctx ) : invoker = ctx . obj [ "invoker" ] if not invoker : raise CliError ( "Testing of the Meltano project configuration is not supported" ) session = ctx . obj [ "session" ] async def _validate ( ) : async with invoker . prepared ( session ) : plugin_test_service = PluginTestServiceFactory ( invoker ) . get_test_service ( ) return await plugin_test_service . validate ( ) is_valid , detail = run_async ( _validate ( ) ) if not is_valid : raise CliError ( "\n" . join ( ( "Plugin configuration is invalid" , detail ) ) ) click . secho ( "Plugin configuration is valid" , fg = "green" )
short_docstring: Test the configuration of a plugin.
short_docstring_tokens: Test the configuration of a plugin .
comment: """Test the configuration of a plugin."""$SEP$# noqa: WPS430