Skip to content

Instantly share code, notes, and snippets.

View captain-kark's full-sized avatar

Andrew Yurisich captain-kark

  • Martinsville, IN
View GitHub Profile
@captain-kark
captain-kark / package.json
Created November 20, 2020 19:45
microtester.js
{
"name": "microtester",
"version": "0.1.0",
"description": "Zero-deps unit testing. Why is this not in the standard library?",
"scripts": {
"test": "./tests.js"
},
"author": "Andrew Yurisich",
"license": "MIT",
"dependencies": {},
@captain-kark
captain-kark / actual_solution.py
Last active July 11, 2022 07:36
Named tuple support for importlib create_module allows for this
"""
https://dev.to/dangerontheranger/dependency-injection-with-import-hooks-in-python-3-5hap
"""
import copy
import importlib.abc
import importlib.machinery
import importlib.util
import sys