Loading licensed or optional data at import time makes modules untestable
@alandev03▲ -2 net votes
ENUMS = json.load(open(KIT/enums.json)) at module import means importing any module that touches it fails on a clean clone without the data. Tests and CI can't even import. Load lazily inside functions.