# Custom Actions \[Test\]

**URL:** <https://forum.rasa.com/t/custom-actions-test/42612>\
**Category:** Rasa Open Source\
**Created:** [April 19, 2021, 5:35pm UTC](https://forum.rasa.com/t/custom-actions-test/42612 "2021-04-19T17:35:27Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![laboratory](https://avatars.discourse-cdn.com/v4/letter/l/df705f/32.png) [@laboratory](https://forum.rasa.com/u/laboratory)\
**Post date:** [April 19, 2021, 5:35pm UTC](https://forum.rasa.com/t/custom-actions-test/42612/1 "2021-04-19T17:35:27Z")

</div>

I see in the financial-demo bot, only custom actions that involved slots are tested (used as examples) in `test_actions.py`. My question is can we test custom actions that do not use slots, (specifically, that return dynamic data from an API and wasn’t set to slots)?

If so, how can I do that? Thanks.

---

<div class="post-metadata">

**Author:** ![Dustyposa](https://dub1.discourse-cdn.com/flex013/user_avatar/forum.rasa.com/dustyposa/32/13745_2.png) [@Dustyposa](https://forum.rasa.com/u/Dustyposa)\
**Post date:** [April 20, 2021, 2:20am UTC](https://forum.rasa.com/t/custom-actions-test/42612/2 "2021-04-20T02:20:23Z")

</div>

like this:

```auto
  - rule: greet
    steps:
      - intent: greet
      - action: action_custom_greet

```

---

<div class="post-metadata">

**Author:** ![laboratory](https://avatars.discourse-cdn.com/v4/letter/l/df705f/32.png) [@laboratory](https://forum.rasa.com/u/laboratory)\
**Post date:** [April 20, 2021, 2:43am UTC](https://forum.rasa.com/t/custom-actions-test/42612/3 "2021-04-20T02:43:16Z")

</div>

Thank you. Your response looks closely to test\_stories.yml. Even at that, your response doesn’t look like a test to me (if it’s intended to be story testing).

Regardless, if you look at my question carefully you’ll notice I’m asking about test\_actions.py. You can take a look at the financial\_demo example to understand things clearer/better.

Thank you once again.
