rgoliveira / petreon

3 stars 1 forks source link

Decide on a testing strategy and write some initial tests #6

Open rgoliveira opened 7 years ago

rgoliveira commented 7 years ago

Someone with some Python experience should help on this one...

rgoliveira commented 7 years ago

Decide on a testing strategy and write some initial tests

ecoerod commented 7 years ago

In the demo test suite I "implemented" for Travis I set up a very basic py.test structure. I guess I can setup a bigger testing example with some organization to it.

Shall I make the tests fail at the start or make them "assert True" until the implementation process has started?

ecoerod commented 7 years ago

I'll push a very basic test setup in a sec to showcase how the tests work in pytest. Still not completely implemented, because testing Flask seems to be a bit more complex than I thought.

I may need to refactor a lot of the setup in app.py to make it work.