Skip to content

Instantly share code, notes, and snippets.

@sagi-z
sagi-z / featured-image--jekyll-post-snippets.html
Created September 21, 2019 11:47 — forked from pmacMaps/featured-image--jekyll-post-snippets.html
Sample code for Jekyll Featured Image Template Blog Post
<!-- 1. Post File [2018-09-30-Sample-Post.md] -->
---
layout: post
title: A Sample Post
date: 2018-09-30
author: Mike the Blogger
description: This is the one blog post to rule them all
featured-image: my-awesome-photo.jpg
featured-image-alt: Mike the Blogger speaking at Times Square, New York City, New York
categories: Side Hustle
@sagi-z
sagi-z / python_tests_dir_structure.md
Created September 13, 2017 10:21 — forked from tasdikrahman/python_tests_dir_structure.md
Typical Directory structure for python tests

A Typical directory structure for running tests using unittest

Ref : stackoverflow

The best solution in my opinion is to use the unittest [command line interface][1] which will add the directory to the sys.path so you don't have to (done in the TestLoader class).

For example for a directory structure like this:

new_project

├── antigravity.py