#Nukesforbreakfast

1 messages · Page 1 of 1 (latest)

onyx archBOT
charred imp
#

Hi there

#

No this isn't possible

#

Really you just want to mock the API here for tests

#

You shouldn't need to programmatically call the CLI

orchid marsh
#

in this case I'm testing the webhook handler, so I just want to get a webhook for specific enabled events.

charred imp
#

That's fine, I'd still recommend mocking. Otherwise you can write your own little scripts to emulate what the CLI does in order to trigger those events via the API

#

The trigger commands just run a fixture which is a sequence of API calls

orchid marsh
#

is there source available that shows the fixtures the CLI uses?

#

because that was the reason the CLI was useful, is that it did the fixture work for you.