-
Hello, I'm currently implementing testing to my bulk-action-plugin in wolflu05/inventree-bulk-plugin#6. I already implemented unit tests for my generation library and now want to extend that to also test my plugins generation of database objects. What would be the recommended way to run Django tests from an plugin as the docs recommend to do, as I have no Django settings module?
[Source] |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment 16 replies
-
@wolflu05 you can add tests as with any other django app. You can then use a github action to run the tests. Mount your repo folder into the latest docker image and run the |
Beta Was this translation helpful? Give feedback.
@wolflu05 I think I found the problem. Seems like the mapping only works via config file (this is how I do it currently) - fix incomming.