This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
{ | |
"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": {}, |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
""" | |
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 |