New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
First stab at testing all the examples #69
Conversation
Cool, so we can see the expected failure of |
Hey you can replace this: app.run() with this if __name__ == "__main__":
app.run() |
OK, I've tried that in d4a134c and it all works :) |
The error is due missing |
OK, I've added the missing dependencies. I also removed Tox (probably overkill). |
@lwm I fixed the problem with blueprints and added blueprint example to You nees to rebase your PR. |
You may have conflicts in
this must give you the version from master and may resolve your conflicts. |
Awesome! I've rebased and simplified my approach. Should be green! |
This is because we will import each example in the tests and do not need the app to run automatically.
Fixup, fixup, fixup ... ok, I think it's ready for review now :) |
So, here's the big picture of what I was trying to do:
app.run(debug=True)
from the examples (for importing later)conftest.py
fixtureThe final step failed because the examples don't work :) Hence, we are getting somewhere.
You'd have to enable the Travis build since you are the admin of the project.Already up, nice!Code is kinda messy as I hacked it together, but this could give you an idea. Feel free to remix/remove anything that you don't want. No ego here :)
I've enabled Tox and Travis (via the configuration files (.travis.yml and tox.ini) which can automate tedious testing of python projects).
I think we can use http://flex-swagger.readthedocs.io/en/latest/ for validation?
Follows from #64 (comment).