webhook-walkthrough: Replace references to old style fixture names.

The webhook-walkthrough has now been updated to reflect the recent
decision to rename webhook fixtures from
<webhook_name>/fixtures/<webhook_name>_<event_type>.json to
<webhook_name>/fixtures/<event_type>.json.
This commit is contained in:
Eeshan Garg 2017-05-13 20:13:35 -02:30
parent 597db11a98
commit eb229dd40e
1 changed files with 4 additions and 4 deletions

View File

@ -26,7 +26,7 @@ Fixtures enable the testing of webhook integration code without the need to
actually contact the service being integrated.
Because `Hello World` is a very simple webhook that does one thing, it requires
only one fixture, `zerver/webhooks/helloworld/fixtures/helloworld_hello.json`:
only one fixture, `zerver/webhooks/helloworld/fixtures/hello.json`:
```
{
@ -188,7 +188,7 @@ Using `manage.py` from within the Zulip development environment:
```
(zulip-venv)vagrant@vagrant-ubuntu-trusty-64:/srv/zulip$
./manage.py send_webhook_fixture_message \
> --fixture=zerver/webhooks/helloworld/fixtures/helloworld_hello.json \
> --fixture=zerver/webhooks/helloworld/fixtures/hello.json \
> '--url=http://localhost:9991/api/v1/external/helloworld?api_key=<api_key>'
```
After which you should see something similar to:
@ -283,7 +283,7 @@ class called something like `test_goodbye_message`:
content_type="application/x-www-form-urlencoded")
```
As well as a new fixture `helloworld_goodbye.json` in
As well as a new fixture `goodbye.json` in
`zerver/webhooks/helloworld/fixtures/`:
```
@ -356,7 +356,7 @@ Second, you need to write the actual documentation content in
<div class="codehilite">
<pre>(zulip-venv)vagrant@vagrant-ubuntu-trusty-64:/srv/zulip$
./manage.py send_webhook_fixture_message \
> --fixture=zerver/webhooks/helloworld/fixtures/helloworld_hello.json \
> --fixture=zerver/webhooks/helloworld/fixtures/hello.json \
> '--url=http://localhost:9991/api/v1/external/helloworld?api_key=&lt;api_key&gt;'
</pre>
</div>