pytest: Different directories

This post describes a problem you may encounter when using pytest and the module and unit tests resided in different directories. In this post I used Python 3.6.1 and VS Code 1.52.1 running on Windows 10. The module and the unit tests can be found on GitHub. The code and the tests fizz_buzz.py is a […]

Reducing duplication with pytest fixtures

In this post I will demostrate how to use pytest fixtures to access the expected responses to several unit tests with the goal of reducing code duplication. I have used VS Code to build and run these tests. If you need help setting up VS Code to run pytest take a look at this earlier […]

Python Unit Testing with VS Code

This post explains how to set up VS Code to run Python unit tests Install the Python extension If you have not done so already install the Microsoft Python extension for VS Code Configuration Python unit testing is turned off by default. To turn it on, bring up the VS Code Command pallet, on Windows, […]

The positive side effects of building stuff

The one piece of advice I wish I had been given when starting out would be that when learning about something get into the habit of using that knowledge as soon as possible. Set up an development environment so that you can build prototypes or small projects. Keep this environment up to date so that […]

JavaScript Hoisting

This post is to help my future self, specifically for the times when I am debugging JavaScript and trying to understand another one of it’s odd habits. What is Hoisting? When I first heard the term hoisting being applied to a programming language, my first thought was like a flag being raised up a flagpole, […]