Files
horizon/tests/test_entity_shadow_ownership.py
T
gigamans442andCodex GPT-6.1-sol d3117ec15d Respect compiled standard-pack entity shadow ownership
Use the running pack's compiled non-player entity caster capability to
avoid adding vanilla mob blobs beside its shadows. Preserve fallback
for player-only, disabled, absent and failed paths and native dimensions.

Add original compiled-pipeline and production sprite-selection controls.

Co-Authored-By: Codex GPT-6.1-sol <[email protected]>
2026-11-02 15:34:50 -05:00

27 lines
777 B
Python

"""Game blob fallback through the actual production selection/caster methods."""
from pathlib import Path
import shutil
import subprocess
import sys
import unittest
ROOT = Path(__file__).resolve().parents[1]
class EntityShadowOwnership(unittest.TestCase):
@unittest.skipUnless(shutil.which("rustc"), "requires Rust to execute production methods")
def test_compiled_caster_paths_select_the_blob_fallback(self):
result = subprocess.run(
[sys.executable, str(ROOT / "tools/test_entity_shadow_ownership.py")],
cwd=ROOT,
capture_output=True,
text=True,
timeout=60,
)
self.assertEqual(result.returncode, 0, result.stdout + result.stderr)
if __name__ == "__main__":
unittest.main()