Here’s a neat way to embed tests in a module’s file, so that when the file is run standalone, the tests are called and run by default.
The trick is the standard if __name__ == “__main__”: section that’s at the end of your Python file. If you include your test classes in your module’s file, […]
I’ve been working a lot recently on an internal project for a large software company, and we’re doing it in Google App Engine with Google Cloud SQL behind it. I like this combo, because it allows me to code a pretty powerful web application in […]