Unittest equivalent of Pytest's Parametrize

I’m currently using the unittest framework for writing tests. One thing I miss is being able to use the @pytest.mark.parametrize decorator to test out different inputs. If you know about this feature, then you know why it’s so useful. Luckily, unittest has a similar feature that starting working since Python 3.4, it’s called subtests.

»
Author's profile picture Daniel Gopar on python

How To Add Custom Headers To Google Cloud Endpoints

If you want to add custom response headers to GCE (Google Cloud Endpoints), you’re going to have to do some monkey patching.

»
Author's profile picture Daniel Gopar

How To Add Default Packages To A Virtualenv

If you ever need certain packages to be installed by default when creating a virtualenv through virtualenvwrapper, then this post might help you out. Now there’s a couple of ways of doing what I’m about to show but this approach is the one I like the best.

»
Author's profile picture Daniel Gopar on python

Google Cloud Endpoints V2 Application Error

When working with Google Cloud Endpoints Frameworks(CEF) there was an unexpected issue that I kept running into. The Google Cloud docs don’t mention (or at least I didn’t find it) about configuring your app.yaml file for GCE v2 usage.

»
Author's profile picture Daniel Gopar on python

Add Disqus Comments Without Customizing Ghost Theme

I recently moved back to ghost.org as my blogging platform. I was sad to find out that to use Disquis you need to customize your theme. I didn’t want to do that cause I’m lazy so I just decided to make it all work with javascript that you can inject into your footer themes. (You can do this by going to your Ghost Admin page and clicking on the Code Injection tab)

»
Author's profile picture Daniel Gopar

Setting Up Alpine Linux For Django Development

TL;DR

»
Author's profile picture Daniel Gopar