"""Count and resolve hand-built SGD5 effects with python -I tests/test_sgd5_effects.py.""" from contextlib import redirect_stderr, redirect_stdout import io import json import os from pathlib import Path import struct import sys import tempfile import unittest from unittest.mock import patch import zlib sys.path.insert(0, str(Path(__file__).resolve().parents[1] / "tools")) import sgd5_effects import shader_carve def u32(value): return struct.pack("