python-mattermost-driver icon indicating copy to clipboard operation
python-mattermost-driver copied to clipboard

Docker environment to run tests

Open Vaelor opened this issue 6 years ago • 1 comments

I really want to have tests in this project.

What I am thinking of is something simple for the start.

  • Mattermost docker instance
  • A test file that tests the basic things
    • Does it even start
    • Does the login work
    • Does the websocket work
    • Can I make successful post/put/get/delete request

This probably shouldn't test every api endpoint...

Vaelor avatar Oct 28 '19 23:10 Vaelor

Hi! I see this is a very old issue, but we've implemented pretty much exactly this (on a higher level, since we reply on mattermost-driver to do all the work for us) in the mmpy_bot integration tests . Perhaps you'll find that code useful as well.

jneeven avatar Mar 21 '21 11:03 jneeven