# Using pytest on custom actions

**URL:** <https://forum.rasa.com/t/using-pytest-on-custom-actions/26012>\
**Category:** Rasa Open Source\
**Created:** [March 12, 2020, 6:23pm UTC](https://forum.rasa.com/t/using-pytest-on-custom-actions/26012 "2020-03-12T18:23:27Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![bayesianwannabe](https://avatars.discourse-cdn.com/v4/letter/b/bc8723/32.png) [@bayesianwannabe](https://forum.rasa.com/u/bayesianwannabe)\
**Post date:** [March 12, 2020, 6:23pm UTC](https://forum.rasa.com/t/using-pytest-on-custom-actions/26012/1 "2020-03-12T18:23:27Z")

</div>

Hey all,

Is there any template script for testing the classes from the custom actions defined on ‘actions.py’? Auxiliar functions seem ok and ‘normal’. But stuff involving the tracker/dispatcher seems harder as I don’t know how to operate well in the python api to create ‘synthetic examples’ for the tracker.

Any tips or solid guide for testing the custom actions in Rasa?

---

<div class="post-metadata">

**Author:** ![KarthiAru](https://dub1.discourse-cdn.com/flex013/user_avatar/forum.rasa.com/karthiaru/32/7163_2.png) [@KarthiAru](https://forum.rasa.com/u/KarthiAru)\
**Post date:** [March 13, 2020, 3:34am UTC](https://forum.rasa.com/t/using-pytest-on-custom-actions/26012/2 "2020-03-13T03:34:45Z")

</div>

+1 Looking for the same!

---

<div class="post-metadata">

**Author:** ![kcoder](https://avatars.discourse-cdn.com/v4/letter/k/ee59a6/32.png) [@kcoder](https://forum.rasa.com/u/kcoder)\
**Post date:** [July 17, 2020, 5:38am UTC](https://forum.rasa.com/t/using-pytest-on-custom-actions/26012/3 "2020-07-17T05:38:39Z")

</div>

Can any one help on this please? keeping in dispatcher, tracker, domain objects into considerations, what would be a decent approach in running pytest on custom actions?
