I like having high test coverage when building websites at work, but the more tests I write, the slower the suite becomes to run. This not only could discourage other team members from running the test suites themselves, but it also increases the time it takes for CI/CD to …
read moreBlog Posts
Here you will find various writings on subjects which I deem interesting enough to write about. That typically includes web development, miscellaneous programming with python and the Godot game engine, and linux things.
If you wish to discuss anything you read here, feel free to open an issue over at the Github source of this blog.
How we use Circleci and Ansible to Automate Deploying Flask Applications
At my workplace we like to use CI/CD to automatically deploy any changes to the master branch into production. This involves two main pieces of technology - Circleci and Ansible. <br><br> In this post I will be going over how we use these two pieces of technology to deploy a flask application.
read moreA Super Helpful Decorator For Peewee/Flask Unit Testing
Update
As of peewee version 3, the test_database context manager was removed, and models are instead bound to a new database via a bind method.
There is a comment by the author of Peewee over on a github issue providing a new way to achieve this.
I have adapted this …