powershell

Trials and Tribulations of Maintaining a Hugo Blog

Saturday, Sep 30, 2017 | 5 min read
Categories: DevOps, Developer,
Tags: Hugo, Web Development, Powershell,
As of the writing of this post, I maintain this site using my very own theme created in hugo. Hugo is a static site generator. It takes a bunch of plain text, applies a theme, and renders it as HTML. This is opposed to applications like Wordpress that assemble a page each time its served, to put it simply. This compute once, use many times approach saves on processing time and makes a site more portable.

Testing code with sensitive data

Tuesday, Sep 6, 2016 | 2 min read
Categories: Developer,
Tags: Git, Powershell, Testing,

I recently renewed work on my first ever github project. Over the course of a whole year when that project was dormant, I’d learned some new tricks. I now try to focus on writing tests for my projects. It is immensely convenient when I add features here  and there and need to check the whole code for errors.

Anyways, my project requires API keys to imgur.com. However I do not want to hard-code them into my test.py file. But I also do not want to manually provide keys every time I run tests. So what do I do?